question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Symbol not found: _CCtsp_solve_dat - Error after installing pyconcorde

See original GitHub issue

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 seems concorde/tsp.py cannot import _CCtsp_solve_dat from concorde._concorde in line 10.

What I run: >>> from concorde.tsp import TSPSolver What I get:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/a/pyconcorde/concorde/tsp.py", line 10, in <module>
    from concorde._concorde import _CCutil_gettsplib, _CCtsp_solve_dat
ImportError: dlopen(/Users/a/pyconcorde/concorde/_concorde.cpython-38-darwin.so, 2): Symbol not found: _CCtsp_solve_dat
  Referenced from: /Users/a/pyconcorde/concorde/_concorde.cpython-38-darwin.so
  Expected in: flat namespace
 in /Users/a/pyconcorde/concorde/_concorde.cpython-38-darwin.so

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jvkerschcommented, Jan 31, 2021

@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 https://github.com/jvkersch/pyconcorde/issues/28#issuecomment-770354999). 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.

0reactions
DangerousDylcommented, May 22, 2022

Hi I am receiving the same issue:

dlopen(/Users/dylanjohnson/gnn-tsp/pyconcorde/concorde/_concorde.cpython-39-darwin.so, 0x0002): symbol not found in flat namespace '_QSadd_cols'

Thanks, Dylan

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to install pyconcorde on mac os - Stack Overflow
I am trying to install pyconcorde on my Mac OS. It shows that I successfully ... 2): Symbol not found: _QSadd_cols Referenced from: ......
Read more >
Concorde solver - Kaggle
Concorde solver · This kernel hands off the cities to the very fast Concorde TSP solver · Ignores the prime twist on this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found