I\'m trying to run a simple piece of code using pyzmq. I am using Python 2.7 and pyzmq 14.5
$ python --version
Python 2.7.6
$ sudo find /usr -name "*pyzm
so, what worked for me in this case is the following solution from Osiris from letsencrypt forum:
whereis certbot
the output was like this:
certbot: /usr/bin/certbot /usr/local/bin/certbot /usr/share/man/man1/certbot.1.gz
/usr/bin/certbot renew
/usr/local/bin/certbot renew
and I got the error:
An unexpected error occurred:
ImportError: cannot import name 'constants'
...with the 2nd one!
so, I used the following command to remove this folder:
sudo rm usr/local/bin/certbot
Then the error was gone
Hope that helps
I encountered a similar problem. pip install --upgrade pyzmq
did the trick for me