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

Cannot import "Callable" from "Collections" - fresh installation #68

Open
shift000 opened this issue Jul 30, 2024 · 1 comment
Open

Comments

@shift000
Copy link

Hi guys
I downloaded the current package and when I run it, I get an ImportError regarding "Callable" from "Collections".

The Python version I'm using is Python 3.10.12.
I tested this on a Windows machine (Win11) as well as an Ubuntu 22.04.1 Ubuntu.

I did the initial installation using "pip installdxlclient-5.6.0.5-py2.py3-none-any.whl".
However, I also tried to install everything from the ./lib/dxlclient-5.6.0.5.zip using "python setup.py install".

Has the Collections module received a short-term update, or is my approach wrong?
Thanks for your help

image

@shift000
Copy link
Author

shift000 commented Jul 31, 2024

I found out, that the import "from collections import Callable" in the file /Lib/site-packages/socks.py has to be changed to "from collections.abc import Callable" as the collections-package has moved.
Also i've got an ModuleNotFoundError: No module named 'oscrypto._win' after that, which can be resolved through "pip install oscrypto"

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

1 participant