How to make a depen...
 
Notifications
Clear all

[Solved] How to make a dependency update "take"?  

  RSS

aka
 aka
(@aka)
Active Member
Joined: 2 weeks ago
Posts: 6
September 8, 2020 5:44 pm  

Hi, I'm sorry if this is a basic question, but I've looked in the manual, wiki, and forums without finding a clear answer...

 

I'm trying to create a custom input module for the SGP30. I'm able to upload the module to the "Custom Input" web UI, and when I select it from the "Setup -> Data -> Add Input" web dialog, I'm prompted to resolve the unmet dependencies.

 

The issue I'm encountering is that after successfully (according to the logs) installing the packages, when I click "Return to Device List," the page hangs forever; when I leave the page by another means and then try again to add the SGP30 sensor to the Inputs, I see the same "you have unmet dependencies" error message.

 

So it seems I'm stuck in a loop. I don't think I can attach the module code I wrote to this post, but please let me know if seeing that would be helpful. Here's the "dependencies" section of that module's code:

 

 'dependencies_module': [
('pip-pypi', 'adafruit-circuitpython-sgp30', 'adafruit-circuitpython-sgp30')
],

 

...and here is the dependency logs that I think are saying the install was successful:

 

[2020-09-08 17:15:50] Dependency installation beginning. Installing: adafruit-circuitpython-sgp30

[2020-09-08 17:15:51] 
[2020-09-08 17:15:51] #### Installing/updating adafruit-circuitpython-sgp30 (pip-pypi)
[2020-09-08 17:15:55] Looking in indexes:  https://pypi.org/simple,  https://www.piwheels.org/simple
[2020-09-08 17:15:57] Requirement already up-to-date: adafruit-circuitpython-sgp30 in ./env/lib/python3.7/site-packages (2.3.1)
[2020-09-08 17:15:57] Requirement already satisfied, skipping upgrade: Adafruit-Blinka in ./env/lib/python3.7/site-packages (from adafruit-circuitpython-sgp30) (5.3.4)
[2020-09-08 17:15:57] Requirement already satisfied, skipping upgrade: adafruit-circuitpython-busdevice in ./env/lib/python3.7/site-packages (from adafruit-circuitpython-sgp30) (5.0.1)
[2020-09-08 17:15:57] Requirement already satisfied, skipping upgrade: rpi-ws281x>=4.0.0 in ./env/lib/python3.7/site-packages (from Adafruit-Blinka->adafruit-circuitpython-sgp30) (4.2.4)
[2020-09-08 17:15:57] Requirement already satisfied, skipping upgrade: pyftdi>=0.40.0 in ./env/lib/python3.7/site-packages (from Adafruit-Blinka->adafruit-circuitpython-sgp30) (0.51.2)
[2020-09-08 17:15:57] Requirement already satisfied, skipping upgrade: sysv-ipc in ./env/lib/python3.7/site-packages (from Adafruit-Blinka->adafruit-circuitpython-sgp30) (1.0.1)
[2020-09-08 17:15:57] Requirement already satisfied, skipping upgrade: Adafruit-PureIO>=1.1.5 in ./env/lib/python3.7/site-packages (from Adafruit-Blinka->adafruit-circuitpython-sgp30) (1.1.5)
[2020-09-08 17:15:57] Requirement already satisfied, skipping upgrade: RPi.GPIO in /usr/lib/python3/dist-packages (from Adafruit-Blinka->adafruit-circuitpython-sgp30) (0.7.0)
[2020-09-08 17:15:57] Requirement already satisfied, skipping upgrade: Adafruit-PlatformDetect>=2.15.1 in ./env/lib/python3.7/site-packages (from Adafruit-Blinka->adafruit-circuitpython-sgp30) (2.16)
[2020-09-08 17:15:57] Requirement already satisfied, skipping upgrade: pyserial>=3.0 in /usr/lib/python3/dist-packages (from pyftdi>=0.40.0->Adafruit-Blinka->adafruit-circuitpython-sgp30) (3.4)
[2020-09-08 17:15:57] Requirement already satisfied, skipping upgrade: pyusb>=1.0.0 in ./env/lib/python3.7/site-packages (from pyftdi>=0.40.0->Adafruit-Blinka->adafruit-circuitpython-sgp30) (1.0.2)

[2020-09-08 17:16:04] End install of adafruit-circuitpython-sgp30

[2020-09-08 17:16:04] 
[2020-09-08 17:16:04] #### Setting permissions

[2020-09-08 17:16:07] #### All Dependencies have been installed.


...I've tried the "Restart Frontend", "Restart Backend", and "Restart System" options as well, but nothing seems to make `adafruit-circuitpython-sgp30` install properly...

Thank you for any help you can provide!

AKA

Quote
Kyle Gabriel
(@kylegabriel)
Member Admin
Joined: 6 years ago
Posts: 302
September 8, 2020 7:12 pm  

The second string of the tuple should be "adafruit_sgp30", since this is the module name that's imported. It's common for the name used to install the module from pypi to be different from the module name used to import. This is why there's a distinction in the dependency tuple. Some module names are the same, which is probably how you came across using this dependency format with the same names.

Mycodo Developer


aka liked
ReplyQuote
aka
 aka
(@aka)
Active Member
Joined: 2 weeks ago
Posts: 6
September 8, 2020 7:46 pm  

@kylegabriel - thanks, this worked exactly as described. What great software, hope I will be able to contribute! Is there a central place to share input modules?

 

Best,

 

AKA


ReplyQuote