Open zlovering opened 4 years ago
Hi!
I haven't installed the library yet, but I ran into a similar problem when using xfoil-python.
Check where the compiled files have been created. They might not be where File "/Users/zach/Repos/xrotor-python/xrotor/xrotor.py", line 30
expects.
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`