Go to advanced search

by croston
Tue Jun 02, 2020 9:03 pm
Forum: Troubleshooting
Topic: RPI.GPIO and Pi4 issue ?
Replies: 20
Views: 4196

Re: RPI.GPIO and Pi4 issue ?

Thanks - I'll take a look at this. I've got to check RPi.GPIO behaves properly with the new foundation maintained arm64 distro anyway. I've a couple of compiler warnings with Python 3.9.0b1 to clear up too.
by croston
Mon Mar 09, 2020 6:16 pm
Forum: Networking and servers
Topic: Best resources and tutorials for configuring an email server
Replies: 2
Views: 185

Re: Best resources and tutorials for configuring an email server

Although not RPi specific, this guide for Debian has served me well. https://workaround.org/ispmail
by croston
Sat Feb 15, 2020 3:21 pm
Forum: General discussion
Topic: STRANGE -- make changes - reboot - changes are gone!???
Replies: 10
Views: 502

Re: STRANGE -- make changes - reboot - changes are gone!???

I've had something similar happen before. Turned out that it was a strange SD card fault. Clone your SD card and it will probably be OK on the new one.
by croston
Mon Oct 07, 2019 6:40 am
Forum: Python
Topic: Syntax of add_header
Replies: 9
Views: 767

Re: Syntax of add_header

The line in question is using 'f strings'. This was only introduced to the language in Python 3.6. What version of Python are you using? If you are using Python3 on Raspbian Stretch then you are only using Python 3.5. Either switch to Raspbian Buster or manually install the latest version of Python....
by croston
Mon Aug 26, 2019 11:25 pm
Forum: Troubleshooting
Topic: RPI.GPIO and Pi4 issue ?
Replies: 20
Views: 4196

Re: RPI.GPIO and Pi4 issue ?

This fix is now in Raspbian Buster if you run an update:

Code: Select all

sudo apt update && sudo apt full-upgrade
by croston
Thu Aug 15, 2019 6:37 pm
Forum: Beginners
Topic: Print raw data to label printer from python2 not working as expected.
Replies: 9
Views: 3678

Re: Print raw data to label printer from python2 not working as expected.

To install the lpr command:

Code: Select all

sudo apt install cups-bsd
by croston
Mon Jul 08, 2019 5:13 pm
Forum: Troubleshooting
Topic: RPI.GPIO and Pi4 issue ?
Replies: 20
Views: 4196

Re: RPI.GPIO and Pi4 issue ?

You can now install the alpha release (for testing purposes):

Code: Select all

$ pip3 install --upgrade --pre rpi.gpio
Let me know if it works or not.
by croston
Thu Jul 04, 2019 6:56 pm
Forum: Troubleshooting
Topic: RPI.GPIO and Pi4 issue ?
Replies: 20
Views: 4196

Re: RPI.GPIO and Pi4 issue ?

I'm looking at a fix being available on Sunday.
by croston
Tue Jul 02, 2019 8:25 am
Forum: Troubleshooting
Topic: RPI.GPIO and Pi4 issue ?
Replies: 20
Views: 4196

Re: RPI.GPIO and Pi4 issue ?

I am the maintainer and am working on this.
by croston
Wed Jun 26, 2019 9:44 pm
Forum: Troubleshooting
Topic: Got the latest Raspbian light image, pip is not installed
Replies: 2
Views: 1108

Re: Got the latest Raspbian light image, pip is not installed

