Closed thely closed 3 years ago
The MacOS wheel failed to deploy for version 11.19.0
.
I'll need to work on this. Until it's fixed you should be able to install tcod version 11.18.3
.
Version 11.19.1
has a working MacOS wheel. It should install without issues.
Thanks for the fast response! Installation now works. I have a related new-to-tcod error, which seems relevant here, but could be a new issue if you'd prefer. I'm running the ultra-basic starter main.py that runs import tcod
and a quick hello world. I installed the latest SDL2 via brew, and the latest libtcod_cffi since that seemed to help in closed issues, but no dice. I'm running in a venv, but I also have tcod installed globally; this error is occurring regardless of environment. Python 3.8.5.
Traceback (most recent call last):
File "main.py", line 2, in <module>
import tcod
File "/Users/becky/Documents/Development/games/rltut/env/lib/python3.8/site-packages/tcod/__init__.py", line 21, in <module>
from tcod import (
File "/Users/becky/Documents/Development/games/rltut/env/lib/python3.8/site-packages/tcod/bsp.py", line 28, in <module>
import tcod.random
File "/Users/becky/Documents/Development/games/rltut/env/lib/python3.8/site-packages/tcod/random.py", line 11, in <module>
import tcod.constants
File "/Users/becky/Documents/Development/games/rltut/env/lib/python3.8/site-packages/tcod/constants.py", line 6, in <module>
from tcod.color import Color
File "/Users/becky/Documents/Development/games/rltut/env/lib/python3.8/site-packages/tcod/color.py", line 7, in <module>
from tcod._internal import deprecate
File "/Users/becky/Documents/Development/games/rltut/env/lib/python3.8/site-packages/tcod/_internal.py", line 10, in <module>
from tcod.loader import ffi, lib
File "/Users/becky/Documents/Development/games/rltut/env/lib/python3.8/site-packages/tcod/loader.py", line 98, in <module>
from tcod._libtcod import ffi, lib # type: ignore # noqa: F401
ImportError: dlopen(/Users/becky/Documents/Development/games/rltut/env/lib/python3.8/site-packages/tcod/_libtcod.abi3.so, 2): Library not loaded: @rpath/hidapi.framework/Versions/A/hidapi
Referenced from: /Users/becky/Documents/Development/games/rltut/env/lib/python3.8/site-packages/tcod/.dylibs/SDL2
Reason: image not found
This issue will still work. It'll be reopened until I resolve this new problem.
libtcod-cffi
was the old name of the current python-tcod
package. It will have no effect since it just installs tcod
now.
From inspecting the build logs it looks like tcod failed to package its loose dependencies this version:
Run delocate-wheel -v dist/*.whl
/Users/runner/work/python-tcod/python-tcod/venv/lib/python3.7/site-packages/delocate/libsana.py:111: UserWarning: Couldn't find @rpath/hidapi.framework/Versions/A/hidapi on paths:
Fixing: dist/tcod-11.19.1-cp35-abi3-macosx_10_9_x86_64.whl
/Users/runner/work/python-tcod/python-tcod/@executable_path/Frameworks
Copied to package .dylibs directory:
/Users/runner/work/python-tcod/python-tcod/@loader_path/Frameworks
'\n\t'.join(realpath(path) for path in rpaths),
/Users/runner/work/python-tcod/python-tcod/dependencies/SDL2-2.0.14/SDL2.framework/Versions/A/SDL2
/Users/runner/work/python-tcod/python-tcod/venv/lib/python3.7/site-packages/delocate/libsana.py:111: UserWarning: Couldn't find @rpath/hidapi.framework/Versions/A/hidapi on paths:
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
/Users/runner/work/python-tcod/python-tcod/@executable_path/Frameworks
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
/Users/runner/work/python-tcod/python-tcod/@loader_path/Frameworks
/System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
'\n\t'.join(realpath(path) for path in rpaths),
I'd expect this to cause the error you're experiencing. I recently changed the bundled version of SDL from 2.0.10 to 2.0.14 and that's likely the cause of the current issue.
I'll need to either revert SDL or find where hidapi
is so I can bundle it. tcod==11.18.3
is still an option while I figure this out.
Here's version 11.19.2
with SDL reverted to a version not dependent on hidapi
. Feel free to reopen the issue if there are more problems but I am very confident in this release.
Getting the following error when I try to install via pip3. I'm 60% sure it's actually an SSL issue and not my computer because I was able to install virtualenv with pip3 just fine.