NOTICE: This forum has been archived (i.e. registration and posting is disabled).

Please go to the new forum at https://forum.kylegabriel.com

DS18B20 sensors dat...
 
Notifications
Clear all

DS18B20 sensors data not appearing


rusty
(@rusty)
New Member
Joined: 7 months ago
Posts: 3
Topic starter  

Hello, Kyle!

I do have two DS18B20 connected through 1-wire, I can see data coming from of them on SSH ls -l /sys/bus/w1/devices/ and they're registered inside mycodo, addresses are visible. However data isn't appearing in dashboard, any clue why is that?

 

 

 


Quote
Kyle Gabriel
(@kylegabriel)
Member Admin
Joined: 7 years ago
Posts: 612
 

Which DS18B20 Input are you using?

Mycodo Developer


ReplyQuote
mrdieppa
(@mrdieppa)
Active Member
Joined: 7 months ago
Posts: 13
 

@kylegabriel

 

I'm looking into the issue now. I also have a DS18b20 and after upgrading to 8.9.1, it stopped working. For some reason, it's having an issue finding 'Sensor' in the w1thermsensor package. 

I created a custom DS18b20 sensor in 8.8.8 when it was bugged. I'll figure this out...

Phil Dieppa


ReplyQuote
mrdieppa
(@mrdieppa)
Active Member
Joined: 7 months ago
Posts: 13
 

Ok - I figured out my issue. Somehow... there was an old version installed (v 1.0.5) that didn't support Sensor classes. So, I uninstalled w1thermsensor globally ( I used a global directory to test the sensor out of the box, versus using Mycodo to verify if the sensor was dead on arrival). After uninstalling the w1thermsensor, I added a custom DS18B20 (my own dev one, very similar to what you already have...). Added the new input, then it found that I uninstalled the old 1.0.5 version, and Mycodo proceeded to install 2.0.0. It found the DS18B20 sensor, I selected it, activated, and now it's working. 

pip uninstall w1thermsensor

 

Phil Dieppa


ReplyQuote
Kyle Gabriel
(@kylegabriel)
Member Admin
Joined: 7 years ago
Posts: 612
 

That's strange, because pip dependencies should be upgraded during a Mycodo update (see update_dependencies.py). Can you check your upgrade log to see if there are any errors after the line "#### Checking for updates to dependencies"? There is the ability to set a version, so I may change the dependency lines in the Inputs to:

'dependencies_module': [
('pip-pypi', 'w1thermsensor', 'w1thermsensor==2.0.0'),
],

Mycodo Developer


ReplyQuote
mrdieppa
(@mrdieppa)
Active Member
Joined: 7 months ago
Posts: 13
 

My guess is that it's possibly something I may have did during sensor testing. I used the tutorial found here and everything worked. Who knows... It seems to be working fine with version 2.0.0 though. So, that could be a good fix if you explicitly defined the version.

Version 8.8.8

[2021-02-14 0315] Dependency installation beginning. Installing: w1thermsensor

[2021-02-14 0315]
[2021-02-14 0315] #### Installing/updating w1thermsensor (pip-pypi)
[2021-02-14 0317] Collecting w1thermsensor
[2021-02-14 0317]   Downloading w1thermsensor-2.0.0-py2.py3-none-any.whl (18 kB)
[2021-02-14 0317] Requirement already satisfied: click in ./env/lib/python3.7/site-packages (from w1thermsensor) (7.1.2)
[2021-02-14 0319] Installing collected packages: w1thermsensor
[2021-02-14 0319] Successfully installed w1thermsensor-2.0.0

[2021-02-14 0319] End install of w1thermsensor

 

Post 8.9.1 installation

 

[2021-03-15 0154] Dependency installation beginning. Installing: w1thermsensor

[2021-03-15 0154]
[2021-03-15 0154] #### Installing/updating w1thermsensor (pip-pypi)
[2021-03-15 0156] Looking in indexes:  https://pypi.org/simple,  https://www.piwheels.org/simple
[2021-03-15 0157] Collecting w1thermsensor
[2021-03-15 0157]   Downloading  https://www.piwheels.org/simple/w1thermsensor/w1thermsensor-2.0.0-py2.py3-none-any.whl  (18 kB)
[2021-03-15 0157] Requirement already satisfied: click in /usr/lib/python3/dist-packages (from w1thermsensor) (7.0)
[2021-03-15 0158] Installing collected packages: w1thermsensor
[2021-03-15 0158] Successfully installed w1thermsensor-2.0.0

