1

I am running Spyder with Anaconda 2.4.1 (64 bit) and Python 3.5.1 on Win 10. When I attempt to import pybeanstalk via:

import beanstalk

The IPython console returns:

import error no module named 'serverconn'

I've done my googling of the error and all I ever get is a Google Groups thread where someone is having an issue with pyyaml not being installed. The thread is about pybeanstalk so I expect it is related. However, it doesn't offer any solutions. The rest of the results aren't any better. However, pyyaml was installed. It is now updated as well. Problem remains.

I have attempted to google the exact error but nothing is found so Google returns broad match results instead of exact match results. The result is a string of results about various other packages not being found.

The only reference to serverconn I can find on Google is serverconn.py as part of the Google Groups thread mentioned previously.

I have also attempted to install from here https://github.com/beanstalkd/pybeanstalk with the same result.

I noticed that some of the beanstalk packages were compatible with Python 3. pybeanstalk did not mention that though.

What am I missing? Thanks

Gabe Spradlin
  • 1,937
  • 4
  • 23
  • 47
  • Exact same issue here on Windows with Python 3.5.1. I created an issue on the pybeanstalk repository [here](https://github.com/beanstalkd/pybeanstalk/issues/25). – Epoc Jul 06 '16 at 11:51

1 Answers1

0

After submiting this issue on the official repository of pybeanstalk, here is the response from one of the maintainers:

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.

Edit: I found a Python 3 only version of a Beanstalkd client here, named pystalkd.

Another, named pystalk, is compatible for both Python 2 and 3.

Epoc
  • 7,208
  • 8
  • 62
  • 66
  • Not sure if it's standard practice, but might be nice if the library did a quick `import sys` to check and bail if `sys.version_info.major == 3` - perhaps add that in as a request as well? Then the error could be hand-crafted to say `pybeanstalk does not (currently) support python3. Click to fork our github and help us!` or some such helpful response? – dwanderson Jul 06 '16 at 17:54
  • 1
    Thanks for the information @Epoc. I had begun to suspect a version issue but I was hopeful it was a simple matter to fix. I did a lot of searching for alternative packages but never found pystalkd. So... I must have done my searching wrong. Thanks for the link. – Gabe Spradlin Jul 06 '16 at 22:18
  • @gabe Me too, for some reason pystalkd isn't easly findable :) You're welcome ! – Epoc Jul 07 '16 at 05:56