peterdsharpe / AeroSandbox

Aircraft design optimization made fast through modern automatic differentiation. Composable analysis tools for aerodynamics, propulsion, structures, trajectory design, and much more.
https://peterdsharpe.github.io/AeroSandbox/
MIT License
690 stars 111 forks source link

Issues with running the example code on Anaconda #16

Closed dnsuman25 closed 4 years ago

dnsuman25 commented 4 years ago

Hi, I followed the installation steps and tried running the example put up on the page and I encountered an error like this:

File "", line 1, in runfile('C:/Users/dnsum/Documents/1. Leap Aero/test codes/aerosandbox_tutorial.py', wdir='C:/Users/dnsum/Documents/1. Leap Aero/test codes')

File "C:\Anoconda\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile execfile(filename, namespace)

File "C:\Anoconda\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile exec(compile(f.read(), filename, 'exec'), namespace)

File "C:/Users/dnsum/Documents/1. Leap Aero/test codes/aerosandbox_tutorial.py", line 8, in from aerosandbox import *

File "C:\Anoconda\lib\site-packages\aerosandbox__init__.py", line 1, in from .aerodynamics import *

File "C:\Anoconda\lib\site-packages\aerosandbox\aerodynamics__init__.py", line 1, in from .vlm1 import *

File "C:\Anoconda\lib\site-packages\aerosandbox\aerodynamics\vlm1.py", line 1, in from .aerodynamics import *

File "C:\Anoconda\lib\site-packages\aerosandbox\aerodynamics\aerodynamics.py", line 4, in from numba import jit

File "C:\Anoconda\lib\site-packages\numba__init__.py", line 11, in from . import config, errors, _runtests as runtests, types

File "C:\Anoconda\lib\site-packages\numba\config.py", line 18, in import llvmlite.binding as ll

File "C:\Anoconda\lib\site-packages\llvmlite\binding__init__.py", line 6, in from .dylib import *

File "C:\Anoconda\lib\site-packages\llvmlite\binding\dylib.py", line 4, in from . import ffi

File "C:\Anoconda\lib\site-packages\llvmlite\binding\ffi.py", line 138, in from pkg_resources import resource_filename

File "C:\Anoconda\lib\site-packages\pkg_resources__init__.py", line 3241, in @_call_aside

File "C:\Anoconda\lib\site-packages\pkg_resources__init__.py", line 3225, in _call_aside f(*args, **kwargs)

File "C:\Anoconda\lib\site-packages\pkg_resources__init__.py", line 3254, in _initialize_master_working_set working_set = WorkingSet._build_master()

File "C:\Anoconda\lib\site-packages\pkg_resources__init__.py", line 574, in _build_master ws = cls()

File "C:\Anoconda\lib\site-packages\pkg_resources__init.py", line 567, in init__ self.add_entry(entry)

File "C:\Anoconda\lib\site-packages\pkg_resources__init__.py", line 623, in add_entry for dist in find_distributions(entry, True):

File "C:\Anoconda\lib\site-packages\pkg_resources__init__.py", line 1960, in find_distributions importer = get_importer(path_item)

File "C:\Anoconda\lib\pkgutil.py", line 419, in get_importer importer = path_hook(path_item)

TypeError: expected str, bytes or os.PathLike object, not NoneType

peterdsharpe commented 4 years ago

Hey @dnsuman25 , thanks for the report!

If I'm reading this trace correctly, this looks like an issue with importing Numba, not with AeroSandbox itself. If you open up a Python terminal and run from numba import jit, do you get the same error?

dnsuman25 commented 4 years ago

Hey @peterdsharpe, thanks for the response. It was the issue with numba module and I installed it and now it working fine.

peterdsharpe commented 4 years ago

Glad to hear it!