That is the download url you get when you search for pip on PyPi. ( https://pypi.org/project/pip/ )
In other words, it is safe.

You can probably 'apt install' it too - I'm not at a computer at the moment to check the command though.
by croston
Tue Jun 25, 2019 7:13 am
Forum: Raspberry Pi OS
Topic: Raspbian Bittorrent tracker
Replies: 7
Views: 1028

Re: Raspbian Bittorrent tracker

I had the same yesterday. The checksums match up to the raspberrypi.org downloads page so I'm not too concerned.
by croston
Thu May 30, 2019 9:18 am
Forum: Troubleshooting
Topic: No access to dev/mem
Replies: 9
Views: 1236

Re: No access to dev/mem

You shouldn't need root privileges with an up to date version of Raspbian and RPi.GPIO. You have still not answered my questions about the versions of things a few posts earlier. Without this information, we can only guess as to what is going wrong and what the solution is.
by croston
Wed May 29, 2019 3:02 pm
Forum: Troubleshooting
Topic: No access to dev/mem
Replies: 9
Views: 1236

Re: No access to dev/mem

* What OS / Distro are you using?
* What username is your Python program running under?
* What version of RPi.GPIO are you using?
by croston
Fri May 24, 2019 9:31 am
Forum: Beginners
Topic: No module named flask after installing flask
Replies: 14
Views: 6371

Re: No module named flask after installing flask

By using 'sudo' on the pip install command, you have installed Flask globally on your pi, not in your virtual environment. Just install it in your venv by not using sudo.
by croston
Thu Apr 18, 2019 9:31 pm
Forum: General programming discussion
Topic: Which is the best way to start working on a c project?
Replies: 2
Views: 946

Re: Which is the best way to start working on a c project?

You could always contribute documentation to get started. Open source projects are more than just code.
by croston
Sat Apr 06, 2019 1:47 pm
Forum: Python
Topic: Unable to install pyzmq and RPi.GPIO from requirements.txt
Replies: 3
Views: 914

Re: Unable to install pyzmq and RPi.GPIO from requirements.txt

The latest version of RPi.GPIO is 0.6.5. The version you are trying to install is 0.5.11, which is four years old. This is not your immediate problem however but it shows just how out of date the project instructions are. Things to try: 1) sudo apt install python3-dev 2) Change requirements.txt to r...
by croston
Fri Apr 05, 2019 6:51 pm
Forum: Troubleshooting
Topic: GUI opening on the server instead of on the client side...
Replies: 14
Views: 1021

Re: GUI opening on the server instead of on the client side...

If memory serves me correctly, there is a X11Forwarding flag in /etc/ssh/sshd_config on your Ubuntu box that might need setting to 'yes'.
Restart your ssh server for it to pick up config changes.
by croston
Sun Mar 31, 2019 1:46 pm
Forum: Python
Topic: How to install RPi module for python 3.6
Replies: 4
Views: 2434

Re: How to install RPi module for python 3.6

Try:
sudo pip3.6 install RPi.GPIO
by croston
Sun Mar 17, 2019 7:34 pm
Forum: Python
Topic: how to write the sensor data to a .csv file
Replies: 1
Views: 1713

Re: how to write the sensor data to a .csv file

You probably want to take a look at Python's csv module:
https://docs.python.org/3/library/csv.html
by croston
Wed Jan 09, 2019 2:33 pm
Forum: Troubleshooting
Topic: Upgrade Python from 3.5.3 to latest version
Replies: 6
Views: 1860

Re: Upgrade Python from 3.5.3 to latest version

Sorry - I forgot to add:

Code: Select all

sudo ldconfig
Run that on it's own at a shell prompt and it should work.
by croston
Tue Jan 08, 2019 8:13 pm
Forum: Troubleshooting
Topic: Upgrade Python from 3.5.3 to latest version
Replies: 6
Views: 1860

Re: Upgrade Python from 3.5.3 to latest version

You could build it from source. I have blogged about it here:
https://www.wyre-it.co.uk/blog/latestpython/
by croston
Sun Nov 18, 2018 8:45 pm
Forum: General discussion
Topic: Ban from Raspberry Pi forums. [Self-imposed.]
Replies: 33
Views: 3573

Re: Ban from Raspberry Pi forums. [Self-imposed.]

Bear in mind that the purpose of the RPi is for education i.e.teaching children. There will be children reading this forum so comments are (hopefully) moderated with this in mind. DL clearly got it wrong on this basis with his comments and the moderators had to take appropriate action. I hope he'll ...
by croston
Wed Nov 07, 2018 6:31 pm
Forum: General discussion
Topic: How to make interesting projects with the Raspberry pi 3 using the Ada language?
Replies: 7
Views: 1094

Re: How to make interesting projects with the Raspberry pi 3 using the Ada language?

If you use 'gnat' (the Ada compiler) then controlling GPIO is as simple as writing to /sys/class/gpio/... using standard file i/o in Ada.

Go to advanced search