tonysimpson / nanomsg-python

nanomsg wrapper for python with multiple backends (CPython and ctypes) should support 2/3 and Pypy
MIT License
382 stars 85 forks source link

warning "already imported from" when trying to import #73

Open Patrickyp opened 5 years ago

Patrickyp commented 5 years ago

When I try to import nanomsg in python 2.7 I get the following:

$ import nanomsg

/usr/local/lib/python2.7/dist-packages/nanomsg-1.0-py2.7-linux-armv7l.egg/_nanomsg_cpy.py:3: UserWarning: Module _nanomsg_cpy was already imported from /usr/local/lib/python2.7/dist-packages/nanomsg-1.0-py2.7-linux-armv7l.egg/_nanomsg_cpy.pyc, but /home/pi/gitlibs/nanomsg-python is being added to sys.path

I installed using sudo python setup.py install. Any way to fix this warning?