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.

24 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
717 views

Recommended way for a python script to check NTP update status, and initiate an update if necessary?

I am writing a data logging python script and I would like it to find out if the system clock has been synchronized via NTP recently, and if not, to attempt to cause it to happen before proceeding. ...
1
vote
0answers
25 views

Vilvaldi can't found Python

hello there fam I am using a python code to open a specific link like this using a webbrowser module code is this: webbrowser.get("vivaldi").open('http://127.0.0.1/raspi/invalid.php?error=403') but ...
1
vote
1answer
300 views

Slow Video Processing

I installed OpenCV libraries in raspberry pi for my project "Air Hockey Robot" and I'm using python for video processing. I am using PS3 eye camera for video capture at 60 fps. But it seems that video ...
1
vote
0answers
341 views

Play piano keys through Bluetooth LE and Midi

On the desktop Using my desktop Macbook I can successfully "remote-play" notes on my piano through the USB-Midi to Bluetooth adapter (Yamaha UD-BT01). First I pair the device through the Audio Midi ...
1
vote
0answers
415 views

Using UHF RF READER (VM-5GA) with raspberry Pi 3

I am having trouble with configuring the serial communication of raspberry Pi 3 with Raspbian Jessie OS. I want to connect my UHF RFID READER to my raspberry pi 3. This UHF RFID reader has already ...
1
vote
0answers
1k views

How to detect an empty stdout pipe in Python with subprocess

I'm experimenting with, or better trying to learn and understand, the subprocess modules using Python on a Raspberry Pi running Raspbain Jessie. In the code below I'm piping the Internet traffic for ...
0
votes
1answer
16 views

Pigpio on callback get value

I currently have some code that I found that constantly outputs a value from a digital caliper. However, I want to modify this so that it is inside a function that can return that is returned from ...
0
votes
0answers
24 views

how to make python program executable in rpi

I have a python code which works well in raspberry on boot. I need to hide the code and make the user to non editable. The program have a kivy ingerface and the program starts on start up. Even though ...
0
votes
0answers
39 views

capturing video stream using piCam

i'm trying to capture the video stream using piCam. but i get this warning and the execution stops this the code: this the code I used: import numpy as np import cv2 cap = cv2.VideoCapture(0) cap....
0
votes
0answers
26 views

rasberrypi gui using python 2.7

I'm trying to host run a GUI program on my pi using ssh. but I get this error: App(Tkinter.Tk(), "window name") NameError: name 'Tkinter' is not defined. however when I type "import Tkinter" in pi ...
0
votes
0answers
132 views

Read registers of Power Meter w/ RPi using Pymodbus TCP

I'm trying to monitor the power usage of multiple devices and store that data in a database using Python. I am connecting my RPi 3 to the power meter via an Ethernet cable and using Modbus TCP. To use ...
0
votes
0answers
109 views

Error: could not locate runnable browser

I am using Raspberry Pi3 B+, I have a problem with webbrowser module, when i run my Python 2 Program Code: import webbrowser url = "youtube.com" chrome_path = "/home/pi/Desktop/Chromium Web Browser" ...
0
votes
0answers
247 views

Cannot install install tensor flow on raspberry pi 3b

i am running into an error when i try to install tensor flow using pip on my raspberry pi 3b+. here is the error message: Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/...
0
votes
1answer
66 views

Adafruit_Nokia_LCD module on Raspberry Pi Zero W

I'm stuck with this Adafruit module. I was able to install without errors on a Pi2, but when I tried to replicate on my Zero W the installation goes fine but then I cannot import the module ("...
0
votes
1answer
34 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
192 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
51 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
60 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
110 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
1answer
355 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
369 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
97 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 ...
-1
votes
1answer
111 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?