Python Import Error : Cannot Import Module Named _counter (which Is A .so File)
I 'm using Jython to execute a python script connect_host.py which uses paramiko module to connect to a specified host. paramiko module internally uses Crypto module, and Crypto.Ut
Solution 1:
In this Python documentation it says:
Jython is an implementation of the Python language for the Java platform. Jython 2.7 implements the same language as CPython 2.7 ....
... Jython programs cannot currently use CPython extension modules written in C. These modules usually have files with the extension .so, .pyd or .dll.
If import _counter
, is present in the same location as Crypto.Util
but as an .so
file, this would explain why it won't run from Jython.
Post a Comment for "Python Import Error : Cannot Import Module Named _counter (which Is A .so File)"