[2021-03-15 0159] End install of w1thermsensor

Phil Dieppa


ReplyQuote
dookaloosy
(@dookaloosy)
Active Member
Joined: 9 months ago
Posts: 9
 

Thanks for this thread, it really helped point the way to a resolution. I was running into an issue where a previously created DS18B20 sensor (in 8.8.8) is no longer reading anything except 0 (on 8.9.2). Here's what I did to fix it.

 

Looking at the daemon log:

2021-04-06 1452,033 - ERROR - mycodo.controllers.controller_input_3adb7f12 - initialize_variables() Exception: cannot import name 'Sensor' from 'w1thermsensor' (/var/mycodo-root/env/lib/python3.7/site-packages/w1thermsensor/__init__.py)
Traceback (most recent call last):
  File "/var/mycodo-root/mycodo/controllers/base_controller.py", line 79, in run
    self.initialize_variables()
  File "/var/mycodo-root/mycodo/controllers/controller_input.py", line 320, in initialize_variables
    self.measure_input = input_loaded.InputModule(self.input_dev)
  File "/home/pi/Mycodo/mycodo/inputs/ds18b20.py", line 68, in __init__
    self.initialize_input()
  File "/home/pi/Mycodo/mycodo/inputs/ds18b20.py", line 72, in initialize_input
    from w1thermsensor import Sensor
ImportError: cannot import name 'Sensor' from 'w1thermsensor' (/var/mycodo-root/env/lib/python3.7/site-packages/w1thermsensor/__init__.py)

 

I then looked at the upgrade log, which shows that during the upgrade from 8.8.8 -> 8.9.2, there was a problem resolving the version of pyusb to install. I believe the error for SCD30 is due to having a custom input called "SCD30" already set up in the system for 8.8.8, and that custom input was incorporated into the mainline code as a natively-supported input starting from 8.9.x:

