import P4API fails on win 64, python 3.5.1 - python

I'm getting the following error when running import P4:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python35\lib\site-packages\P4.py", line 410, in <module>
import P4API
ImportError: DLL load failed: The specified module could not be found.
OS: Win 7 64 bit
Python: 3.5.1
P4Python: https://pypi.python.org/pypi/P4Python : p4python-2015.2.1348262-cp35-none-win_amd64.whl (md5)
I looked online but couldn't find something that would help.

Related

Python toolkit mb_protocol module not found error

I just have installed wxPython and python toolkit 18.08 in Ubuntu 20.04.But,while runnimg from command line python PTK.pyw, I got an error as below
> Traceback (most recent call last):
File "PTK.pyw", line 10, in <module>
import ptk_lib.app as app
File "/home/jobayer/下载/PythonToolkit-18.08/ptk_lib/app.py", line 17, in <module>
from ptk_lib.message_bus.mb_node import MBLocalNode
File "/home/jobayer/下载/PythonToolkit-18.08/ptk_lib/message_bus/mb_node.py", line 14, in <module>
import mb_protocol
ModuleNotFoundError: No module named 'mb_protocol'
I did not find mb_protocol module any where.Where can I find this module?

TensorFlow fails to load runtime after installation from source

I started compiling TensorFlow from source on Ubuntu Linux 16.06 LTS, running the commands from the TensorFlow Linux compilation instructions.
My CUDA and CuDNN setup works, as the pre-compiled TensorFlow nvidia-docker image works.
After using bazel to build the TensorFlow Python wheel, and then installing the wheel with pip, I get the following error message when trying to import TensorFlow:
>>> import tensorflow
Traceback (most recent call last):
File "/home/james/workspace/tensorflow/tensorflow/python/pywrap_tensorflow.py", line 41, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
ImportError: No module named 'tensorflow.python.pywrap_tensorflow_internal'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/james/workspace/tensorflow/tensorflow/__init__.py", line 24, in <module>
from tensorflow.python import *
File "/home/james/workspace/tensorflow/tensorflow/python/__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "/home/james/workspace/tensorflow/tensorflow/python/pywrap_tensorflow.py", line 52, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/home/james/workspace/tensorflow/tensorflow/python/pywrap_tensorflow.py", line 41, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
ImportError: No module named 'tensorflow.python.pywrap_tensorflow_internal'
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
This error happens when you are running Python from the TensorFlow source directory after having installed the Python wheel.
A similar error happens when you try importing TensorFlow before installing the Python wheel.
The solution to this problem is to change your working directory to something else, while still remaining in the virtualenv that you installed the Python wheel to.

error Installing pymqi on 64bit windows machine

After struggling a lot to build pymqi ,i finally built it. but now when i import the pymqi library its throwing an error message :
>>> import pymqi
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pymqi\__init__.py", line 109, in <module>
import pymqe, CMQC, CMQCFC, CMQXC
ImportError: DLL load failed: %1 is not a valid Win32 application.
In case some one wants the build log :
https://codetidy.com/8314/

ImportError: DLL load failed: %1 is not a valid Win32 application [pycrypto]

I installed PyCrypto on python 64-bit version on windows 10 64-bit version
when i type :
from Crypto.Hash import SHA512
everything is working fine and i can calculate the hash
but when i type: from Crypto.PublicKey import RSA,or any Crypto.PublicKey library i am getting errors:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "c:\users\ali\appdata\local\temp\easy_install-1inbe0\pycrypto-2.6.1-py2.7-win-amd64.egg.tmp\Crypto\PublicKey\RSA.py", line 78, in <module>
File "c:\users\ali\appdata\local\temp\easy_install-1inbe0\pycrypto-2.6.1-py2.7-win-amd64.egg.tmp\Crypto\Random\__init__.py", line 28, in <module>
File "c:\users\ali\appdata\local\temp\easy_install-1inbe0\pycrypto-2.6.1-py2.7-win-amd64.egg.tmp\Crypto\Random\OSRNG\__init__.py", line 34, in <module>
File "c:\users\ali\appdata\local\temp\easy_install-1inbe0\pycrypto-2.6.1-py2.7-win-amd64.egg.tmp\Crypto\Random\OSRNG\nt.py", line 28, in <module>
File "c:\users\ali\appdata\local\temp\easy_install-1inbe0\pycrypto-2.6.1-py2.7-win-amd64.egg.tmp\Crypto\Random\OSRNG\winrandom.py", line 7, in <module>
File "c:\users\ali\appdata\local\temp\easy_install-1inbe0\pycrypto-2.6.1-py2.7-win-amd64.egg.tmp\Crypto\Random\OSRNG\winrandom.py", line 6, in __bootstrap__
ImportError: DLL load failed: %1 is not a valid Win32 application.
I am new to installing and using python packages and libraries.
here you can see that the library is included correctly
can someone help me with this error please?

Import issue for cvxopt on Windows

I installed cvxopt verbatim from here. On using it from the python prompt, I see the following issue:
>>> import cvxopt
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build\bdist.win32\egg\cvxopt\__init__.py", line 32, in <module>
File "build\bdist.win32\egg\cvxopt\base.py", line 7, in <module>
File "build\bdist.win32\egg\cvxopt\base.py", line 6, in __bootstrap__
ImportError: DLL load failed: The specified procedure could not be found.
>>>
Any ideas to resolve this?
cvxopt requires Numpy-MKL, you can get the windows binary here.
And install the cvxopt binary from here

Categories

Resources