-
Notifications
You must be signed in to change notification settings - Fork 11
Update create_devel_venv.sh #47
base: master
Are you sure you want to change the base?
Conversation
|
Interesting failure. I'll have to look into this deeper. How did you install pipenv originally with apt or with pip? |
|
I honestly don't remember 100%, but I imagine |
|
I'll get a test image together and try again when I get a minute. I'll start with 32 bit and maybe on the 64 bit. |
|
@aaronr8684 Could be a week or so before I'm ready to tackle this. |
|
All good. I just tested this on a fresh install of the 32-bit version of Raspbian (based on Debian 11 "Bullseye") on my Pi Zero W (1st gen) and experienced the same exact problem.
|
|
Sorry for another update so quickly. I tried this on my local Ubuntu VM (Impish 21.10 based on bullseye) and had the same issue. It's a relatively fresh install (within the last few weeks) of the OSBoxes image. Before this output, I had to install "pip" and "git", but the rest is shown below (including some extra items to aid in troubleshooting). osboxes@ubuntu-vm:~/github$ git clone https://github.com/txoof/epd_display.git
Cloning into 'epd_display'...
remote: Enumerating objects: 4271, done.
remote: Counting objects: 100% (408/408), done.
remote: Compressing objects: 100% (156/156), done.
remote: Total 4271 (delta 261), reused 389 (delta 250), pack-reused 3863
Receiving objects: 100% (4271/4271), 869.79 MiB | 10.97 MiB/s, done.
Resolving deltas: 100% (2560/2560), done.
osboxes@ubuntu-vm:~/github$ cd epd_display/
osboxes@ubuntu-vm:~/github/epd_display$ ./create_devel_venv.sh
checking for required debian packages
VERIFYING DEB PACKAGE: libtiff5
libtiff5 ... OK
VERIFYING DEB PACKAGE: libopenjp2-7
libopenjp2-7 ... OK
VERIFYING DEB PACKAGE: libcairo2
libcairo2 ... OK
checking python environment
VERIFYING PYTHON PACKAGE: pipenv
PYTHON PACKAGE pipenv NOT INSTALLED. Install with:
$ pip3 install pipenv
1 required python packages missing. See messages above.
exiting script ./create_devel_venv.sh
reason: stopping.
osboxes@ubuntu-vm:~/github/epd_display$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 21.10
Release: 21.10
Codename: impish
osboxes@ubuntu-vm:~/github/epd_display$ pip3 install pipenv
Collecting pipenv
Downloading pipenv-2022.1.8-py2.py3-none-any.whl (3.6 MB)
|████████████████████████████████| 3.6 MB 3.7 MB/s
Collecting virtualenv-clone>=0.2.5
Downloading virtualenv_clone-0.5.7-py3-none-any.whl (6.6 kB)
Requirement already satisfied: certifi in /usr/lib/python3/dist-packages (from pipenv) (2020.6.20)
Requirement already satisfied: pip>=18.0 in /usr/lib/python3/dist-packages (from pipenv) (20.3.4)
Requirement already satisfied: setuptools>=36.2.1 in /usr/lib/python3/dist-packages (from pipenv) (52.0.0)
Collecting virtualenv
Downloading virtualenv-20.13.1-py2.py3-none-any.whl (8.6 MB)
|████████████████████████████████| 8.6 MB 28.5 MB/s
Collecting filelock<4,>=3.2
Downloading filelock-3.4.2-py3-none-any.whl (9.9 kB)
Requirement already satisfied: six<2,>=1.9.0 in /usr/lib/python3/dist-packages (from virtualenv->pipenv) (1.16.0)
Collecting platformdirs<3,>=2
Downloading platformdirs-2.4.1-py3-none-any.whl (14 kB)
Collecting distlib<1,>=0.3.1
Downloading distlib-0.3.4-py2.py3-none-any.whl (461 kB)
|████████████████████████████████| 461 kB 11.3 MB/s
Installing collected packages: platformdirs, filelock, distlib, virtualenv-clone, virtualenv, pipenv
WARNING: The script virtualenv-clone is installed in '/home/osboxes/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script virtualenv is installed in '/home/osboxes/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The scripts pipenv and pipenv-resolver are installed in '/home/osboxes/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed distlib-0.3.4 filelock-3.4.2 pipenv-2022.1.8 platformdirs-2.4.1 virtualenv-20.13.1 virtualenv-clone-0.5.7
osboxes@ubuntu-vm:~/github/epd_display$ ./create_devel_venv.sh
checking for required debian packages
VERIFYING DEB PACKAGE: libtiff5
libtiff5 ... OK
VERIFYING DEB PACKAGE: libopenjp2-7
libopenjp2-7 ... OK
VERIFYING DEB PACKAGE: libcairo2
libcairo2 ... OK
checking python environment
VERIFYING PYTHON PACKAGE: pipenv
PYTHON PACKAGE pipenv NOT INSTALLED. Install with:
$ pip3 install pipenv
1 required python packages missing. See messages above.
exiting script ./create_devel_venv.sh
reason: stopping.
osboxes@ubuntu-vm:~/github/epd_display$ pip show pipenv
Name: pipenv
Version: 2022.1.8
Summary: Python Development Workflow for Humans.
Home-page: https://github.com/pypa/pipenv
Author: Pipenv maintainer team
Author-email: [email protected]
License: MIT
Location: /home/osboxes/.local/lib/python3.9/site-packages
Requires: virtualenv, certifi, pip, virtualenv-clone, setuptools
Required-by:
osboxes@ubuntu-vm:~/github/epd_display$ sudo pip show pipenv
[sudo] password for osboxes:
WARNING: Package(s) not found: pipenv
osboxes@ubuntu-vm:~/github/epd_display$ sudo pip3 install pipenv
Collecting pipenv
Downloading pipenv-2022.1.8-py2.py3-none-any.whl (3.6 MB)
|████████████████████████████████| 3.6 MB 2.5 MB/s
Requirement already satisfied: pip>=18.0 in /usr/lib/python3/dist-packages (from pipenv) (20.3.4)
Requirement already satisfied: certifi in /usr/lib/python3/dist-packages (from pipenv) (2020.6.20)
Collecting virtualenv
Downloading virtualenv-20.13.1-py2.py3-none-any.whl (8.6 MB)
|████████████████████████████████| 8.6 MB 11.1 MB/s
Requirement already satisfied: setuptools>=36.2.1 in /usr/lib/python3/dist-packages (from pipenv) (52.0.0)
Collecting virtualenv-clone>=0.2.5
Downloading virtualenv_clone-0.5.7-py3-none-any.whl (6.6 kB)
Collecting distlib<1,>=0.3.1
Downloading distlib-0.3.4-py2.py3-none-any.whl (461 kB)
|████████████████████████████████| 461 kB 10.9 MB/s
Requirement already satisfied: six<2,>=1.9.0 in /usr/lib/python3/dist-packages (from virtualenv->pipenv) (1.16.0)
Collecting filelock<4,>=3.2
Downloading filelock-3.4.2-py3-none-any.whl (9.9 kB)
Collecting platformdirs<3,>=2
Downloading platformdirs-2.4.1-py3-none-any.whl (14 kB)
Installing collected packages: platformdirs, filelock, distlib, virtualenv-clone, virtualenv, pipenv
Successfully installed distlib-0.3.4 filelock-3.4.2 pipenv-2022.1.8 platformdirs-2.4.1 virtualenv-20.13.1 virtualenv-clone-0.5.7
osboxes@ubuntu-vm:~/github/epd_display$ sudo pip show pipenv
Name: pipenv
Version: 2022.1.8
Summary: Python Development Workflow for Humans.
Home-page: https://github.com/pypa/pipenv
Author: Pipenv maintainer team
Author-email: [email protected]
License: MIT
Location: /usr/local/lib/python3.9/dist-packages
Requires: virtualenv-clone, setuptools, certifi, virtualenv, pip
Required-by:
osboxes@ubuntu-vm:~/github/epd_display$ |
Even with pipenv installed, the script failed until I ran "sudo pip install pipenv". Added additional lines in error echo to reflect that additional step