[2021-03-17 1032] #### Checking for updates to dependencies
[2021-03-17 1040] 2021-03-17 1040,200 Error: Cannot add input modules because it does not have a unique name: SCD30
[2021-03-17 1040] 2021-03-17 1040,919 Error: Cannot add input modules because it does not have a unique name: SCD30
[2021-03-17 1041] 2021-03-17 1041,253 Error: Cannot add input modules because it does not have a unique name: SCD30
[2021-03-17 1041] 2021-03-17 1041,758 Error: Cannot add input modules because it does not have a unique name: SCD30
[2021-03-17 1042] 2021-03-17 1042,053 Error: Cannot add input modules because it does not have a unique name: SCD30
[2021-03-17 1042] 2021-03-17 1042,404 Error: Cannot add input modules because it does not have a unique name: SCD30
[2021-03-17 1042] 2021-03-17 1042,720 Error: Cannot add input modules because it does not have a unique name: SCD30
[2021-03-17 1043] 2021-03-17 1043,033 Error: Cannot add input modules because it does not have a unique name: SCD30
[2021-03-17 1043] 2021-03-17 1043,332 Error: Cannot add input modules because it does not have a unique name: SCD30
[2021-03-17 1043] 2021-03-17 1043,642 Error: Cannot add input modules because it does not have a unique name: SCD30
[2021-03-17 1043] 2021-03-17 1043,953 Error: Cannot add input modules because it does not have a unique name: SCD30
[2021-03-17 1001] ERROR: Cannot install pyusb==1.0.2 and pyusb==1.1.1 because these package versions have conflicting dependencies.
[2021-03-17 1001] ERROR: ResolutionImpossible: for help visit  https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies 
[2021-03-17 1002] Reading package lists...
[2021-03-17 1002] Building dependency tree...
[2021-03-17 1002] Reading state information...
[2021-03-17 1002] python3-dev is already the newest version (3.7.3-1).
[2021-03-17 1002] zlib1g-dev is already the newest version (1:1.2.11.dfsg-1).
[2021-03-17 1002] bluez is already the newest version (5.50-1.2~deb10u1+rpt2).
[2021-03-17 1002] pi-bluetooth is already the newest version (0.1.15).
[2021-03-17 1002] 0 upgraded, 0 newly installed, 0 to remove and 63 not upgraded.
[2021-03-17 1002] 
[2021-03-17 1002] Requirement already satisfied: pylibftdi in ./pi/Mycodo/env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements-generated.txt (line 1)) (0.19.0)
[2021-03-17 1002] Collecting w1thermsensor==2.0.0
[2021-03-17 1002]   Using cached w1thermsensor-2.0.0-py2.py3-none-any.whl (18 kB)
[2021-03-17 1002] Requirement already satisfied: requests in ./pi/Mycodo/env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements-generated.txt (line 3)) (2.25.1)
[2021-03-17 1002] Requirement already satisfied: smbus2 in ./pi/Mycodo/env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements-generated.txt (line 4)) (0.3.0)
[2021-03-17 1002] Collecting smbus2
[2021-03-17 1002]   Using cached smbus2-0.4.1-py2.py3-none-any.whl (11 kB)
[2021-03-17 1002] Requirement already satisfied: RPi.GPIO in ./pi/Mycodo/env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements-generated.txt (line 5)) (0.7.0)
[2021-03-17 1002] Requirement already satisfied: Adafruit_GPIO in ./pi/Mycodo/env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements-generated.txt (line 6)) (1.0.3)
[2021-03-17 1002] Requirement already satisfied: Adafruit_SHT31 in ./pi/Mycodo/env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements-generated.txt (line 7)) (1.0.2)
[2021-03-17 1002] Collecting pyusb==1.1.1
[2021-03-17 1002]   Using cached pyusb-1.1.1-py3-none-any.whl (58 kB)
[2021-03-17 1002] Requirement already satisfied: Adafruit_Extended_Bus in ./pi/Mycodo/env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements-generated.txt (line 9)) (1.0.1)
[2021-03-17 1002] Requirement already satisfied: Adafruit_CircuitPython_ADS1x15 in ./pi/Mycodo/env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements-generated.txt (line 10)) (2.2.4)
[2021-03-17 1002] Collecting Adafruit_CircuitPython_ADS1x15
[2021-03-17 1002]   Using cached adafruit-circuitpython-ads1x15-2.2.8.tar.gz (30 kB)
[2021-03-17 1002] Requirement already satisfied: scd30_i2c in ./pi/Mycodo/env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements-generated.txt (line 11)) (0.0.6)
[2021-03-17 1002] Requirement already satisfied: Adafruit_PureIO in ./pi/Mycodo/env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements-generated.txt (line 12)) (1.1.8)
[2021-03-17 1002] Requirement already satisfied: adafruit-circuitPython-scd30 in ./pi/Mycodo/env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements-generated.txt (line 13)) (1.0.2)
[2021-03-17 1002] Collecting adafruit-circuitPython-scd30
[2021-03-17 1002]   Using cached adafruit-circuitpython-scd30-2.0.3.tar.gz (28 kB)
[2021-03-17 1002]   Installing build dependencies: started
[2021-03-17 1002]   Installing build dependencies: finished with status 'done'
[2021-03-17 1002]   Getting requirements to build wheel: started
[2021-03-17 1002]   Getting requirements to build wheel: finished with status 'done'
[2021-03-17 1002]   Installing backend dependencies: started
[2021-03-17 1002]   Installing backend dependencies: finished with status 'done'
[2021-03-17 1002]     Preparing wheel metadata: started
[2021-03-17 1002]     Preparing wheel metadata: finished with status 'done'
[2021-03-17 1002] Requirement already satisfied: Adafruit_ADS1x15 in ./pi/Mycodo/env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements-generated.txt (line 14)) (1.0.2)
[2021-03-17 1002] 
[2021-03-17 1002] The conflict is caused by:
[2021-03-17 1002]     The user requested pyusb==1.1.1
[2021-03-17 1002]     The user requested pyusb==1.0.2
[2021-03-17 1002] 
[2021-03-17 1002] To fix this you could try to:
[2021-03-17 1002] 1. loosen the range of package versions you've specified
[2021-03-17 1002] 2. remove package versions to allow pip attempt to solve the dependency conflict
[2021-03-17 1002] 
[2021-03-17 1002] 
[2021-03-17 1003] 
[2021-03-17 1003] #### Disabling installed mycodo startup script
[2021-03-17 1003] Removed /etc/systemd/system/mycodo.service.
[2021-03-17 1003] Removed /etc/systemd/system/multi-user.target.wants/mycodo.service.
[2021-03-17 1004] #### Enabling current mycodo startup script
[2021-03-17 1004] Created symlink /etc/systemd/system/mycodo.service → /home/pi/Mycodo/install/mycodo.service.
[2021-03-17 1004] Created symlink /etc/systemd/system/multi-user.target.wants/mycodo.service → /home/pi/Mycodo/install/mycodo.service.
[2021-03-17 1006] 
[2021-03-17 1006] #### Compiling Translations
[2021-03-17 1009] compiling catalog mycodo_flask/translations/fr/LC_MESSAGES/messages.po to mycodo_flask/translations/fr/LC_MESSAGES/messages.mo
[2021-03-17 1010] compiling catalog mycodo_flask/translations/nl/LC_MESSAGES/messages.po to mycodo_flask/translations/nl/LC_MESSAGES/messages.mo
[2021-03-17 1011] compiling catalog mycodo_flask/translations/it/LC_MESSAGES/messages.po to mycodo_flask/translations/it/LC_MESSAGES/messages.mo
[2021-03-17 1013] compiling catalog mycodo_flask/translations/sr/LC_MESSAGES/messages.po to mycodo_flask/translations/sr/LC_MESSAGES/messages.mo
[2021-03-17 1014] compiling catalog mycodo_flask/translations/pl/LC_MESSAGES/messages.po to mycodo_flask/translations/pl/LC_MESSAGES/messages.mo
[2021-03-17 1015] compiling catalog mycodo_flask/translations/sv/LC_MESSAGES/messages.po to mycodo_flask/translations/sv/LC_MESSAGES/messages.mo
[2021-03-17 1016] compiling catalog mycodo_flask/translations/pt/LC_MESSAGES/messages.po to mycodo_flask/translations/pt/LC_MESSAGES/messages.mo
[2021-03-17 1018] compiling catalog mycodo_flask/translations/zh/LC_MESSAGES/messages.po to mycodo_flask/translations/zh/LC_MESSAGES/messages.mo
[2021-03-17 1019] compiling catalog mycodo_flask/translations/de/LC_MESSAGES/messages.po to mycodo_flask/translations/de/LC_MESSAGES/messages.mo
[2021-03-17 1020] compiling catalog mycodo_flask/translations/es/LC_MESSAGES/messages.po to mycodo_flask/translations/es/LC_MESSAGES/messages.mo
[2021-03-17 1021] compiling catalog mycodo_flask/translations/nb/LC_MESSAGES/messages.po to mycodo_flask/translations/nb/LC_MESSAGES/messages.mo
[2021-03-17 1022] compiling catalog mycodo_flask/translations/ru/LC_MESSAGES/messages.po to mycodo_flask/translations/ru/LC_MESSAGES/messages.mo
[2021-03-17 1023] 
[2021-03-17 1023] #### Generating widget HTML files
[2021-03-17 1029] 
[2021-03-17 1029] #### Updating Mycodo restart monitor crontab entry
[2021-03-17 1029] Removing crontab entry ...
[2021-03-17 1030] Appending to crontab:
[2021-03-17 1030] -----------------------------------------------
[2021-03-17 1030] @reboot /var/mycodo-root/env/bin/python /var/mycodo-root/mycodo/scripts/restart_daemon.py --continuouscheck &
[2021-03-17 1030] -----------------------------------------------
[2021-03-17 1030] To remove previously added crontab entry, run: /home/pi/Mycodo/install/crontab.sh restart_daemon --remove
[2021-03-17 1030] 
[2021-03-17 1030] 
[2021-03-17 1030] #### Setting permissions
[2021-03-17 1032] 
[2021-03-17 1032] #### Restarting the Mycodo daemon
[2021-03-17 1043] Mycodo previously shut down properly
[2021-03-17 1058] 
[2021-03-17 1058] #### Restarting nginx
[2021-03-17 1003] #### Reloading mycodoflask
[2021-03-17 1004] 
[2021-03-17 1004] #### Connecting to  http://localhost  (creates Mycodo database if it doesn't exist)
[2021-03-17 1017] #### Successfully connected to  http://localhost 
[2021-03-17 1017] 
[2021-03-17 1017] Stage 3 execution time summary:
[2021-03-17 1017] initialize:                   10 s
[2021-03-17 1017] update-swap-size:             0 s
[2021-03-17 1017] setup-virtualenv:             0 s
[2021-03-17 1017] update-apt:                   32 s
[2021-03-17 1017] update-packages:              21 s
[2021-03-17 1017] web-server-update:            7 s
[2021-03-17 1017] update-logrotate:             0 s
[2021-03-17 1017] update-pip3:                  13 s
[2021-03-17 1017] update-pip3-packages:         141 s
[2021-03-17 1017] update-dependencies:          91 s
[2021-03-17 1017] update-influxdb:              1 s
[2021-03-17 1017] update-alembic:               4 s
[2021-03-17 1017] update-alembic-post:          7 s
[2021-03-17 1017] update-mycodo-startup-script: 3 s
[2021-03-17 1017] compile-translations:         17 s
[2021-03-17 1017] generate-widget-html:         6 s
[2021-03-17 1017] update-cron:                  1 s
[2021-03-17 1017] update-permissions:           2 s
[2021-03-17 1017] restart-daemon:               26 s
[2021-03-17 1017] web-server_reload:            6 s
[2021-03-17 1017] web-server-connect:           13 s
[2021-03-17 1017] 
[2021-03-17 1017] #### Completed Upgrade Stage 3 of 3 in 401 seconds ####
[2021-03-17 1017] 
[2021-03-17 1017] Upgrade completed. Review the log to ensure no critical errors were encountered

 

 

I then proceeded to delete my custom input for SCD30 and transitioned to the native driver, and just in case, I also removed the DS18B20 input and re-added it, but still no dice. Finally what did the trick is to log in via Putty and perform:

sudo mycodo-commands update-dependencies

 

 

This leads to the following output, where you can see that w1thermsensor-2.0.0 has been successfully installed:

#### Checking for updates to dependencies
Reading package lists...
Building dependency tree...
Reading state information...
python3-dev is already the newest version (3.7.3-1).
zlib1g-dev is already the newest version (1:1.2.11.dfsg-1).
bluez is already the newest version (5.50-1.2~deb10u1+rpt2).
pi-bluetooth is already the newest version (0.1.15).
0 upgraded, 0 newly installed, 0 to remove and 63 not upgraded.

Requirement already satisfied: pylibftdi in ./pi/Mycodo/env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements-generated.txt (line 1)) (0.19.0)
Collecting w1thermsensor==2.0.0
  Using cached w1thermsensor-2.0.0-py2.py3-none-any.whl (18 kB)
Requirement already satisfied: requests in ./pi/Mycodo/env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements-generated.txt (line 3)) (2.25.1)
Requirement already satisfied: smbus2 in ./pi/Mycodo/env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements-generated.txt (line 4)) (0.3.0)
Collecting smbus2
  Using cached smbus2-0.4.1-py2.py3-none-any.whl (11 kB)
