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: ...
2263 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 ...

15 30 50 per page
1
2