-
Notifications
You must be signed in to change notification settings - Fork 10
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
Failure to install wheel #8
Comments
Weird, I thought I tested installing the release. Let me try again. |
I couldn't reproduce the problem and the error looks a lot like something I tried to fix before I released 1.2.0. So I just made a new release. Can you check if you still have the problem? Here is what I get:
|
I still have the same problem with 1.2.1. I think you are not hitting this issue because you are still using pip 6. The new cache system in pip 7 means that |
Hmmm, I tried with
Indeed, pip > 7.0.0 seems to use |
I just noticed that you were using Python 3.4 and not Python 2.7 as I was. In Python 3 the issue seems to go away completely so it appears that it is Python 2 specific. I also tested the install on a Linux box with Python 2.7 and it too results in an error, although a different one:
|
@phantomas1234 By the way, you accidentally broke the |
@jonls Hi, I made a new release and removed all the the shenanigans in |
Thanks. The problem persists in 1.2.3 on OSX/Python 2 with |
Ok, so testing again on Linux with SWIG 3.0.7 I now also get |
@jonls hmmm, I guess I need to try it on a linux machine (or any machine that is not my dev machine). I would be very surprised though if I get the same error given that I am testing swiglpk on travis-ci. Do you have glpk properly installed? I thought the installation should fail if you don't, but your error looks very similar to an error that I've seen before where the copied glpk.h header file (copied into the same dir as setup.py) would be overwritten with no content and consequently no glpk methods were wrapped by swig. Can you please check that there is an glpk_clean.h file in the dir after you run setup.py that actually contains glpk declarations? In any case, bare with me, I'll try my best to investigate this. Also, I just realized that there are egg files available for linux on pypi. Could that be an issue? Is setup.py run if a package is installed from egg or is python just putting the uncompressed archive(?) into site-packages? |
Ok, here is the setup that I tried today on the Linux machine (SWIG 3.0.7 and GLPK 4.54): I clone swiglpk from Github then I checkout the 1.2.3 tag. I then do pip install ~/swiglpk/dist/swiglpk-1.2.3-cp27-none-linux_x86_64.whl Then I open Python and try to import and I end up with the I have put a copy of the |
I was able to reproduce the problem on a lubuntu machine when installing from pypi with pip >= 7.1.2 (no issue on OS X however). Can't reproduce the problem when installing from source via |
@jonls Ok, I am back from a long paternity leave. Maybe you have already lost interest in this issue? Congrats on your PLoS CB paper btw! Were you planning to add glpk support to PSAMM by using these bindings? I still can only reproduce the problem (the glp_prob__opaque_prob_set one) when installing from PyPI and not when running |
Ok, I just realized that I also get the "GLP_MAJOR_VERSION" issue on OS X with python 3.5 when installing directly from pypi |
This is btw where the original custom build and install commands came from http://stackoverflow.com/questions/12491328/python-distutils-not-include-the-swig-generated-module |
@phantomas1234 Thanks! I'm still interested in solving this issue and eventually adding support for GLPK in PSAMM. I'll take a look at this again when I have some time. |
@jonls I think I fixed the bdist_wheel problem. Motivated by this setup.py I wrote a custom CustomBdistWheel cmdclass (these are by the way necessary to ensure that swig is run before anything else so cannot be avoided ...). Can you install swiglpk==1.2.12 from pypi and confirm that the issues are gone? It would make me so happy since it has started to annoy other people as well biosustain/cameo#46. |
@phantomas1234 Thanks! This seems to work now on OSX with Python 2.7. |
I have some trouble installing the package from PyPI since the 1.0.0 release. When I install 1.2.0 on OSX it looks like this:
Same error with 1.1.2 and 1.1.3. When I try to install 1.0.0 the
bdist_wheel
fails and thenpip
tries toinstall
. For some reason that works fine. I can also do(env) ~ → pip install swiglpk --no-cache-dir
and the resulting package works fine. It seems that the difference when using
--no-cache-dir
is thatpip
uses theinstall
command ofsetup.py
instead ofbdist_wheel
. For this reason I suspect that there is something up with thebdist_wheel
setup.The text was updated successfully, but these errors were encountered: