OpenBazaar / OpenBazaar-Server

(Deprecated) OpenBazaar 1.0 Server daemon for communication with OpenBazaar-Client
MIT License
608 stars 173 forks source link

No module named pyasn1_modules.rfc2459 #429

Open embg opened 8 years ago

embg commented 8 years ago

Brief Description: I downloaded the DEB from openbazaar.org and installed using Software Center on Ubuntu. When I run openbazaar, it fails to connect to the localhost server and gives

Starting OpenBazaar Server
[STR] stderr ":0: UserWarning: You do not have a working installation of the service_identity module: 'No module named pyasn1_modules.rfc2459'.  
Please install it from <https://pypi.python.org/pypi/service_identity> and make sure all of its dependencies are satisfied.  
Without the service_identity module and a recent enough pyOpenSSL to support it, Twisted can perform only rudimentary TLS client hostname verification.  
Many valid certificate/hostname mappings may be rejected."

I tried to upgrade the requirement with pip install service_identity --upgrade but it didn't help, so I don't know what to do. Definitely a bug. I have not tried installing from source so I don't know if this is a problem with the DEB or something else. Operating System (OS and version): Ubuntu 15.10 OpenBazaar version: 0.1 Hardware: Tthinkpad T430

Reproducible (Always / Almost Always / Sometimes / Rarely / Couldn't Reproduce): Always for me, every time I run the openbazaar command.

Steps to reproduce:

  1. Install with the 64-bit DEB from here
  2. Run openbazaar in the terminal, get error
  3. Run sudo pip install service_identity --upgrade to try to fix it, then run openbazaar and get error again.

Observed Behavior: Error, client can't connect to the server.

Expected Behavior: No error, server starts correctly.

Additional info (links, images, etc go here): None

alex-miller-0 commented 8 years ago

I'm on Ubuntu 14.04 and get the same warning on every startup, but it doesn't affect my ability to start OpenBazaar.

SimonBelmond commented 8 years ago

Yep getting the same Issue:

openbazaar Starting OpenBazaar Server [STR] stderr ":0: UserWarning: You do not have a working installation of the service_identity module: 'No module named pyasn1_modules.rfc2459'. Please install it from https://pypi.python.org/pypi/service_identity and make sure all of its dependencies are satisfied. Without the service_identity module and a recent enough pyOpenSSL to support it, Twisted can perform only rudimentary TLS client hostname verification. Many valid certificate/hostname mappings may be rejected. " [STR] stdout "____ __ \ __ __ ____ / | \ / \ / | | / \ / \ _ \ / | \ |> > /| | \ | \ / _/ / / _ / | | \/ ____ / **/ >| / /( / ( ( /| \/|**| \/ \/ \/ \/ \/ \/ \/

OpenBazaar Server v0.1 starting... 2016-06-18 10:55:43+0200 [OpenBazaard] [INFO] Finding NAT Type... " ^A^CClosing Application Shutting down server daemon [STR] stderr "Traceback (most recent call last): File "", line 307, in

openbazaard returned -1 " ^C

pip install service_identity --upgradeDownloading/unpacking service-identity Downloading service_identity-16.0.0-py2.py3-none-any.whl Downloading/unpacking pyasn1 from https://pypi.python.org/packages/69/be/e8946f7867b84b0e61a613f6fd56f63266190b1a470f945178f7cbc4d0ae/pyasn1-0.1.9-py2.py3-none-any.whl#md5=0122c4548f64510b24a35353c0837198 (from service-identity) Downloading pyasn1-0.1.9-py2.py3-none-any.whl Downloading/unpacking pyasn1-modules (from service-identity) Downloading pyasn1_modules-0.0.8-py2.py3-none-any.whl Downloading/unpacking attrs (from service-identity) Downloading attrs-16.0.0-py2.py3-none-any.whl Downloading/unpacking pyopenssl>=0.12 from https://pypi.python.org/packages/b1/4e/54c8995d2de887919272c2b711cd430277ec33e0f7bb88cb564244c102b6/pyOpenSSL-16.0.0-py2.py3-none-any.whl#md5=40b81d9372700b6bf97bff050a64bc31 (from service-identity) Downloading pyOpenSSL-16.0.0-py2.py3-none-any.whl (45kB): 45kB downloaded Downloading/unpacking six>=1.5.2 from https://pypi.python.org/packages/c8/0a/b6723e1bc4c516cb687841499455a8505b44607ab535be01091c0f24f079/six-1.10.0-py2.py3-none-any.whl#md5=3ab558cf5d4f7a72611d59a81a315dc8 (from pyopenssl>=0.12->service-identity) Downloading six-1.10.0-py2.py3-none-any.whl Downloading/unpacking cryptography>=1.3 (from pyopenssl>=0.12->service-identity) Downloading cryptography-1.4.tar.gz (399kB): 399kB downloaded Running setup.py (path:/tmp/pip_build_node/cryptography/setup.py) egg_info for package cryptography

no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*' found under directory 'vectors'

Downloading/unpacking idna>=2.0 (from cryptography>=1.3->pyopenssl>=0.12->service-identity) Downloading idna-2.1-py2.py3-none-any.whl (54kB): 54kB downloaded Downloading/unpacking setuptools>=11.3 (from cryptography>=1.3->pyopenssl>=0.12->service-identity) Downloading setuptools-23.0.0-py2.py3-none-any.whl (435kB): 435kB downloaded Downloading/unpacking enum34 (from cryptography>=1.3->pyopenssl>=0.12->service-identity) Downloading enum34-1.1.6-py2-none-any.whl Downloading/unpacking ipaddress (from cryptography>=1.3->pyopenssl>=0.12->service-identity) Downloading ipaddress-1.0.16-py27-none-any.whl Downloading/unpacking cffi>=1.4.1 (from cryptography>=1.3->pyopenssl>=0.12->service-identity) Downloading cffi-1.6.0.tar.gz (397kB): 397kB downloaded Running setup.py (path:/tmp/pip_build_node/cffi/setup.py) egg_info for package cffi Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containinglibffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containinglibffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found

Downloading/unpacking pycparser (from cffi>=1.4.1->cryptography>=1.3->pyopenssl>=0.12->service-identity) Downloading pycparser-2.14.tar.gz (223kB): 223kB downloaded Running setup.py (path:/tmp/pip_build_node/pycparser/setup.py) egg_info for package pycparser

warning: no previously-included files matching 'yacctab.*' found under directory 'tests'
warning: no previously-included files matching 'lextab.*' found under directory 'tests'
warning: no previously-included files matching 'yacctab.*' found under directory 'examples'
warning: no previously-included files matching 'lextab.*' found under directory 'examples'

Installing collected packages: service-identity, pyasn1, pyasn1-modules, attrs, pyopenssl, six, cryptography, idna, setuptools, enum34, ipaddress, cffi, pycparser Cleaning up... Exception: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main status = self.run(options, args) File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 283, in run requirement_set.install(install_options, global_options, root=options.root_path) File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1436, in install requirement.install(install_options, global_options, _args, *_kwargs) File "/usr/lib/python2.7/dist-packages/pip/req.py", line 672, in install self.move_wheel_files(self.source_dir, root=root) File "/usr/lib/python2.7/dist-packages/pip/req.py", line 902, in move_wheel_files pycompile=self.pycompile, File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 206, in move_wheel_files clobber(source, lib_dir, True) File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 193, in clobber os.makedirs(destsubdir) File "/usr/lib/python2.7/os.py", line 157, in makedirs mkdir(name, mode) OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/service_identity-16.0.0.dist-info'

Storing debug log for failure in /home/node/.pip/pip.log