Linked Questions
21 questions linked to/from Python AttributeError: 'module' object has no attribute 'Serial'
109
votes
7
answers
60k
views
Importing a library from (or near) a script with the same name raises "AttributeError: module has no attribute" or an ImportError or NameError
I have a script named requests.py that needs to use the third-party requests package. The script either can't import the package, or can't access its functionality.
Why isn't this working, and how do ...
1
vote
0
answers
69
views
How to fix serial communication in Arduino and Python with Azure platform to Windows 10 [duplicate]
I have problem for communication serial (USB) in my Arduino code. I am using platform azure python, Windown10
I already checked the COM ports
ser = serial.Serial( "COM5", 9600)
i=0
while i<180:
...
2263
votes
9
answers
760k
views
What is the difference between venv, pyvenv, pyenv, virtualenv, virtualenvwrapper, pipenv, etc?
Python 3.3 includes in its standard library the new package venv. What does it do, and how does it differ from all the other packages that match the regex (py)?(v|virtual|pip)?env?
205
votes
12
answers
90k
views
Why is "import *" bad? [duplicate]
It is recommended to not to use import * in Python.
Can anyone please share the reason for that, so that I can avoid it doing next time?
139
votes
7
answers
117k
views
List all the modules that are part of a python package?
Is there a straightforward way to find all the modules that are part of a python package? I've found this old discussion, which is not really conclusive, but I'd love to have a definite answer before ...
8
votes
1
answer
45k
views
Serial import python [closed]
I"m trying to use pyserial. When I do the following script.
import serial
ser= serial.serial("COM5", 9600)
ser.write("Hello worldn")
x = ser.readline()
print(x)
Error ...
2
votes
2
answers
8k
views
Python 3 AttributeError: module 'serial' has no attribute 'Serial' [duplicate]
I've seen a lot of questions on here that have this same issue, but I haven't found a solution that works yet. I'm trying to run this face tracking program, but I can't get it to work. I know that the ...
1
vote
2
answers
6k
views
Error import nmap into python
I installed nmap module for python.
While i was importing nmap,it received error. This error is attribute error.
Command line:
root@harun:~/Desktop# python nmap.py
Traceback (most recent call last)...
0
votes
1
answer
4k
views
Python - module 'serial' has no attribute 'Serial'
I wrote a small program in order to learn how to interface with my arduino.
Actually, i got it here:
https://github.com/WaveShapePlay/ArduinoPySerial_LearningSeries/blob/master/Part2_AddingUserInput/...
3
votes
1
answer
2k
views
Linear programming in Python : 'module' object has no attribute 'LPX'
For a Django website, I used Thomas Finley's glpk Python library (http://tfinley.net/software/pyglpk/glpk.html#LPX) to solve an integer linear program. I followed his tutorial (see "simple example" in ...
0
votes
0
answers
1k
views
AttributeError: 'module' object has no attribute 'vtkvmtkVesselEnhancingDiffusion3DImageFilter'
I get the following error when I try to run the script for the VEDm filter in vmtk:
[location] line 149, in ApplyVEDManniesing
vesselness = vtkvmtk.vtkvmtkVesselEnhancingDiffusion3DImageFilter()
...
0
votes
1
answer
1k
views
How to solve AttributeError: module 'serial' has no attribute 'Serial' in pyserial?
I have a Windows 10 with Python 3.7.4 and I use Jupyter Notebook. I'm trying to use pySerial to connect to my Arduino by Serial attribute. I tried installing pySerial simply by pip install pyserial ...
0
votes
1
answer
947
views
pyreport and jasperpy, i have an error with running the code
I'm new to python, and i have found on github this project "https://github.com/jadsonbr/pyreport", i want to print invoices from a mysql server. I installed pyreport and jasperpy but when i try to run ...
2
votes
0
answers
508
views
python module 'serial' has no attribute 'Serial'
I get this traceback when attempting to connect to a serial port on ubuntu 16.04
File "debugRead2.py", line 6, in <module>
ser = serial.Serial('/dev/ttyACM0', 115200)
AttributeError: module '...
-1
votes
1
answer
450
views
Game over problems in python [duplicate]
I'm almost done creating my game, It's an avoider game, however, when I add an image to use it as a gameover screen, the program complains with the following error ('\Dodger.py", line 230, in
...