Fail when install :'build/bdist.linux-x86_64' does not exist

1,968 views
Skip to first unread message

JIEREN JIA

unread,
Jul 27, 2017, 12:30:55 AM7/27/17
to Gurobi Optimization
~/opt/gurobi750/linux64$ sudo python setup.py install
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/gurobipy
copying lib/python2.7_utf32/gurobipy/__init__.py -> build/lib.linux-x86_64-2.7/gurobipy
copying lib/python2.7_utf32/gurobipy/gurobipy.so -> build/lib.linux-x86_64-2.7/gurobipy
running install_lib
running install_egg_info
Removing /usr/local/lib/python2.7/dist-packages/gurobipy-7.5.0.egg-info
Writing /usr/local/lib/python2.7/dist-packages/gurobipy-7.5.0.egg-info
removing 'build/lib.linux-x86_64-2.7' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-2.7' does not exist -- can't clean it
removing 'build'


I think it's caused by lack of dependence. 

Sonja Mars

unread,
Jul 27, 2017, 4:32:33 AM7/27/17
to gur...@googlegroups.com
Hi,

These messages don't necessary mean that the installation failed. What happens when you try to run on of our python examples? For example: mip1.py
You can find it in the Gurobi installation directory here: 
linux64/examples/python/mip1.py 

Also please note that we release Gurobi 7.5.1 last week. We recommend an upgrade to that version.

Best regards, 
Sonja 


----
Dr. Sonja Mars
Gurobi Optimization - Technical Support 

JIEREN JIA

unread,
Jul 28, 2017, 1:05:07 AM7/28/17
to Gurobi Optimization
Hi Dr. Sonia,
mip1.py outcame with:

oliverjia@debian:~/opt/gurobi751/linux64$ python examples/python/mip1.py
Traceback (most recent call last):
  File "examples/python/mip1.py", line 13, in <module>
    from gurobipy import *
  File "/usr/local/lib/python2.7/dist-packages/gurobipy/__init__.py", line 1, in <module>
    from .gurobipy import *
ImportError: /usr/local/lib/python2.7/dist-packages/gurobipy/gurobipy.so: file too short

I think it's still a installation fails problem.

Thanks for your help.

Best,
Oliver
在 2017年7月27日星期四 UTC+8下午4:32:33,Sonja Mars写道:

Sonja Mars

unread,
Jul 28, 2017, 2:58:39 AM7/28/17
to gur...@googlegroups.com
Hi Oliver,

We will contact you directly to discuss this issue.

Thanks,
Sonja
> --
>
> ---
> You received this message because you are subscribed to the Google Groups "Gurobi Optimization" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to gurobi+un...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

SS

unread,
Sep 16, 2017, 6:18:32 AM9/16/17
to Gurobi Optimization
I had the same installation issue and it said "removing build". Tried running the mip1.py file and got this error:

 Traceback (most recent call last):
  File "C:\gurobi751\win32\examples\python\mip1.py", line 13, in <module>
    from gurobipy import *
  File "C:\Users\hp\AppData\Local\Programs\Python\Python36-32\lib\site-packages\gurobipy\__init__.py", line 1, in <module>
    from .gurobipy import *
ImportError: DLL load failed: %1 is not a valid Win32 application.
>>> 

Has it not been installed properly? I even tried 
>python setup.py install 
on cmd

Sonja Mars

unread,
Sep 20, 2017, 4:25:44 AM9/20/17
to gur...@googlegroups.com
Hi,

Did you get exactly this message:
build/bdist.linux-x86_64' does not exist

If so, it looks like you are installing a 64bit Gurobi.

From these messages it looks like you are installing a 32bit Gurobi:
> raceback (most recent call last):
> File "C:\gurobi751\win32\examples\python\mip1.py", line 13, in <module>
> from gurobipy import *
> File "C:\Users\hp\AppData\Local\Programs\Python\Python36-32\lib\site-packages\gurobipy\__init__.py", line 1, in <module>
> from .gurobipy import *
> ImportError: DLL load failed: %1 is not a valid Win32 application.



Can you please check that you are installing a 32bit Gurobi into a 32bit Python?

Best regards,
Sonja


----
Dr. Sonja Mars
Gurobi Optimization - Technical Support
ma...@gurobi.de


Gurobi Optimizer 7.5 — State-of-the-art performance and
best-in-class support for your most important problems.
Learn more at www.gurobi.com.



SS

unread,
Sep 20, 2017, 5:51:11 AM9/20/17
to Gurobi Optimization
I have installed a 32 bit Gurobi into 32 bit Python. However, my system is 64 bit. Is that the problem?

Thanks

Sonja Mars

unread,
Sep 20, 2017, 5:56:26 AM9/20/17
to gur...@googlegroups.com
No, that should not be the problem, but why do you want to run a 32bit application on a 64bit system? Why not using a 64bit Python and a 64bit Gurobi?

Do you just have one Gurobi installation on your system? Or do you also have a 64bit version somewhere installed?

Sowbhagya Suresh

unread,
Sep 20, 2017, 6:14:26 AM9/20/17
to gur...@googlegroups.com
I installed a 32-bit python quite sometime back unknowingly and don't want to uninstall it as I will have to install all the packages again. Hence I installed 32-bit Gurobi as well.

--

---
You received this message because you are subscribed to a topic in the Google Groups "Gurobi Optimization" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gurobi/uxiidXYLvGc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gurobi+unsubscribe@googlegroups.com.

Sonja Mars

unread,
Sep 21, 2017, 3:43:37 AM9/21/17
to gur...@googlegroups.com
Hi,

Do you just have one Gurobi installation on your system? Or do you also have a 64bit version somewhere installed?

Thanks,
Sonja
Reply all
Reply to author
Forward
0 new messages