kizniche / Mycodo

An environmental monitoring and regulation system
http://kylegabriel.com/projects/
GNU General Public License v3.0
2.89k stars 486 forks source link

Deprecation preventing upgrade: "DeprecationWarning: pkg_resources is deprecated" #1333

Open kizniche opened 10 months ago

kizniche commented 10 months ago

Error during upgrade:

/home/user/Mycodo/mycodo/utils/github_release_info.py:10: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html from pkg_resources import parse_version
#### ERROR ####
There was an error detected during the upgrade. Please review the log at /var/log/mycodo/mycodoupgrade.log

To fix:

  1. Manually apply the changes in commit https://github.com/kizniche/Mycodo/commit/3d87b7a8fd8796983ab0e009c17924881d490bae
  2. Run the post upgrade script: sudo ~/Mycodo/mycodo/scripts/upgrade_post.sh
  3. Upgrade through the web interface.