Requirement already satisfied: RPi.GPIO in ./pi/Mycodo/env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements-generated.txt (line 5)) (0.7.0)
Requirement already satisfied: Adafruit_GPIO in ./pi/Mycodo/env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements-generated.txt (line 6)) (1.0.3)
Requirement already satisfied: Adafruit_SHT31 in ./pi/Mycodo/env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements-generated.txt (line 7)) (1.0.2)
Collecting pyusb==1.1.1
  Using cached pyusb-1.1.1-py3-none-any.whl (58 kB)
Requirement already satisfied: Adafruit_Extended_Bus in ./pi/Mycodo/env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements-generated.txt (line 9)) (1.0.1)
Requirement already satisfied: Adafruit_CircuitPython_ADS1x15 in ./pi/Mycodo/env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements-generated.txt (line 10)) (2.2.4)
Collecting Adafruit_CircuitPython_ADS1x15
  Using cached adafruit-circuitpython-ads1x15-2.2.8.tar.gz (30 kB)
Requirement already satisfied: scd30_i2c in ./pi/Mycodo/env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements-generated.txt (line 11)) (0.0.6)
Requirement already satisfied: Adafruit_PureIO in ./pi/Mycodo/env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements-generated.txt (line 12)) (1.1.8)
Requirement already satisfied: adafruit-circuitPython-scd30 in ./pi/Mycodo/env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements-generated.txt (line 13)) (1.0.2)
Collecting adafruit-circuitPython-scd30
  Using cached adafruit-circuitpython-scd30-2.0.3.tar.gz (28 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Installing backend dependencies: started
  Installing backend dependencies: finished with status 'done'
    Preparing wheel metadata: started
    Preparing wheel metadata: finished with status 'done'
Requirement already satisfied: Adafruit_ADS1x15 in ./pi/Mycodo/env/lib/python3.7/site-packages (from -r /home/pi/Mycodo/install/requirements-generated.txt (line 14)) (1.0.2)
Requirement already satisfied: click in ./pi/Mycodo/env/lib/python3.7/site-packages (from w1thermsensor==2.0.0->-r /home/pi/Mycodo/install/requirements-generated.txt (line 2)) (7.1.2)
Requirement already satisfied: spidev in ./pi/Mycodo/env/lib/python3.7/site-packages (from Adafruit_GPIO->-r /home/pi/Mycodo/install/requirements-generated.txt (line 6)) (3.5)
Requirement already satisfied: Adafruit-Blinka in ./pi/Mycodo/env/lib/python3.7/site-packages (from Adafruit_CircuitPython_ADS1x15->-r /home/pi/Mycodo/install/requirements-generated.txt (line 10)) (5.9.1)
Requirement already satisfied: adafruit-circuitpython-busdevice in ./pi/Mycodo/env/lib/python3.7/site-packages (from Adafruit_CircuitPython_ADS1x15->-r /home/pi/Mycodo/install/requirements-generated.txt (line 10)) (5.0.1)
Requirement already satisfied: adafruit-circuitpython-register in ./pi/Mycodo/env/lib/python3.7/site-packages (from adafruit-circuitPython-scd30->-r /home/pi/Mycodo/install/requirements-generated.txt (line 13)) (1.9.1)
Requirement already satisfied: idna<3,>=2.5 in /usr/lib/python3/dist-packages (from requests->-r /home/pi/Mycodo/install/requirements-generated.txt (line 3)) (2.6)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests->-r /home/pi/Mycodo/install/requirements-generated.txt (line 3)) (2018.8.24)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3/dist-packages (from requests->-r /home/pi/Mycodo/install/requirements-generated.txt (line 3)) (1.24.1)
Requirement already satisfied: chardet<5,>=3.0.2 in /usr/lib/python3/dist-packages (from requests->-r /home/pi/Mycodo/install/requirements-generated.txt (line 3)) (3.0.4)
Requirement already satisfied: sysv-ipc in ./pi/Mycodo/env/lib/python3.7/site-packages (from Adafruit-Blinka->Adafruit_CircuitPython_ADS1x15->-r /home/pi/Mycodo/install/requirements-generated.txt (line 10)) (1.0.1)
Requirement already satisfied: rpi-ws281x>=4.0.0 in ./pi/Mycodo/env/lib/python3.7/site-packages (from Adafruit-Blinka->Adafruit_CircuitPython_ADS1x15->-r /home/pi/Mycodo/install/requirements-generated.txt (line 10)) (4.2.5)
Requirement already satisfied: pyftdi>=0.40.0 in ./pi/Mycodo/env/lib/python3.7/site-packages (from Adafruit-Blinka->Adafruit_CircuitPython_ADS1x15->-r /home/pi/Mycodo/install/requirements-generated.txt (line 10)) (0.52.0)
Requirement already satisfied: Adafruit-PlatformDetect>=2.18.1 in ./pi/Mycodo/env/lib/python3.7/site-packages (from Adafruit-Blinka->Adafruit_CircuitPython_ADS1x15->-r /home/pi/Mycodo/install/requirements-generated.txt (line 10)) (2.23.0)
Requirement already satisfied: pyserial>=3.0 in ./pi/Mycodo/env/lib/python3.7/site-packages (from pyftdi>=0.40.0->Adafruit-Blinka->Adafruit_CircuitPython_ADS1x15->-r /home/pi/Mycodo/install/requirements-generated.txt (line 10)) (3.5)
Building wheels for collected packages: Adafruit-CircuitPython-ADS1x15, adafruit-circuitPython-scd30
  Building wheel for Adafruit-CircuitPython-ADS1x15 (setup.py): started
  Building wheel for Adafruit-CircuitPython-ADS1x15 (setup.py): finished with status 'done'
  Created wheel for Adafruit-CircuitPython-ADS1x15: filename=adafruit_circuitpython_ads1x15-2.2.8-py3-none-any.whl size=8610 sha256=4eead66213b9d71de13b8bbfcc33d59f5549840c97c81fbc7bcc1f1ce24d9f56
  Stored in directory: /root/.cache/pip/wheels/1f/1b/36/7385a5a7b58e1bc17a966b080f2bb7128cf83702f4088b0cc3
  Building wheel for adafruit-circuitPython-scd30 (PEP 517): started
  Building wheel for adafruit-circuitPython-scd30 (PEP 517): finished with status 'done'
  Created wheel for adafruit-circuitPython-scd30: filename=adafruit_circuitpython_scd30-2.0.3-py3-none-any.whl size=6614 sha256=3f717dd30cae74a2e1ad2885aedaeb55c4ae0c69ff9305073f987ec06232cfab
  Stored in directory: /root/.cache/pip/wheels/a3/da/01/87a676641187a5b5bbfa8951b92a2683a0ec406febdd28968b
Successfully built Adafruit-CircuitPython-ADS1x15 adafruit-circuitPython-scd30
Installing collected packages: pyusb, w1thermsensor, adafruit-circuitPython-scd30, Adafruit-CircuitPython-ADS1x15
  Attempting uninstall: pyusb
    Found existing installation: pyusb 1.0.2
    Uninstalling pyusb-1.0.2:
      Successfully uninstalled pyusb-1.0.2
  Attempting uninstall: w1thermsensor
    Found existing installation: w1thermsensor 1.3.0
    Uninstalling w1thermsensor-1.3.0:
      Successfully uninstalled w1thermsensor-1.3.0
  Attempting uninstall: adafruit-circuitPython-scd30
    Found existing installation: adafruit-circuitpython-scd30 1.0.2
    Uninstalling adafruit-circuitpython-scd30-1.0.2:
      Successfully uninstalled adafruit-circuitpython-scd30-1.0.2
  Attempting uninstall: Adafruit-CircuitPython-ADS1x15
    Found existing installation: adafruit-circuitpython-ads1x15 2.2.4
    Uninstalling adafruit-circuitpython-ads1x15-2.2.4:
      Successfully uninstalled adafruit-circuitpython-ads1x15-2.2.4
Successfully installed Adafruit-CircuitPython-ADS1x15-2.2.8 adafruit-circuitPython-scd30-2.0.3 pyusb-1.1.1 w1thermsensor-2.0.0

 

 

