Python is a programming language that lets you work more quickly and integrate your systems more effectively. You can learn to use Python and see almost immediate gains in productivity and lower maintenance costs.

learn more… | top users | synonyms

0
votes
0answers
5 views

Idle Can't Bind to Ports

I have been trying to learn python on my raspberry pi. For some reason my Idle program wont run with subprocesses. When I try to launch it from the menu, I get this error message: ...
0
votes
1answer
14 views

How can i send Hex with Python [on hold]

i want to send a hex code from my Raspberry pi to the conected Servo Drive. I have a RS 485 Shield from Link Sprite for the Communication. The Shield works because i get an answer in Python shell. My ...
0
votes
1answer
10 views

Auto Start a .py file with LXTerminal

I want to start a .py file after booting with LXTerminal. I'm using raspbian OS I try these steps: I edited sudo nano /etc/xdg/lxsession/LXDE-pi/autostart with @lxterminal and this is open ...
0
votes
1answer
21 views

Python as web server cgi and request response cycle

I am new to python and I am trying to design a mobile app with a web server on a raspberry pi. I decided to write the server code using python because I want to control some pins and write on the ...
0
votes
1answer
36 views

Momentary switch as GPIO input - Trouble with code and bouncing/floating

Update So this is now the code I'm running. It now works but is bouncing/floating. - I believe this can be controlled within the code itself by looking for an edge value as opposed to a high or low, ...
0
votes
1answer
19 views

Python CGI not working correctly from web browser [on hold]

I am new to python , I am trying to write my first python-cgi program I edited the default file inside the sites-avilabe directory and here it is: <VirtualHost *:80> ServerAdmin ...
0
votes
1answer
20 views

OTA Update of Multiple Raspberry Pi's

I have 4 Raspberry Pi compute modules, running at different locations and I would like to run a script from the server that would connect and update the pi's with the latest version of the file found ...
-3
votes
0answers
21 views

Can't get graphics on python [on hold]

Tried to get graphics on python 3 but the every time I tried it didn't run from the idle, I have looked in books cut and pasted and tried everyone's suggestions but each time it didn't work.
1
vote
0answers
17 views

kernel Disabling IRQ #49

I am using the RPi_GPIO library in a python shell to read a raw wireless signal using the wait_for_edge() function in a loop like so: while True: GPIO.wait_for_edge(26, GPIO.RISING) print 'R' ...
-2
votes
0answers
14 views

Quiz with tact switches - need help

