-
Notifications
You must be signed in to change notification settings - Fork 46
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
all dots in extensions paths are converted to slashes #55
Comments
Side note: the issue revealed itself because I created the Changing this line Line 109 in b7ace27
to extNames = scandir("./pyoptools/") allows to build,yet the installation ends with writing top-level names to pyoptools.egg-info/top_level.txt
writing manifest file 'pyoptools.egg-info/SOURCES.txt'
error: package directory 'env/lib/python3/6/site-packages/pkg_resources' does not exist |
Right now I don't exactly remember the reason I did that, but I think it has to be on how setup needs to receive the extension names. Anyway, the idea is that setup will look automatically for all the extensions that have to be built, so if you put something else inside pyoptools source code directory, this functions will get confused. I just tested installing the virtualenv in a different directory outside pyoptools, and everything worked as expected (kind of). The issues I found is that the scipy version referred in the requirements file did no install from pip. I did install scipy==1.1 , other problem is that pythreejs is not in requirements.txt , and finally that jupyter is not in the requirements either. Installing this packages in your virtualenv solves the problem. As soon as I correct requirements.txt I will close this issue. |
Then the installation instructions could mention
That is probably because numpy has to be installed first. (pyoptools) > python3 -c "from pyoptools.all import *"
...
from scipy.misc import toimage
ImportError: cannot import name 'toimage' and with the latest matplotlib, (pyoptools) > python3 -c "from pyoptools.all import *"
from pylab import griddata, meshgrid
ImportError: cannot import name 'griddata' So for now, these dependencies have to remain constrained. Using the updated > venvwrapper -o pyoptools
(pyoptools) > export LAPACK=/usr/local/gcc-8.1.0_binutils-2.30_isl/lib64/libopenblas.so
(pyoptools) > export BLAS=/usr/local/gcc-8.1.0_binutils-2.30_isl/lib64/libopenblas.so
(pyoptools) > pip install -r requirements.txt
(pyoptools) > pip install --upgrade .
pip install vext.pyqt5 Then launching the jupyter interface: (pyoptools) > ipyoptools In the jupyter that appear, I had to change the kernel from python2 to python3. Then the tutorial worked fine, that looks very good, congratulations ! |
Trying to install b7ace27 in a virtual environment yields
The reason is that slashes are converted to dots by
pyoptools/setup.py
Lines 36 to 40 in b7ace27
and then all dots (including the dot in
/python3.6/
) are converted back to slashespyoptools/setup.py
Lines 59 to 60 in b7ace27
Is there any reason for not working directly with paths,
and converting path to name in
makeExtension
?The text was updated successfully, but these errors were encountered: