5G-Framework / volttron-tcc-docker-ecolong

Modified TCC docker for EcoLong
0 stars 0 forks source link

ERROR: Could not find a version that satisfies the requirement wheel==0.30 (from versions: none) #2

Closed aik7 closed 1 year ago

aik7 commented 1 year ago
 docker-compose up smalloffice
Starting central ... done
Starting smalloffice ... done
Attaching to smalloffice
smalloffice    | original volttron uuid is 1000
smalloffice    | chown volttron.volttron -R /home/volttron
smalloffice    | now Executing /startup/bootstart.sh
smalloffice    | Right before setup-platform.py is called I am calling printenv
smalloffice    | LOCAL_USER_ID=1000
smalloffice    | HOSTNAME=smalloffice
smalloffice    | VOLTTRON_USER=volttron
smalloffice    | VOLTTRON_USER_HOME=/home/volttron
smalloffice    | USER_PIP_BIN=/home/volttron/.local/bin
smalloffice    | VOLTTRON_GIT_BRANCH=rabbitmq-volttron
smalloffice    | VOLTTRON_ROOT=/code/volttron
smalloffice    | PWD=/home/volttron
smalloffice    | VOLTTRON_HOME=/home/volttron/.volttron
smalloffice    | HOME=/home/volttron
smalloffice    | DIST=buster
smalloffice    | CODE_ROOT=/code
smalloffice    | LOG_PREFIX=volttron-log-setup
smalloffice    | RMQ_HOME=/home/volttron/rabbitmq_server/rabbitmq_server-3.7.7
smalloffice    | SHLVL=1
smalloffice    | OS_TYPE=debian
smalloffice    | PATH=/home/volttron/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
smalloffice    | CONFIG=/home/volttron/configs
smalloffice    | RMQ_ROOT=/home/volttron/rabbitmq_server
smalloffice    | _=/usr/bin/printenv
smalloffice    | 2023-07-10 20:14:09 INFO setup-platform get_platform_config_path:37 — Platform_config: /platform_config.yml
smalloffice    | Defaulting to user installation because normal site-packages is not writeable
smalloffice    | WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f3feb4d10f0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/wheel/
smalloffice    | WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f3feb4d1978>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/wheel/
smalloffice    | WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f3feb4d17b8>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/wheel/
smalloffice    | WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f3feb4d1a58>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/wheel/
smalloffice    | WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f3feb4d1ba8>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/wheel/
smalloffice    | ERROR: Could not find a version that satisfies the requirement wheel==0.30 (from versions: none)
smalloffice    | ERROR: No matching distribution found for wheel==0.30
smalloffice    | Platform instance name set to: smalloffice
smalloffice    | Traceback (most recent call last):
smalloffice    |   File "/startup/setup-platform.py", line 371, in <module>
smalloffice    |     configure_platform(platform_cfg_tmp, config_tmp)
smalloffice    |   File "/startup/setup-platform.py", line 198, in configure_platform
smalloffice    |     _install_required_deps()
smalloffice    |   File "/startup/setup-platform.py", line 71, in _install_required_deps
smalloffice    |     subprocess.check_call(install_cmd)
smalloffice    |   File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
smalloffice    |     raise CalledProcessError(retcode, cmd)
smalloffice    | subprocess.CalledProcessError: Command '['pip3', 'install', '--no-deps', 'wheel==0.30']' returned non-zero exit status 1.
smalloffice    | error running setup-platform.py
smalloffice exited with code 1
judymin88 commented 1 year ago

Hi Ai,

Just a quick question. What version of Docker and docker-compose are you using?

aik7 commented 1 year ago

Hi Judy,

I have this script scipts/build.sh to install docker and docker-compose in this repository.

Docker version 20.10.21, build 20.10.21-0ubuntu1~20.04.2
docker-compose version 1.28.5, build c4eb3a1f

I know that I have to have:

I do not know how to install the specific version of Docker. docker-compose should be the correct version. This script used to work, but it may had a different version of Docker perviously.

judymin88 commented 1 year ago

I think your error may be caused by this:

smalloffice | WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f3feb4d10f0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/wheel/ smalloffice | WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f3feb4d1978>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/wheel/ smalloffice | WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f3feb4d17b8>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/wheel/ smalloffice | WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f3feb4d1a58>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/wheel/ smalloffice | WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f3feb4d1ba8>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/wheel/

I found this stack overflow answer that may be helpful: https://stackoverflow.com/questions/57648998/connection-to-pypi-org-timed-out

Let me know if this helps!

aik7 commented 1 year ago

Hi Judy, it seems that the problem is fixed now. Maybe because I restarted my machine. Anyway, I close this issue for now.