Skip to content
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

Python macOS issue (Symbol not found: __PyThreadState_Current ... Expected in: flat namespace) #221

Closed
thinking-tower opened this issue May 27, 2021 · 0 comments · Fixed by #222

Comments

@thinking-tower
Copy link
Contributor

thinking-tower commented May 27, 2021

Issue description

After installing kp, import kp throws an error.

Code example

# use pip
pip install kp 
# or compile from source
git clone https://github.com/EthicalML/vulkan-kompute.git
git submodule update --init --recursive
python setup.py build
python setup.py install

@unexploredtest, Superchunk

>>> import kp
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dlopen(/opt/homebrew/lib/python3.9/site-packages/kp.cpython-39-darwin.so, 2): Symbol not found: 
    __PyThreadState_Current
    Referenced from: /opt/homebrew/lib/python3.9/site-packages/kp.cpython-39-darwin.so
    Expected in: flat namespace 
in /opt/homebrew/lib/python3.9/site-packages/kp.cpython-39-darwin.so

System Info

  • OS: macOS Big Sur 11.2.3
  • Architecture: arm64
  • CMake version: 3.19.6
  • Python version: 3.9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant