Linked Questions

109 votes
7 answers
60k views

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

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

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

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

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

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

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 ...
PwnDoS's user avatar
  • 21
1 vote
2 answers
6k views

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)...
davy's user avatar
  • 45
0 votes
1 answer
4k views

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

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 ...
user3078439's user avatar
0 votes
0 answers
1k views

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() ...
TaraS's user avatar
  • 1
0 votes
1 answer
1k views

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

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

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

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

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

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 ...
Shikumaru's user avatar
0 votes
0 answers
365 views

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

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

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 ...
Monok's user avatar
  • 39
0 votes
0 answers
113 views

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