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

Error while running send2trash on Python 3.7.0 beta 2 #24

Closed
victordomingos opened this issue Mar 8, 2018 · 9 comments
Closed

Error while running send2trash on Python 3.7.0 beta 2 #24

victordomingos opened this issue Mar 8, 2018 · 9 comments

Comments

@victordomingos
Copy link

I have a small script that uses send2trash and works very well in Python 3.6 (Mac OS X 10.11 El Capitan). However, when I try to run it in Python 3.7.0 beta 2, it fails with the traceback bellow.

best regards,
victor

Traceback (most recent call last):
  File "/Users/fact/Dropbox/Aplicativos/Filemaker_backups/NPK-Backup/remove_old_archives.py", line 26, in <module>
    from send2trash import send2trash
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/send2trash/__init__.py", line 12, in <module>
    from .plat_osx import send2trash
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/send2trash/plat_osx.py", line 17, in <module>
    GetMacOSStatusCommentString = Foundation.GetMacOSStatusCommentString
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ctypes/__init__.py", line 369, in __getattr__
    func = self.__getitem__(name)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ctypes/__init__.py", line 374, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: dlsym(RTLD_DEFAULT, GetMacOSStatusCommentString): symbol not found
@mingwandroid
Copy link

Bug is: https://bugs.python.org/issue33281

@yblock
Copy link

yblock commented Nov 19, 2020

This seems to be happening again (macOS Big Sur and python 3.8.2)

@davidcarnahan
Copy link

I can confirm the same ... same script works on my windows computer but does not work on my macOs that I just updated with Big Sur.

Traceback (most recent call last):
File "cleanup.py", line 4, in
from send2trash import send2trash
File "/usr/local/lib/python3.7/site-packages/send2trash/init.py", line 12, in
from .plat_osx import send2trash
File "/usr/local/lib/python3.7/site-packages/send2trash/plat_osx.py", line 17, in
GetMacOSStatusCommentString = Foundation.GetMacOSStatusCommentString
File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ctypes/init.py", line 369, in getattr
func = self.getitem(name)
File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ctypes/init.py", line 374, in getitem
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: dlsym(RTLD_DEFAULT, GetMacOSStatusCommentString): symbol not found

@BoboTiG
Copy link
Contributor

BoboTiG commented Dec 1, 2020

Let's wait for Python 3.8.9 and 3.9.1 and retry then. I am afraid that this will never work for 3.6 and 3.7 because it is not planned to backport macOS Big Sur support on it.

@BoboTiG
Copy link
Contributor

BoboTiG commented Dec 1, 2020

@HWiese1980
Copy link

Is this issue solved? I'm still seeing it with send2trash 1.5.0 (from PyPi)

@HWiese1980
Copy link

@arsenetar Is this issue solved? Is there a fix/workaround?

@arsenetar
Copy link
Owner

@HWiese1980 I was not fully aware this was an ongoing issue, I am aware of several potential ways to solve the issue. It is not currently fixed here with respect to MacOS Big Sur.

@arsenetar
Copy link
Owner

All conversation on the Big Sur related issue that is open should continue over at #51

This issue was closed.
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

7 participants