Skip to content

Error with calling XRotor class on Mac #1

Description

@zlovering

After running
pip3 install .

the pack appears to have installed successfully with output:

Processing /Users/zach/Repos/xrotor-python
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Requirement already satisfied: scipy in /usr/local/lib/python3.7/site-packages (from xrotor==1.3.1) (1.3.3)
Requirement already satisfied: numpy in /usr/local/lib/python3.7/site-packages (from xrotor==1.3.1) (1.17.4)
Building wheels for collected packages: xrotor
Building wheel for xrotor (PEP 517) ... done
Created wheel for xrotor: filename=xrotor-1.3.1-cp37-cp37m-macosx_10_14_x86_64.whl size=122040 sha256=89fb9c79db758f0770d7d508cca482e650a0435488515c49fef26fc636f4513b
Stored in directory: /Users/zach/Library/Caches/pip/wheels/47/50/76/1464eafa253749f9e79cdfbfb32c2a74a7e32bdd2ea7a3dab9
Successfully built xrotor
Installing collected packages: xrotor
Successfully installed xrotor-1.3.1

in the repository directory. I ran the following:

from xrotor import XRotor
xr = XRotor()

In doing so, I get the error

Traceback (most recent call last):
File "/Users/zach/Repos/xrotor-python/test.py", line 1, in <module> from xrotor import XRotor
File "/Users/zach/Repos/xrotor-python/xrotor/__init__.py", line 20, in <module> from .xrotor import XRotor
File "/Users/zach/Repos/xrotor-python/xrotor/xrotor.py", line 30, in <module> lib_path = glob.glob(os.path.join(here, 'libxrotor.*'))[0]IndexError: list index out of range`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions