Open TheMatt2 opened 1 year ago
Possibly related to #51
I tried using an install recommended in https://github.com/arsenetar/send2trash/issues/51#issuecomment-858111428
python3 -m pip install pyobjc-framework-Cocoa==7.3 send2trash==1.7.0a1
Now I get a different error:
% python3
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 16:52:21)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import send2trash
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.7/site-packages/send2trash/__init__.py", line 12, in <module>
from .plat_osx import send2trash
File "/usr/local/lib/python3.7/site-packages/send2trash/plat_osx.py", line 14, in <module>
from .plat_osx_pyobjc import send2trash
File "/usr/local/lib/python3.7/site-packages/send2trash/plat_osx_pyobjc.py", line 7, in <module>
from Foundation import NSFileManager, NSURL
File "/usr/local/lib/python3.7/site-packages/Foundation/__init__.py", line 9, in <module>
import CoreFoundation
File "/usr/local/lib/python3.7/site-packages/CoreFoundation/__init__.py", line 28, in <module>
import CoreFoundation._CoreFoundation # isort:skip # noqa: E402
RuntimeError: Wrong version of PyObjC C API (got 25, expected 21)
@TheMatt2 try using a different version of the pyobjc-framework-Cocoa library. I was running into the same issues as you and using the latest release resolved it for me.
Description
On trying to install this module on Python 3.7, I immediately see an error message on import that is preventing the module from working.
Installed package from:
I realize Python 3.7 is quite old, but I'm mainly writing this report to record this issue.
OS: MacOS 12.7 Python: 3.7 Version: Send2Trash==1.8.2