I then restarted the system and the DS18B20 is working again.

 

 


ReplyQuote
Kyle Gabriel
(@kylegabriel)
Member Admin
Joined: 7 years ago
Posts: 612
 

Hmmm. update-dependencies should be executed during and upgrade and upgrade any outdated libraries (or pull them to whatever version is specified). Can you attach your upgrade log excerpt from the upgrade you mentioned? Please attach as a txt file. 

Mycodo Developer


ReplyQuote
dookaloosy
(@dookaloosy)
Active Member
Joined: 9 months ago
Posts: 9
 

Here you go. I recall that I upgraded in several steps: 8.8.8->8.9.0->8.9.2. Both of these upgrades are included in this log.


ReplyQuote
Kyle Gabriel
(@kylegabriel)
Member Admin
Joined: 7 years ago
Posts: 612
 

It looks like this halted the python library upgrade:

[2021-03-17 1002] The conflict is caused by:
[2021-03-17 1002]     The user requested pyusb==1.1.1
[2021-03-17 1002]     The user requested pyusb==1.0.2

Mycodo Developer


ReplyQuote
dookaloosy
(@dookaloosy)
Active Member
Joined: 9 months ago
Posts: 9
 

Exactly. I think my custom input for SCD30 was using a different pyusb version than the native input that was added in 8.9.x.

 

I suppose it would be nice to see such conflicts flagged as upgrade failures or warnings?


ReplyQuote
Kyle Gabriel
(@kylegabriel)
Member Admin
Joined: 7 years ago
Posts: 612
 
Posted by: @dookaloosy

I suppose it would be nice to see such conflicts flagged as upgrade failures or warnings?

I wouldn't really know how to do more than show the upgrade log, since the error is in it. There are so many things that can go wrong. The real issue is why pip would hold upgrading w1thermsensor when a package that has nothing to do with it had a conflict.

Mycodo Developer


ReplyQuote