Reinstalling Nameko caused 'ImportError: No module named dnskeybase'


#1

Hi Guys,

I originally had Nameko working nicely under python3. Then when I realised my wxPython application was never going to play nicely with python3 without a lot of work, I reinstalled under python 2, like this:

python2.7 -m pip install --user nameko

And now, evening after many uninstalls and reinstalls of the various modules, I still get:

Traceback (most recent call last):
  File "radio_handset_v2.py", line 99, in <module>
    import Arduino_v2
  File "/home/astronom/x-Stronomy/Arduino_v2.py", line 5, in <module>
    from nameko.standalone.rpc import ClusterRpcProxy
  File "/home/astronom/.local/lib/python2.7/site-packages/nameko/standalone/rpc.py", line 11, in <module>
    from nameko import serialization
  File "/home/astronom/.local/lib/python2.7/site-packages/nameko/serialization.py", line 10, in <module>
    from nameko.utils import import_from_path
  File "/home/astronom/.local/lib/python2.7/site-packages/nameko/utils/__init__.py", line 7, in <module>
    import eventlet
  File "/home/astronom/.local/lib/python2.7/site-packages/eventlet/__init__.py", line 10, in <module>
    from eventlet import convenience
  File "/home/astronom/.local/lib/python2.7/site-packages/eventlet/convenience.py", line 7, in <module>
    from eventlet.green import socket
  File "/home/astronom/.local/lib/python2.7/site-packages/eventlet/green/socket.py", line 21, in <module>
    from eventlet.support import greendns
  File "/home/astronom/.local/lib/python2.7/site-packages/eventlet/support/greendns.py", line 67, in <module>
    setattr(dns.rdtypes, pkg, import_patched('dns.rdtypes.' + pkg))
  File "/home/astronom/.local/lib/python2.7/site-packages/eventlet/support/greendns.py", line 59, in import_patched
    return patcher.import_patched(module_name, **modules)
  File "/home/astronom/.local/lib/python2.7/site-packages/eventlet/patcher.py", line 120, in import_patched
    *additional_modules + tuple(kw_additional_modules.items()))
  File "/home/astronom/.local/lib/python2.7/site-packages/eventlet/patcher.py", line 94, in inject
    module = __import__(module_name, {}, {}, module_name.split('.')[:-1])
ImportError: No module named dnskeybase

dnskeybase is installed as you can see from the last install script.


Installing collected packages: nameko, dnspython
Successfully installed dnspython-1.15.0 nameko-2.11.0

What’s going wrong here?

Thanks,

Steve.


#2

Ok, so the answer seems to be reinstall virtualenv under Python2.7 as well, then I don’t getthe dnskeybase error.

Thanks

Steve.