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

Python • Error with sudo thonny and HX711

Hi i was using sudo thonny and for some reason he wont read the HX711 import but when i use normal thonny he read it well. i need to use sudo thonny as i am using led strip.the error isfrom hx711...

View Article


Python • Re: Error with sudo thonny and HX711

Hi i was using sudo thonny and for some reason he wont read the HX711Is there some reason you are running sudo thonny and not just thonny? If you need to run through sudo then you will need to run...

View Article


Python • Re: pyinstaller on raspberry pi

.exe are for Windows. Follow the steps from the documentation here: https://pyinstaller.org/en/stable/index.htmlStatistics: Posted by kheylen25 — Sun Jan 14, 2024 8:38 am

View Article

Image may be NSFW.
Clik here to view.

Python • libcamera/picamera2 code error

Hello! I am a beginner in using Raspberry Pi so please be kind to me .I am trying to incorporate an object detection capability into my camera with the help of OpenCV and Tensorflow Lite libraries. My...

View Article

Python • auto-py-to-exe or pyinstaller bundles python3 and requirement?

Hi, i use auto-py-to-exe(a graphical interface for pyinstaller i have a python app that i want to package in .exe but i dont if it packages a minimized version of python and dependencies. i use one...

View Article


Python • Re: auto-py-to-exe or pyinstaller bundles python3 and requirement?

Hi, i use auto-py-to-exe(a graphical interface for pyinstaller i have a python app that i want to package in .exe but i dont if it packages a minimized version of python and dependencies. i use one...

View Article

Python • Re: libcamera/picamera2 code error

Hi, some of the code in that blog post is looking a bit out of date to me. You may have more luck if you go to the examples in the github repository, which look to have been updated more...

View Article

Image may be NSFW.
Clik here to view.

Python • Re: Having trouble to see it.

Sorry for the late reply. Had some RL issues. I pretty much understood some of it, but when it comes to the class iterator, my brain melts. That part I don't understand.I do have at small update. If I...

View Article


Python • tflite-support error

Hello! I'm having errors in importing the task module of tflite_support.Code: from tflite_support.task import coreThe line above produced the error: ModuleNotFoundError: No module named...

View Article


Python • MPU9250 magnometer

Hi,I try to use MPU9250 with python and raspberry pi 4.I want to write a script with the same result as this video https://www.youtube.com/watch?v=JzMaCKzWyiYHas anyone done something...

View Article

Python • Re: tflite-support error

Are you using a python virtual environment? That is recommended for python running on Bookworm.Statistics: Posted by neilgl — Mon Jan 15, 2024 8:47 pm

View Article

Python • How install flask

jack@raspberrypi:/media/jack/BOB1/movie $ pip install Flaskerror: externally-managed-environment× This environment is externally managed╰─> To install Python packages system-wide, try apt install...

View Article

Python • Re: How install flask

Not sure if you have a question of if the above are a quick guide.For virtual environment introductions try:https://www.tomshardware.com/how-to/ins ......

View Article


Python • No RPi module in Python 3.11

I just upgraded to Python 3.11 from 3.9, and it's a beautiful disaster. Now RPi.GPIO isn't working. Programs that used to work with 3.9 now return the error:Code: ModuleNotFoundError: No module named...

View Article

Python • Re: No RPi module in Python 3.11

I just upgraded to Python 3.11 from 3.9What exactly does that mean?Did you upgrade your Pi's system installed python v3.9 to v3.11? Or did you install 3.11 side by side with 3.9?If you upgraded your...

View Article


Python • Paho installaties Raspberry bookworm

I creatie a new SD card for the PI4 running PI OS “bookworm” version is dec 5 2023.Installed paho by: sudo apt install python3-paho-mqttInstalled the newest version (1.6.1-1)When I run my app I got...

View Article

Python • Re: Paho installaties Raspberry bookworm

I take it you have confirmed the MQTT Server is running and that you can get a network connection from your PI to the Server.Statistics: Posted by DS256 — Wed Jan 17, 2024 4:18 pm

View Article


Image may be NSFW.
Clik here to view.

Python • How to implement generation of a modulated digital signal in Python?

I want to create a modulated signal like the one in the following image:So my first idea was to generate a PWM signal with the carrier frequency of 10MHz and 50% dutycycle and switch it on and...

View Article

Image may be NSFW.
Clik here to view.

Python • Loop in function - read in new data

Hi! I´ll start of by thanking all the people who have helped me in my earlier questions and encouraging me to read up a bit more. I´m still reading, but now I´m coding and reading I´ve been trying to...

View Article

Python • Re: Loop in function - read in new data

I have said this in another thread, as have others in other threads too, but I will repeat it here:You need to go back and learn python from a tutorial.Some of the stuff you wrote above shoes you have...

View Article
Browsing all 1225 articles
Browse latest View live