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

Import Error on Mac #401

Closed
kantel opened this issue Jul 11, 2022 · 5 comments
Closed

Import Error on Mac #401

kantel opened this issue Jul 11, 2022 · 5 comments

Comments

@kantel
Copy link

kantel commented Jul 11, 2022

When I try to run Pyxel I got the following Import Error:

Traceback (most recent call last):
File "/Users/admin/git/pyxel/gettingstarted/hellopyxel.py", line 1, in
import pyxel
File "/Users/admin/Library/Python/3.10/lib/python/site-packages/pyxel/init.py", line 6, in
from .lib.macos.pyxel_wrapper import * # type: ignore # noqa F403
ImportError: dlopen(/Users/admin/Library/Python/3.10/lib/python/site-packages/pyxel/lib/macos/pyxel_wrapper.so, 2): Symbol not found: _CHHapticDynamicParameterIDHapticIntensityControl
Referenced from: /Users/admin/Library/Python/3.10/lib/python/site-packages/pyxel/lib/macos/pyxel_wrapper.so
Expected in: flat namespace

as well as with Python 3.10 (Thonny) as with Python 3.8 (Anaconda).

I run this on a MacBook Pro (from 2012) with MacOS Catalina with Pyxel 1.7.1.

@kitao
Copy link
Owner

kitao commented Jul 11, 2022

Probably this issue happens due to a version difference of macOS. I also got the same issue report from a user uses Catalina.
I'll search for a way not to refer _CHHapticDynamicParameterIDHapticIntensityControl from SDL2. Any information for it is welcome.

@kitao
Copy link
Owner

kitao commented Jul 11, 2022

@kitao kitao closed this as completed Sep 4, 2022
@nosoroog
Copy link

Same issue.
Works with Pyxel 1.6.9.
I use MacBook Pro (Mid 2012) with MacOS Catalina 10.15.7.

@blackbirdcoder
Copy link

rom .pyxel_extension import *  # type: ignore  # noqa F403
ImportError: /mnt/school/PYTHON/gamesdev/pyxeldemo/tstfirst/venv/lib/python3.8/site-packages/pyxel/pyxel_extension.abi3.so: undefined symbol: SDL_Metal_DestroyView

Ubuntu 20. Pyxel didn't take off, pyxel 1.9.12

@blackbirdcoder
Copy link

pip install pyxel==1.9.0
works well with basic examples

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

No branches or pull requests

4 participants