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:
...
2264
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
...
0
votes
1
answer
399
views
Raspberry Pi Arduino Serial with Python
I'm aware of this being the same question as in this thread. However, I tried the named solutions (yes, all of them [I think]) and it still gives the same error message.
I tried to establish a serial ...
0
votes
3
answers
244
views
Python Module issues
Im pretty new to python, and have been having a rough time learning it. I have a main file
import Tests
from Tests import CashAMDSale
CashAMDSale.AMDSale()
and CashAMDSale
import pyodbc
import ...
0
votes
0
answers
365
views
Trying to execute code from Python 3.7.2 on my Arduino and stuck
thank you in advance.
I will try to keep it short.
I have an Arduino + IDE with a serial port that works fine.
I downloaded Python 3.7.2, PySerial, and VPython.
Installed all of them.
Installed ...
0
votes
1
answer
173
views
Attribute error when using pyserial in psychopy
I am working with psychopy and using the pyserial module. I have recently moved from using my laptop to a desktop. On the desktop I have successfully been able to implement the following when using a ...
0
votes
3
answers
152
views
Imported module cannot let me use the function it contains
I'm using a 2010 Head First Book for Python, chapter 2. I've created a module called nester, which contains the function print_lol, then made another program which should import nester, create a ...
0
votes
0
answers
113
views
Pandas Bug - Error when inserting list serialize as string
When trying to insert an array of string in Pandas, I got an error:
aux= np.array([20161226, 20120420, 20161223,
"['SP' 'XL' 'XE' 'ZV' 'XU' 'IF' 'HG' 'ULD' 'SY']",
'(0.13633538513239282,...
tensor's user avatar
- 3,390