I wrote this code to my project - RPi Quiz with tact switches. import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.setup(23, GPIO.IN, ...
0
votes
0answers
22 views

smtplib sending multiple attachments instead of one. why?

I am trying to run a python script at bootup which will take a ~10 second video on applying an external input (such as push button, IR sensor etc, and in our case an ultrasonic sensor), and then mail ...
0
votes
0answers
36 views

Singular access to the NOIR board from a server and a motion script

I am using the raspberry pi NOIR board to supply a Python motion detection script. This "motion detection script" uses opencv2 to grab, modify and detect motion. I wanted to extend the motion ...
0
votes
0answers
8 views

IRW does not show any thing

I want to use an infrared remote control. I'm using an infrared diode tsop38238. first I disabled the device tree because mode2 did not work at the beginning. After disabling I recorded my remote ...
0
votes
1answer
32 views

Pub/Sub between computer and Raspberry Pi

So I am using the python bindings for ZeroMQ in an attempt to send messages to several raspberry pis on a network for an art project. The issue is that I am not receiving any messages on the raspberry ...
0
votes
0answers
22 views

what is Best Gaming Programming Language [closed]

I'm facing a problem to decide which programming language to use to develop a game with medium level of graphics and interaction with open cv on Raspberry Pi.. I'm thinking of HTML5 and python...i ...
0
votes
0answers
13 views

cv2.contourArea on SimpleCV blob not working like on desktop

I have identical code running on both the raspberry pi, and my Ubuntu14.04 desktop. import cv,cv2,SimpleCV import numpy as np from SimpleCV import Image img=Image("in.jpg") blobs=img.findBlobs() ...
-1
votes
0answers
27 views

how to raspberry pi hindi language with speech recognition [closed]

My project is home appliance by speech recognition So I am leaving form India That are not understand people like us tone English by speech properly. Plz help how to Hindi speech in raspberry pi and ...
0
votes
1answer
22 views

Encrypting Data sent to Server [on hold]

I would like to encrypt the data being sent from my pi to the sever. I have referenced this post : http://stackoverflow.com/questions/27287306/sending-encrypted-strings-using-socket-in-python which ...
0
votes
1answer
26 views

Raspberry Pi Over the Air Update [closed]

I have a raspberry pi and it is connected to a server. Realistically, I will have multiple pi's and a server. I will need to push an updated file to the pi from the server. My question is, is an ...
0
votes
1answer
25 views

execute GTK app from SSH terminal

I installed bluetooth-sendto in raspberry. but when i want use this app via bluetooth-sendto --device=6C:0E:0D:3A:1F:90 ~/WORK/TEST.mp3 give me error : ** (bluetooth-sendto:28746): WARNING **: Could ...
0
votes
1answer
41 views

Executing commands on terminal via SSH from Android application

I'm developing an Android application to control a RC car. I have a Raspberry Pi 2 running a Python script successfully controlling the motors moving the car. When I connect with Putty I am able to ...
1
vote
0answers
34 views

GPIO superuser problem [closed]

I have an analog to digital convertor (mcp3008) hooked up to the spi ports. I'm running a python script that reads the digital input and prints it as an integer number to the screen. I want to take ...
1
vote
2answers
113 views

Pi nRF24L01+ error

I'm using a Raspberry Pi 2 and a nRF24L01+ with the pyRF24 library. I've had it working fine on a Raspberry Pi (1) model B rev 2 but on the Pi 2 I'm getting this error: can't send spi message: ...
0
votes
1answer
65 views

QtPy5 on Raspbian, getting ImportError: cannot import name QtCore

I need to be able to use the latest WebKit that includes WebRTC support How do I install Qt5+QtPy5 on Raspbian? What I have tried so far... Installed Qt5 on RPi2 - PASS Native build Qt5 on RPi2 ...
0
votes
0answers
32 views

Error when installing Flexget

Having some problems trying to install flexget. I get the following error when I run the command: pi@rpi:~$ sudo pip install flexget Requirement already satisfied (use --upgrade to upgrade): ...
-4
votes
0answers
17 views

How to run java file for speech recognition [duplicate]

jasper documentation file run in raspberry pi but that is not better performance How to better performance And Another way to speech recognition . in raspberry pi ??? So please tell me.
0
votes
2answers
47 views

Extend my project to multiple remote Pis

My project is a home security system. Until now everything is embedded on one device. But I would like to use multiple Pi's, for example RFID reader on different spots without the need of cables. The ...
1
vote
1answer
16 views

designing a traffic controller based on traffic flow and it runs on infinite loop

I'm designing a flow rate based traffic controller on raspberry pi using buttons as traffic simulators. the problem i'm facing is that the maximum value gets selected at first and there can be no ...
1
vote
1answer
38 views

Raspi Type B with MQ sensors (updated)

Is there any other way to integrate raspberry pi with mq sensors?? I've been successful with one mcp3002 and one mq-2 sensor but is it possible to add another mq sensor (mq4,mq6) and should i provide ...
2
votes
1answer
36 views

Piezo with Python

I've found Piezo example for Rpi with specific libraries in Java and C (wiring) -- are there any for Python? I've seen PyPiezo but it seems to be for specific hardware.
1
vote
1answer
48 views

ESC control by RPi B to manage brushless motors via python

This post may be similar to other ones, but they didn't solve my problem: I've gor four Hobbywing Skywalker 40Amp ESCs, to control four brushless motors (these ones) to make a quadcopter. I plugged a ...
1
vote
0answers
25 views

OSError: libportmidi.so: cannot open shared object file: No such file or directory

i'm a newbie with Raspberry PI (my model is B+). I'm tryng to write a script in python that read a midi file and switch on/off leds... My code for reading midi file is this one: import mido output = ...
0
votes
0answers
22 views

Return from a gpio event

Finally I was able to fix this with a program that uses gpio.add_event_detect, but when I get the audio file I need to send it to another function and get text that that function return. This is my ...
0
votes
0answers
48 views

Raspberry pi python freeze

On my raspberry pi i am running a time lapse camera an than have it save to a usb flash drive and it has been working fine 'till a few days ago. When I start it, it will run, print out the number of ...
0
votes
1answer
75 views

Raspberry PI 2 Model B Not Detecting ds18b20 Sensor (Tested with Multiple Sensors)

I just wanted to ask some advices. I have tried everything I could find, including : /boot/config.txt add Line dtoverlay=w1-gpio,gpiopin=4 Update and Upgrade Updating firmware Buying new Sensors. ...
0
votes
0answers
51 views

WiringPi and CGI in Python

I want to be able to toggle a GPIO pin from from a web browser. I've found this forum topic (http://tiny.cc/d1eixx) and even the though code seems fine, it doesn't toggle the pin: #!/usr/bin/python ...
-2
votes
1answer
80 views

video gstreamer via python and image processing (fails)

command line (receive via ubuntu) :::gst-launch-1.0 -v tcpclientsrc host=111.111.0.111 port=5000 ! gdpdepay ! rtph264depay ! avdec_h264 ! videoconvert ! autovideosink sync=false command line (send) ...
1
vote
0answers
54 views

Microstack Accelerometer not working. I2C issue?

I just received a Microstack Accelerometer about a week and a half ago. I put the Accelerometer onto the Microstack Baseboard and followed all of the instructions that were provided here. When I go ...
1
vote
1answer
53 views

Screaming Jelly Baby program problems

I am quite new to using the Raspberry Pi2. Currently I am trying to run the Screaming Jelly Baby program in Python by using the GPIO pins ...
0
votes
0answers
25 views

Webcam doesn't work on Raspberry Pi VIDIOC-QUERYMENU: Invalid Argument

So I wrote an image processing program in Python on my windows computer and it works fine there, but when I try to run it on the Raspberry Pi I get VIDIOC-QUERYMENU: Invalid Argument a bunch of times. ...
0
votes
0answers
51 views

Sending text on android phone commanded by Raspberry pi USB, WITHOUT internet

I simply want the Raspberry Pi to instruct a mobile Android phone to send a text SMS. The preferred connection to the Pi is via USB. I do not have an internet connection in this configuration. I have ...
3
votes
1answer
64 views

RGB LED is not lighting up

I connected an RGB LED(common anode) via the GPIO, and tried to get it to light up, but for some reason when I run the command, the LED does not light up. Here's the code I'm using import RPi.GPIO ...
0
votes
0answers
46 views

Pi getting data from XinoRF

I'm trying to get the data from a DHT11 sensor connected to the XinoRF board. But it seems I get nothing from the wireless port ttyAMA0, but when I use the USB port ttyACM0, the python program seems ...
0
votes
1answer
76 views

Cron Job will not run from boot on Rasberry PI 2

Hey guys so I am relatively new to programming and am attempting to run a program from boot using a cron job on a rasberry pi 2. So I went into the terminal and accessed the cron tab, I then entered ...
0
votes
1answer
41 views

Raspberry Pi Freezes after running Python script for a few hours

I am using the Pi to check for any weather statements and if it sees a tornado warning it uses a PiFace to set off an alarm. Program is in continuous loop but the problem is raspberry pi freezing ...
0
votes
1answer
27 views

The Current in mA at 3.3 V When Using the Internal Pull-up Resistors

I'm using RPi.GPIO in Python 3. If I do GPIO.setup(24, GPIO.OUT, pull_up_down=GPIO.PUD_DOWN) GPIO.output(24, 1) will then a current flow internally from the pin to ground even if it is not ...
0
votes
1answer
89 views

Understanding the library from MCP3002 ADC chip

can somebody explain to me about this mcp3002 library used in analog to digital conversion?? It has some connection to my first question here. # botbook_mcp3002.py - read analog values from mcp3002 # ...
0
votes
0answers
41 views

Python + Polipo + Tor

I need to send a HTTP POST request using TOR. Since TOR only supports SOCKS, I need POLIPO to redirect HTTP requests trough SOCKS in TOR. So I'm using this piece of code in python, to send things ...
1
vote
1answer
240 views

Problems Regarding Raspberry Pi Project with MQ-2 Gas Sensor

Recently I have been learning Python implementations on Raspberry Pi's GPIO system. I'm interested in wireless sensor network examples and decided to make a fire alarm system using MQ-2 sensor as the ...
0
votes
2answers
52 views

nginx on raspberry pi

I followed http://chimera.labs.oreilly.com/books/1234000000754/ch08.html#_simple_nginx_configuration to install a nginx server on my raspberry pi to work with my django project. I added a file ...