Cloudbox / Cloudbox

Ansible-based solution for rapidly deploying a Docker containerized cloud media server.
https://cloudbox.works
GNU General Public License v3.0
2.35k stars 307 forks source link

Python Glances Dependencies Error #489

Closed jodiekurnia closed 1 year ago

jodiekurnia commented 1 year ago

Describe the bug

TASK [common : Install pip glances] *****************************************************************************************************
Saturday 28 January 2023  00:22:58 -0500 (0:00:00.369)       0:02:43.072 ******
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "pip install glances[action,browser,cloud,cpuinfo,docker,folders,gpu,graph,ip,raid,snmp,web]", "delta": "0:00:03.197730", "end": "2023-01-28 00:23:01.829096", "msg": "non-zero return code", "rc": 1, "start": "2023-01-28 00:22:58.631366", "stderr": "/usr/lib/python2.7/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.\n  from cryptography.utils import int_from_bytes\nDEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.\nWARNING: The directory '/home/feederbox/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.\n  WARNING: Glances 3.3.1.1 does not provide the extra 'cpuinfo'\n  WARNING: Glances 3.3.1.1 does not provide the extra 'gpu'\nERROR: Could not find a version that satisfies the requirement zeroconf==0.47.1; extra == \"browser\" (from glances[action,browser,cloud,cpuinfo,docker,folders,gpu,graph,ip,raid,snmp,web]) (from versions: 0.14, 0.15, 0.15.1, 0.16.0, 0.17.0, 0.17.1, 0.17.2, 0.17.3, 0.17.4, 0.17.5, 0.17.6, 0.17.7, 0.18.0, 0.19.0, 0.19.1, 0.20.0, 0.21.0, 0.21.1, 0.21.2, 0.21.3, 0.22.0, 0.23.0, 0.24.0, 0.24.1, 0.24.2, 0.24.3, 0.24.4, 0.24.5, 0.25.0, 0.25.1, 0.26.0, 0.26.1, 0.26.2, 0.26.3, 0.27.0, 0.27.1, 0.28.0, 0.28.1, 0.28.2, 0.28.3, 0.28.4, 0.28.5, 0.28.6, 0.28.7, 0.28.8, 0.29.0, 0.30.0, 0.31.0, 0.32.0, 0.32.1, 0.33.0, 0.33.1, 0.33.2, 0.33.3, 0.33.4, 0.34.0, 0.34.1, 0.34.2, 0.34.3, 0.35.0, 0.35.1, 0.36.0, 0.36.1, 0.36.2, 0.36.3, 0.36.4, 0.36.5, 0.36.6, 0.36.7, 0.36.8, 0.36.9, 0.36.11, 0.36.12, 0.36.13, 0.37.0, 0.38.0, 0.38.1, 0.38.3, 0.38.4)\nERROR: No matching distribution found for zeroconf==0.47.1; extra == \"browser\" (from glances[action,browser,cloud,cpuinfo,docker,folders,gpu,graph,ip,raid,snmp,web])", "stderr_lines": ["/usr/lib/python2.7/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.", "  from cryptography.utils import int_from_bytes", "DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.", "WARNING: The directory '/home/feederbox/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.", "  WARNING: Glances 3.3.1.1 does not provide the extra 'cpuinfo'", "  WARNING: Glances 3.3.1.1 does not provide the extra 'gpu'", "ERROR: Could not find a version that satisfies the requirement zeroconf==0.47.1; extra == \"browser\" (from glances[action,browser,cloud,cpuinfo,docker,folders,gpu,graph,ip,raid,snmp,web]) (from versions: 0.14, 0.15, 0.15.1, 0.16.0, 0.17.0, 0.17.1, 0.17.2, 0.17.3, 0.17.4, 0.17.5, 0.17.6, 0.17.7, 0.18.0, 0.19.0, 0.19.1, 0.20.0, 0.21.0, 0.21.1, 0.21.2, 0.21.3, 0.22.0, 0.23.0, 0.24.0, 0.24.1, 0.24.2, 0.24.3, 0.24.4, 0.24.5, 0.25.0, 0.25.1, 0.26.0, 0.26.1, 0.26.2, 0.26.3, 0.27.0, 0.27.1, 0.28.0, 0.28.1, 0.28.2, 0.28.3, 0.28.4, 0.28.5, 0.28.6, 0.28.7, 0.28.8, 0.29.0, 0.30.0, 0.31.0, 0.32.0, 0.32.1, 0.33.0, 0.33.1, 0.33.2, 0.33.3, 0.33.4, 0.34.0, 0.34.1, 0.34.2, 0.34.3, 0.35.0, 0.35.1, 0.36.0, 0.36.1, 0.36.2, 0.36.3, 0.36.4, 0.36.5, 0.36.6, 0.36.7, 0.36.8, 0.36.9, 0.36.11, 0.36.12, 0.36.13, 0.37.0, 0.38.0, 0.38.1, 0.38.3, 0.38.4)", "ERROR: No matching distribution found for zeroconf==0.47.1; extra == \"browser\" (from glances[action,browser,cloud,cpuinfo,docker,folders,gpu,graph,ip,raid,snmp,web])"], "stdout": "Collecting glances[action,browser,cloud,cpuinfo,docker,folders,gpu,graph,ip,raid,snmp,web]\n  Downloading Glances-3.3.1.1.tar.gz (6.2 MB)\n  Installing build dependencies: started\n  Installing build dependencies: finished with status 'done'\n  Getting requirements to build wheel: started\n  Getting requirements to build wheel: finished with status 'done'\n    Preparing wheel metadata: started\n    Preparing wheel metadata: finished with status 'done'\nCollecting future; python_version < \"3.0\"\n  Downloading future-0.18.3.tar.gz (840 kB)\nCollecting psutil>=5.6.7\n  Downloading psutil-5.9.4-cp27-cp27mu-manylinux2010_x86_64.whl (298 kB)\nCollecting ujson<3; python_version < \"3.0\"\n  Downloading ujson-2.0.3-cp27-cp27mu-manylinux1_x86_64.whl (172 kB)\nCollecting defusedxml\n  Downloading defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)\nCollecting packaging\n  Downloading packaging-20.9-py2.py3-none-any.whl (40 kB)\nCollecting chevron; extra == \"action\"\n  Downloading chevron-0.14.0.tar.gz (11 kB)", "stdout_lines": ["Collecting glances[action,browser,cloud,cpuinfo,docker,folders,gpu,graph,ip,raid,snmp,web]", "  Downloading Glances-3.3.1.1.tar.gz (6.2 MB)", "  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'", "    Preparing wheel metadata: started", "    Preparing wheel metadata: finished with status 'done'", "Collecting future; python_version < \"3.0\"", "  Downloading future-0.18.3.tar.gz (840 kB)", "Collecting psutil>=5.6.7", "  Downloading psutil-5.9.4-cp27-cp27mu-manylinux2010_x86_64.whl (298 kB)", "Collecting ujson<3; python_version < \"3.0\"", "  Downloading ujson-2.0.3-cp27-cp27mu-manylinux1_x86_64.whl (172 kB)", "Collecting defusedxml", "  Downloading defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)", "Collecting packaging", "  Downloading packaging-20.9-py2.py3-none-any.whl (40 kB)", "Collecting chevron; extra == \"action\"", "  Downloading chevron-0.14.0.tar.gz (11 kB)"]}

PLAY RECAP ******************************************************************************************************************************
localhost                  : ok=250  changed=53   unreachable=0    failed=1

To Reproduce Steps to reproduce the behavior: sudo ansible-playbook cloudbox.yml --tags feederbox

stravos97 commented 1 year ago

Any updates on this bug?

chazlarson commented 1 year ago

Development on Cloudbox has been basically non-existent for at least a year. You may want to consider migrating to Saltbox, which is a Cloudbox fork undergoing active development.

https://docs.saltbox.dev/

stravos97 commented 1 year ago

Thanks for the update @chazlarson. You can probably close the bug @jodiekurnia

chazlarson commented 1 year ago

This specific error is probably due to something in that dependency list dropping support for Python 2.7.