jython 2.7 - Python import Error : cannot import module named _counter (which is a .so file) -


i 'm using jython execute python script connect_host.py uses paramiko module connect specified host.

paramiko module internally uses crypto module, , crypto.util module uses counter.py in turn tries import _counter,which present in same location crypto.util .so file .

on execution, python throws following error:

 file "/location/helper/connect_host.py", line 3, in <module>     import paramiko  file "/python/modules/paramiko/__init__.py", line 69, in <module>     transport import securityoptions, transport  file "/python/modules/paramiko/transport.py", line 32, in <module>     paramiko import util  file "/python/modules/paramiko/util.py", line 32, in <module>     paramiko.common import *   file "/python/modules/paramiko/common.py", line 98, in <module>     crypto import random   file "/python/modules/crypto/random/__init__.py", line 29, in <module>     crypto.random import _userfriendlyrng   file "/python/modules/crypto/random/_userfriendlyrng.py", line 38, in <module>     crypto.random.fortuna import fortunaaccumulator   file "/python/modules/crypto/random/fortuna/fortunaaccumulator.py", line 39, in <module>     import fortunagenerator   file "/python/modules/crypto/random/fortuna/fortunagenerator.py", line 35, in <module>     crypto.util import counter   file "/python/modules/crypto/util/counter.py", line 29, in <module>     crypto.util import _counter importerror: cannot import name _counter 

how make jython load _counter module,which .so file??????


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -