Quantcast
Channel: Raspberry Pi Forums
Browsing all 1579 articles
Browse latest View live

Python • find() function behavior

I have written the following code to scan through a line of text and return the index of the key strings that exist in the scan stringWhat I want it to do:1. Return ALL the instances of the key...

View Article


Python • Re: find() function behavior

https://stackoverflow.com/questions/466 ... -substringKudos for the ELP reference.Statistics: Posted by jamesh — Fri Aug 15, 2025 3:20 pm

View Article


Image may be NSFW.
Clik here to view.

Python • Autostart Python script in pyenv help needed

Hi Guys,I'm very new at Rasberry with a little bit of arduino under my belt but not much.I'm trying to setup a Karaoke for my kids using a Pi 5.I've install an awesome program ( have a look if you are...

View Article

Python • Re: Autostart Python script in pyenv help needed

See viewtopic.php?t=314455Statistics: Posted by DS256 — Sun Aug 17, 2025 11:08 am

View Article

Python • Accessing Met Office DataHub forecasts

I've written a basic guide to accessing the free Met Office DataHub service on a Raspberry Pi. DataHub provides weather forecasts for the UK and beyond. The guide uses Python, but is at a fairly basic...

View Article


Python • Re: Accessing Met Office DataHub forecasts

NiceStatistics: Posted by neilgl — Sun Aug 17, 2025 4:55 pm

View Article

Python • Best Practices and Tools for Python Development: Tips and...

Hi everyone,I’m diving deeper into Python development and would love to hear from the community about the best practices, tools, and frameworks you use.Some things I’m curious about:What are your...

View Article

Python • Re: Best Practices and Tools for Python Development: Tips and...

My common favorite libraries:ipythonptpythonrequestsniquestsblackisortshedruffmypyjupiter-notebooknumpymatplotlibmore-itertoolsflaskpydanticfastapiSQLAlchemyLibraries for my...

View Article


Python • Re: Interfacing the Hiwonder ESP32-S3 vision module

I’m trying to reprogram a hiwonder armpi fpv to use computer vision to detect insects but I keep getting errors. Here’s my output:jack@raspberrypi:~ $ startxX.Org X Server 1.21.1.7X Protocol Version...

View Article


Python • Re: which conda on a raspebrry pi zero 2 w

So chatgpt was telling me to use Miniforge. I did it as below:wget https://github.com/conda-forge/miniforg ... aarch64.sh chmod +x Miniforge3-Linux-aarch64.sh./Miniforge3-Linux-aarch64.shThe problem...

View Article

Python • Problem during rpi-kms installation

Hi thereI need to install picamera2 in an virtual environment, which requires the installation of rpi-kms. The problem is that for my application I the highest version of Python I can use is 3.10. So...

View Article

Python • Re: Problem during rpi-kms installation

Directly copied from the Description:If you are able to use the system python, then running sudo apt install -y python3-kms++ will install pykms in the simplest way.If you do require a virtual...

View Article

Python • Re: Cannot find BME280 module

The next problem, also overcome, was getting Thonny to use the venv. As the author of Thonny says, documentation is 'obscure')Can you share your fix for Thonny+VENV?I can get Thonny to work if it...

View Article


Python • Can Someone Help Me out with Pyautogui?

Ok So Im trying to Automate this1. Open Glabels (Did this with Popen)2. Have Glabels Open a File so its ready to work with.(This involves an (alt + f) keystroke, then manually typing in a file name...

View Article

Image may be NSFW.
Clik here to view.

Python • Re: Can Someone Help Me out with Pyautogui?

Nevermind, needed to run the program as administrator All Good Statistics: Posted by Andrew_2112 — Tue Aug 26, 2025 2:58 am

View Article


Python • VENV Considerations when needing --SYSTEM-SITE-PACKAGES

This post is an off shoot of one I started on the Python Documentation Forum at https://discuss.python.org/t/recommend- ... ges/103291My premise is that RP Python Users use enough system level...

View Article

Python • Re: VENV Considerations when needing --SYSTEM-SITE-PACKAGES

Clarification question: OP mentions "PIP -L", but the web page you point to on pip.pypa.io only mentions "-l" (lower case).Presumably the capital L is a typo that should be lower case l?Statistics:...

View Article


Python • Python apt install OBD module

Trying to build an automotive dash with python-OBDsudo apt install python3-obdreturns error Unable to locate package.New to raspberry pi and have never gotten pip installs to work correctly. Is there...

View Article

Python • Re: Python apt install OBD module

On a Pi5 running Raspberry Pi OS "Bookworm" 64-bit, this worked for meCode: mkdir myenvcd myenvpython -m venv --system-site-packages envsource env/bin/activatepip install obd…Successfully installed...

View Article

Python • Interfacing with CN0554 using PyADI-IIO

Hello, I'm very new to using raspberrypi's so apologies in advance if my wording or use of terminology is not the best.I'm attempting to use a raspberrypi 3 with a CN0554 Hat from ADI to convert...

View Article
Browsing all 1579 articles
Browse latest View live