-
Notifications
You must be signed in to change notification settings - Fork 95
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
Symbol not found: _CCtsp_solve_dat - Error after installing pyconcorde #22
Comments
New update: Downgrading to 3.7.6 didn't fix the issue |
Update 2: Using Python 2.7 didn't fix the issue either.
|
Update 3: I've tried the exact same procedure on a fresh Ubuntu 18.04 installation and everything works pretty well! It might be the case that there are some inconsistencies in my Mac's libraries, I'm not sure. Have you ever tested it on the latest version of Mac OS? If it works fine then do you have any guides on how to debug and fix the problem in my machine? |
@michelgokan Thanks for reporting the problem and for doing the investigation. I currently don't have access to a Mac to test, but this is worrisome since Mac OS is supposed to be a supported platform. I'll try to reproduce in the next few days. |
Hi, have the same issue but running on an M1 macbook pro with arm64 architecture, seems like it requires a different concorde build? |
@iliailmer Thanks for the follow-up. I am not sure about how to support the M1. One thing to note is that I am planning to move to a new API that runs Concorde in a subprocess (see #28 (comment)). If you can get Concorde to compile and run on your platform, then this new API should be compatible with it. I'd be very interested in hearing your experiences. |
@jvkersch Hey, thanks for the response. I will check it out and let you know. |
@jvkersch Hey does this require downloading QS_opt or CPLEX as well?
Had to restart my shell to make it work. |
Hi, I am having a similar problem on MacOS (Intel chip, and software update 12.2.1 -> 12.3 did not help). I got the following warnings before building
Then in the Traceback:
when trying to import. It is strange because I have previously installed and used pyconcorde extensively on the same machine. I am now trying to install in a new conda environment. Any updates on how to solve this problem? Thank you! |
Hi I am receiving the same issue:
Thanks, |
I was able to resolve this problem. This error appears to be caused by an incompatibility between compiling and linking libraries compiled with clang and GCC, that and the underlying Concorde library has no config for MacOSX.
Reproduction of Error:
Resolution of Error:
|
Just wanted to chime an and confirm that the above solution works, one note - if the "unalias gcc" command isn't working for you chances are you just simply don't have gcc installed like I did - in this case you just simply need to install it with Homebrew. |
I was stuck trying to install this for a couple of hours on my Mac and came across this. Also had this error: @Technophobe01 Thanks for the fix, saved the day. It finally worked. |
This is very strange; the build process should normally pull in QSOpt and link against it correctly. I have no idea why this happens and I cannot reproduce it on my machine either. It would be very helpful if someone who encountered this problem in the past could find the Concorde shared library (compiled with the instructions in the README, not with the workaround) in the
and
The latter tells me that the symbol Also, anything else that you could find to pinpoint the problem would be helpful. I am in the process of moving the library to a subprocess-based approach, which will make this issue go away in due course, but I would like to resolve this issue right now to avoid having people lose more time on it. |
I'm using Python 3.8.1 on Mac OS X 10.15.2 (brew-based) with Xcode 11.3.1. I've succefully installed pyconcorde without any errors but when I import TSPSolver using
from concorde.tsp import TSPSolver
I'm getting the "Symbol not found: _CCtsp_solve_dat" error. It seemsconcorde/tsp.py
cannot import _CCtsp_solve_dat from concorde._concorde in line 10.What I run:
>>> from concorde.tsp import TSPSolver
What I get:
The text was updated successfully, but these errors were encountered: