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

Anaconda worker doesn't start due to asyncore and asynchat missing #940

Open
RenHoekNL opened this issue Nov 26, 2023 · 2 comments
Open

Comments

@RenHoekNL
Copy link

I installed the latest Python version (python-3.12.0-amd64.exe) today and installed the package. It complained that the worker isn't running.

I tried starting the worker by hand to see what's going on:

cd "%appdata%\Sublime Text 3\Packages\Anaconda"
python -B anaconda_server/jsonserver.py -p test 9999 DEBUG

I got the following errors:

  • ModuleNotFoundError: No module named 'asyncore'
  • ModuleNotFoundError: No module named 'asynchat'

Which could be solved by

python -m pip install pyasyncore
python -m pip install pyasynchat

Turns out that asyncore and asynchat (ref:https://pypi.org/project/pyasynchat/) are no longer part of the standard modules.

@jbartolozzi
Copy link

jbartolozzi commented Apr 27, 2024

I had to do the following since these packages arent managed in homebrew

python -m pip install pyasynchat --break-system-packages &&
python -m pip install pyasyncore --break-system-packages

I also had to do this wbond/package_control#1612 (comment)
in order to get Sublime Package manager working again

@mrfuxi
Copy link

mrfuxi commented Jun 27, 2024

Based on Python docs, asyncore that Anaconda depends on

import asyncore
got removed from Python 3.12

Deprecated since version 3.6, will be removed in version 3.12: The [asyncore](https://docs.python.org/3.11/library/asyncore.html#module-asyncore) module is deprecated (see [PEP 594](https://peps.python.org/pep-0594/#asyncore) for details). Please use [asyncio](https://docs.python.org/3.11/library/asyncio.html#module-asyncio) instead.

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

3 participants