Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: /home/pi/.local/bin is not on PATH
Post: RE: /home/pi/.local/bin is not on PATH

(Feb-07-2021, 10:09 PM)Gribouillis Wrote: Add it to $PATH, for example in the ~/.bashrc file, use Output:export PATH="$HOME/.local/bin:$PATH"$PATH is not related to Python. It is the list of...
hcccs General Coding Help 3 12,607 Feb-08-2021, 09:20 PM
    Thread: /home/pi/.local/bin is not on PATH
Post: /home/pi/.local/bin is not on PATH

I installed w1thermsensor and it says that library /home/pi/.local/bin is not on PATH and I should consider adding it. Should I add it to $PATH or should I call sys.path.extend(['/home/pi/.local/b...
hcccs General Coding Help 3 12,607 Feb-07-2021, 09:51 PM
    Thread: Wiring DHT11 to Raspberry pi
Post: RE: Wiring DHT11 to Raspberry pi

(Feb-05-2021, 11:07 PM)Larz60+ Wrote: using the pinout diagram here: https://pi4j.com/1.2/pins/model-2b-rev1.html diagram shows pin7 as GPIO 7, not GPIO 4 It's difficult to know what information you...
hcccs General Coding Help 3 4,117 Feb-06-2021, 08:42 PM
    Thread: Wiring DHT11 to Raspberry pi
Post: Wiring DHT11 to Raspberry pi

I'm struggling with this simple setup with DHT11. I have wired in the 3-wire DHT11 sensor like this on my RP 2 model B version 1: Vcc > pin 2 (5V) Gnd > pin 9 (GND) Data > pin 7 (GPIO 4) and ...
hcccs General Coding Help 3 4,117 Feb-05-2021, 10:02 PM
    Thread: 'int' object is not callable
Post: RE: 'int' object is not callable

I installed Adafruit_CircuitPython_DHT successfully. If I go into Synaptic Package Manager I can't find it there. Why can't I find it in there? Where do I see software which is deprecated? The code g...
hcccs General Coding Help 5 4,224 Feb-04-2021, 07:27 PM
    Thread: 'int' object is not callable
Post: 'int' object is not callable

When testing an example Python program I get 'int' object is not callable import time import board import Adafruit_DHT # Initial the dht device, with data pin connected to: # dhtDevice = adafruit_...
hcccs General Coding Help 5 4,224 Feb-03-2021, 07:39 PM
    Thread: SMBUS 'no such file or directory'
Post: RE: SMBUS 'no such file or directory'

(Jan-31-2021, 04:19 PM)Gribouillis Wrote: Try to install smbus Output:sudo apt-get install python3-smbusOr perhaps install it from pypi Output:python3.7 -m pip install smbus It's already installed. ...
hcccs General Coding Help 2 6,016 Jan-31-2021, 04:47 PM
    Thread: SMBUS 'no such file or directory'
Post: SMBUS 'no such file or directory'

Running this little example import I2C_LCD_driver from time import * mylcd = I2C_LCD_drive.lcd() mylcd.lcd_display_string("Hello Python!", 1)I get this error in I2C_LCD_driver.py taken from https:...
hcccs General Coding Help 2 6,016 Jan-31-2021, 01:25 PM
    Thread: Add file to sys.path permanently
Post: RE: Add file to sys.path permanently

(Jan-31-2021, 11:10 AM)Gribouillis Wrote: I think you can create the directory by yourself if they don't exist. I did and removed the contents of PYTHONPATH and reloading the sys.path contains my li...
hcccs General Coding Help 5 8,414 Jan-31-2021, 11:26 AM
    Thread: Add file to sys.path permanently
Post: RE: Add file to sys.path permanently

(Jan-31-2021, 10:55 AM)Gribouillis Wrote: DO NOT USE PYTHONPATH. Instead do this: Find the per user site-packages directory. For this, start python and run >>> import site >>> site...
hcccs General Coding Help 5 8,414 Jan-31-2021, 11:07 AM
    Thread: Add file to sys.path permanently
Post: Add file to sys.path permanently

I'm running Python 3.7.3 and trying to add a library to sys.path. I can add it but it doesn't stick after next reload. I edited ~/.bashrc with the following: PYTHONPATH="${PYTHONPATH}:/home/pi/Cod...
hcccs General Coding Help 5 8,414 Jan-30-2021, 08:18 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020