Questions tagged [python-2.x]
To be used when a piece of code in a question is specifically related to any version of Python 2.
68
questions
0
votes
1answer
37 views
SSH showing “connection failed” after installing “pip”
Python3, pip3 and python was installed before on my Raspberry Pi. Today I've successfully installed pip using below command:
sudo apt-get install python-pip
After few hours later I'm not able to ...
0
votes
1answer
285 views
error trying to set up RFIDIOT on raspberry
I am new to raspberry and python in general. I followed different guides to set up RFIDIOT (even the documentation and the installation guide on the repository on Github). So far, when I run pcsc_scan ...
0
votes
0answers
57 views
Help with multiple inputs and responding to how long the inputs have been active
I'm using python 2.7.13 on a Raspberry Pi 3
The goal of my program is to send an email when an input is received (input goes low and I'm using software pull-ups) and then send out another email with ...
0
votes
1answer
74 views
What does it mean and what are the reasons for when a RPi3 cannot find a service?
I have a RPi3 which can successfully trust, pair, connect and even list the service UUIDs of a BLE device both via bluetoothctl and via Bluepy python library.
But when it tries to 'get' that service ...
0
votes
0answers
147 views
python 2.7 vs pyserial - no _port
I really have tried searching through all the forums. confusing.
The makers of Roboclaw wrote their test pythons scripts (and Roboclaw class) with Python 2.7. As of now, will NOT work with python v3.
...
0
votes
2answers
1k views
Why would os.system('sudo pigpiod') fail silently, but only part of the time?
I'm trying to learn how to safely and reliably start and stop the pigipod DEOMON process from within a python script.
If pigpiod happens to be running already, then this script is always successful. ...
0
votes
1answer
455 views
Frecuent missing data error on DHT11
First of all, as this question involves a raspberry, python, Rpi. Gpio module and hardware build, I thought this was the place for it.
In the past I've done some work around Dht11 sensor and python ...
0
votes
1answer
168 views
Python requests.post - intermittent failure when connected to Huawei E5330 MiFi
I have a python script running on startup on a number of Raspberry Pis (model 3). The script watches a serial port for data from an air quality monitor then posts this data to a web server using the ...
0
votes
1answer
490 views
How do you put the serial values(from arduino) to a specific grid in Tkinter? (Python 2.7)
I tried to put values in the grids from a string. But the values are not showing or updating. How do you put serial values(from arduino) to a specific grid in Tkinter? When I run the code, no values ...
0
votes
1answer
2k views
Using I2C commands in Python 2
I would like to add code to a Python program for my Pi (Raspbian Jessie or Stretch) which will do the equivalent of these command line commands:
sudo i2cget -y 1 0x6b 0x05
sudo i2cset -y 1 0x6b 0x05 ...
0
votes
1answer
103 views
error with imapclient library in raspberry pi
I'm getting these errors while running a program:
> Traceback (most recent call last):
> File "parseIMAPemail.py", line 5, in <module>
from imapclient import IMAPClient
File "/usr/...
0
votes
1answer
2k views
Displaying a continuously updating time stamp on a 10 minute video
My objective is to print a continuously updating time stamp on every second of a ten-minute video recording instead of one that updates every minute. I'm running the picamera module of python version ...
0
votes
1answer
120 views
Adafruit IO Error [Errno5]
I'm an amateur Raspberry Pi user and I'm trying to run this program: https://github.com/caternuson/rpi-weather
The files are all in Python 2.7.
I believe I have wired everything up correctly, and ...
0
votes
1answer
1k views
script works in command line but doesn't in shell
I am using scapy to send a packet. which works fine in command line under the code.
send(IP(dst="www.google.com")/ICMP())
But when I try to send it inside shell it throws an error. The code I am ...
-1
votes
1answer
65 views
Python script not accepting import function
I've been writing a simple python script, and I import the GPIO library, and the time library. I have the following code.
print()'Importing GPIO library'
import RPi.GPIO as GPIO
print()"Importing ...
-1
votes
1answer
267 views
how to solve this segmentation error problem
I am writing a basic code for a robot to follow the blue color and whenever I am running the code it gives that out put
the y is :0
the x is :0
moving to the right
moving forward
Segmentation fault
...
-1
votes
1answer
171 views
Mobile camera as a webcam for Pi 2 via USB
How can I use a mobile camera as a webcam for my Pi 2 text recognition idea by connecting the camera to the Pi using USB?
-1
votes
1answer
3k views
Jessie: How to deal with Python open of /dev/ttyACM0 not sending RST signal like it does with /dev/ttyUSB0
For my data loggers I use Python to open a serial port to Arduino Nano or Uno units that perform voltage and temperature measurements.
In operation, the Python program reads data from the serial ...