I created a "python block" using gnuradio on WINDOWs, got
module serial' has no attribute Serial
error in it, but put
'SerialIn = serial.Serial("COM16",0)'
After commenting it out, there is no error, which proves that it is not a problem of
import serial
There is a method to reinstall it on the Internet, but it still doesn't work, how can I fix it?
Related
I am using Ubuntu environment and python 3.6. When i run "sift_ocl = sift.SiftPlan(template=image, devicetype="GPU")" then I am facing below error:
"AttributeError: 'NoneType' object has no attribute 'create_context'".
Few platforms also mentioned to check "import pyopencl" and it is also giving error on import "ImportError: libsvml.so: cannot open shared object file: No such file or directory", for which I didn't find exact solution.
I tried similar problems solution which are posted online and having ****.so dynamically linked shared object libraries issues but didn't work for me.
Please guide me, thanks.
When I import the module 'geocat.comp' the error AttributeError: module 'os' has no attribute 'WNOHANG'. But the 'os' module has been bulit when python was bulit. enter image description here
I don't know why. Could you please give me some suggestions and tips.
It seems like the library you are using does not support Windows (yet).
See this particular issue from the geocat-comp repo.
Also, please avoid pasting error messages as an image.
I'm trying to access a serial port with Python 2.6 on my Raspberry Pi running Debian. My script named serial.py tries to import pySerial:
import serial
ser = serial.Serial('/dev/ttyAMA0', 9600)
ser.write("hello world!")
For some reason it refuses to establish the serial connection with this error:
AttributeError: 'module' object has no attribute 'Serial'
When I try to type the same code in the interactive Python interpreter it still doesn't work.
Strangely, it used to work about a couple of hours ago.
What could be the problem? I've tried to fix this for a while, installing pySerial again, rewriting my code, double-checking the serial port, etc.
Thanks in advance!
I have a Django project running on Azure, and I encountered this issue with the enum module and I have tried everything from
here(Why Python 3.6.1 throws AttributeError: module 'enum' has no attribute 'IntFlag'?)
The problem is that I don't have the issue locally, I only see the issue on Azure. Therefore, I cannot just uninstall it locally. I have tried to uninstall it in the Azure terminal, but it showed that the module was not found. I have also tried to install aenum instead of enum by adding it to requirements.txt, still didn't work.
Can someone PLEASE advise me on how to fix this issue?
Here is a screenshot of the error
Here is the link to the source code In the folder, the problem occurred after we added "search".
I am using the Matlab Engine for Python.
When I try to run the command:
matlab.engine.find_matlab()
in the python prompt, I get the following error:
AttributeError: 'module' object has no attribute 'find_matlab'
I looked into the source code of the corresponding module (matlabeninge.py), there is no 'find_matlab' method in it, or other methods listed in the Mathworks documentation.
Though I can properly start a Matlab session using:
matlab.engine.matlab_startup()
I tried reinstalling both Matlab & the Python package, nothing changed. It's as if the module lacks some code.
Has anyone else encountered this?
Please try to follow the example listed here
The syntax is :
names = matlab.engine.find_matlab()
did that solve the issue ?
I used the following line to solve a similar issue: (so I imported matlab.engine two times)
import matlab.engine
I called eng = matlab.engine.start_matlab('-desktop') after it and got the following error message without the import:
AttributeError: 'int' object has no attribute 'engine'