Skip to content
Advertisement

How to solve ImportError: dlopen(): Symbol not found:…. Expected in: flat namespace

Can anyone help me solve this issue?

ImportError: dlopen(/Users/......./venv/lib/python3.6/site-packages/recordclass/mutabletuple.cpython-36m-darwin.so, 2): Symbol not found: __PyEval_GetBuiltinId
  Referenced from: /Users/......./venv/lib/python3.6/site-packages/recordclass/mutabletuple.cpython-36m-darwin.so
  Expected in: flat namespace
 in /Users/......../venv/lib/python3.6/site-packages/recordclass/mutabletuple.cpython-36m-darwin.so

I’m using a Mac if that’s of any relevance

Advertisement

Answer

I couldn’t quite figure out what the issue was but I’m assuming __PyEval_GetBuiltinId was broken/uninstalled.
So all I did to fix this was pip uninstall recordclass and then pip install --no-cache-dir recordclass and it seemed to have worked

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement