Python • venv is not activating by .sh file
It's only 2 months I am working with raspberry pi. I am Trying to run my python file at startup, library and modules are installed in venv.My code is in home/admin/Downloads/code_dumpand venv is in...
View ArticlePython • Re: Fatal Python error: init_fs_encoding
Hi,I agree with the new installation, I already started this. Tried to do that on a PI4, but do not have an hdmi output (will get a new micro hdmi cable to see if it was the hdmi to microhdmi piece) ,...
View ArticlePython • Re: venv is not activating by .sh file
Are you activating your VENV? https://gist.github.com/nmpowell/d44482 ... 2ee4f591cfStatistics: Posted by DS256 — Sat Mar 02, 2024 2:24 pm
View ArticlePython • rp2040 DMA Write Register Decrementing?
Having a problem with the DMA writing to a byte memory location one less than the Write Register was set. I have read and write increments off and am transferring only one byte at a time. (string of...
View ArticlePython • Stuck in python hell
So the project that I am doing will be using 2 stepper motors controlled by GPIO's controlling 2 Driver boards (ULN2003A) and 5 servos controlled by a Teyleten Robot PCA9685 16 channel Board (using...
View ArticlePython • Re: Stuck in python hell
Can you post your code ?Statistics: Posted by gordon77 — Sat Mar 02, 2024 8:02 pm
View ArticlePython • Trouble with Flask
Good day everyone, I need another set of eyes or two.I'm working on a Flask web server project for school and can't seem to figure an issue out. The project is to have a RPI4 serve a website that has...
View ArticlePython • Re: Trouble with Flask
Try reposting with code tags. And I'd recommend you also remove all the commented out code, makes it easier to read through without all that junk there.Statistics: Posted by memjr — Sun Mar 03, 2024...
View ArticlePython • Python Program Adaptation
Hello,I am a beginner and I am seeking assistance in adapting a Python program. It was designed to run on a Raspberry Pi Pico, but I would like to make it work on a Raspberry Pi 5. I don't know much...
View ArticlePython • Re: Python Program Adaptation
Depends what it is doing - post it here so we can have a look.The main difference will probably be in the use of the GPIO i.e. Pi 5 using the gpiozero library whereas Pico uses machine as in:Code:...
View ArticlePython • Re: Network Manager fix for Debian Buster
then, you'll have to fixup the module for your use case as i did, i would start by changing that if/else of addr_to_python to a try/exceptHi alfrix. Sorry to bother again but you're the only one I...
View ArticlePython • 433Mhz with gpiod 2.1.3
Hi,could someone please point me to some code examples/libraries to control 433Mhz sender/receiver units using the current pgiod module?Many thanks!Statistics: Posted by p789 — Thu Mar 07, 2024 6:37 am
View ArticlePython • Re: 433Mhz with gpiod 2.1.3
What have you found so far Googling this yourself?Statistics: Posted by DS256 — Thu Mar 07, 2024 12:12 pm
View ArticlePython • PCM to PWM help
I am attempting to use 4 different motors independently, using 4 ln298n motor controllers. I would like to use PWM on all four, but for the pi 4b, there only seems to be 2 PWM pins. What pins should i...
View ArticlePython • embedding gps coordinates into video frames
Hello. I want to write a simple script that records a video and keeps track of frame numbers of a video and gps coordinates. cgps for some reason doesnt work, but gpsmon /dev/serial0 works. for my...
View ArticlePython • Alternatives to Thonny that support remote Python debugging
I am use to Thonny not supporting remote debugging MicroPython on PICO but just discovered the same is true for Python. I'm using Thonny on a P400 to develop code on a headless ZERO. My research...
View ArticlePython • Re: Alternatives to Thonny that support remote Python debugging
VS Code works well, though it has been a while since I had to run it on a Pi 4.I use VS Coee and pycharm., and while I love Pycharm, it is very heavy for a pi. So not a good candidate. If you were to...
View ArticlePython • Re: Having issues with GPIO pins
Off hand, I would say that the Python Packages in your Virtual Environment don't match those in your local or system package directories. It could also be a package version mismatch between VENV and...
View ArticlePython • How Do I Use this Export Function?
I am making an audio recorder, and I need to have an export feature. I have the Audacity mod-script-pipe and I want when I run the code it exports the audio in Audacity to the date and time for the...
View ArticlePython • Re: How Do I Use this Export Function?
You might be better off asking at the Audacity Forum, where they support their product.It looks, however, that you can pass a filename to export to: see here - Using Audacity Scripting From Python ......
View Article