Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to import _ARC4 #61

Closed
grepwood opened this issue Sep 22, 2015 · 3 comments
Closed

failed to import _ARC4 #61

grepwood opened this issue Sep 22, 2015 · 3 comments

Comments

@grepwood
Copy link

root@presto-server:/opt/prestoadmin# ./presto-admin
Traceback (most recent call last):
  File "/opt/prestoadmin/presto-admin-install/local/lib/python2.7/site-packages/fabric/network.py", line 24, in <module>
    import paramiko as ssh
  File "/opt/prestoadmin/presto-admin-install/local/lib/python2.7/site-packages/paramiko/__init__.py", line 30, in <module>
    from paramiko.transport import SecurityOptions, Transport
  File "/opt/prestoadmin/presto-admin-install/local/lib/python2.7/site-packages/paramiko/transport.py", line 66, in <module>
    from Crypto.Cipher import Blowfish, AES, DES3, ARC4
  File "/opt/prestoadmin/presto-admin-install/local/lib/python2.7/site-packages/Crypto/Cipher/ARC4.py", line 66, in <module>
    from Crypto.Cipher import _ARC4
ImportError: /opt/prestoadmin/presto-admin-install/local/lib/python2.7/site-packages/Crypto/Cipher/_ARC4.so: undefined symbol: PyUnicodeUCS2_FromString

There was a problem importing our SSH library (see traceback above).
Please make sure all dependencies are installed and importable.

This happens on Ubuntu 14.04 after installing using the offline installer.
Edit: Could be related to issue #60 due to it not being CentOS.

@cawallin
Copy link
Member

The offline installer currently is only for CentOS/RHEL. Have you tried the online installer? You can make it by doing the following:

virtualenv venv
source venv/bin/activate
python setup.py develop
pip install wheel
make dist-online

@grepwood
Copy link
Author

Works like a charm!
Only needed to do:

python setup.py develop
pip install wheel
make dist-online

@cawallin
Copy link
Member

I also just added the online installer to the 0.1.0 release download page.

It's usually better practice to use virtualenvs for python, so you don't pollute your python library space, but I'm glad it worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants