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

ImportError: No module named 'serverconn' #25

Closed
EpocDotFr opened this issue Jul 6, 2016 · 2 comments
Closed

ImportError: No module named 'serverconn' #25

EpocDotFr opened this issue Jul 6, 2016 · 2 comments
Labels

Comments

@EpocDotFr
Copy link

EpocDotFr commented Jul 6, 2016

  • Python 3.5.1
  • Windows 7 & 10 (but I think this is reproductible on any Windows version)

When importing the pybeanstalk package in any possible manner, the following exception is raised:

Traceback (most recent call last):
  File "local_server.py", line 1, in <module>
    from war import app
  File "C:\war\war.py", line 3, in <module>
    from beanstalk import job
  File "C:\{SomeFolders}\Python35\lib\site-packages\beanstalk\__init__.py", line 1, in <module>
    import serverconn
ImportError: No module named 'serverconn'

By "any possible manner", I'm mean I tried the following import statements in my C:\war\war.py file:

import beanstalk
from beanstalk import job, serverconn
from beanstalk import serverconn

I don't understand what is the issue. Maybe this is related to relative imports in Python 3?

@petri
Copy link
Member

petri commented Jul 6, 2016

Python 3 is not supported. Feel free to open an issue for that. No guarantees that anyone will have time to work on that though. Updating this package to support Python3 is not trivial.

@EpocDotFr
Copy link
Author

I found an alternative package, compatible with Python 3, here if this can help anyone.

@petri petri closed this as completed Jul 7, 2016
@petri petri added the invalid label Jul 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants