Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with calling XRotor class on Mac #1

Open
zlovering opened this issue Jan 3, 2020 · 1 comment
Open

Error with calling XRotor class on Mac #1

zlovering opened this issue Jan 3, 2020 · 1 comment

Comments

@zlovering
Copy link

zlovering commented Jan 3, 2020

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`

@KikeM
Copy link

KikeM commented Mar 15, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants