Re: [gtk-osx-users] GTK MACOS: jhbuild fails with ModuleNotFoundError: No module named 'pipenv'





On Nov 9, 2021, at 8:56 AM, Holger Rodriguez <gtk roseng ch> wrote:

Hi all,
I have:
macOS 10.13.6 (High Sierra)


======================================================
----------------
I created a *new* user
gtk
as instructed and removed the
/usr/local/bin
from the PATH, as in this directory, homebrew has its tools.
So I ensured, that, as advised in:
https://wiki.gnome.org/Projects/GTK/OSX/Building
that no homebrew references exist.


----------------
I downloaded the script:
https://gitlab.gnome.org/GNOME/gtk-osx/-/blob/master/gtk-osx-setup.sh
and ran it:
wsmac01:~ gtk$ ./gtk-osx-setup.sh

---------------- - OUTPUT
Cloning into '/Users/gtk/Source/pyenv'...
remote: Enumerating objects: 20631, done.
remote: Counting objects: 100% (1654/1654), done.
remote: Compressing objects: 100% (641/641), done.
remote: Total 20631 (delta 991), reused 1467 (delta 883), pack-reused 18977
Receiving objects: 100% (20631/20631), 4.20 MiB | 6.85 MiB/s, done.
Resolving deltas: 100% (13869/13869), done.
python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.10.0.tar.xz...
-> https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tar.xz
Installing Python-3.10.0...
patching file aclocal.m4
patching file configure
Hunk #5 succeeded at 10537 (offset -15 lines).
python-build: use readline from homebrew
Installed Python-3.10.0 to /Users/gtk/.new_local/share/pyenv/versions/3.10.0

Requirement already satisfied: pip in ./.new_local/share/pyenv/versions/3.10.0/lib/python3.10/site-packages (21.2.3)
Collecting pip
  Downloading pip-21.3.1-py3-none-any.whl (1.7 MB)
     |████████████████████████████████| 1.7 MB 2.5 MB/s
Installing collected packages: pip
  WARNING: The scripts pip, pip3 and pip3.10 are installed in '/Users/gtk/.new_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 pip-21.3.1
WARNING: You are using pip version 21.2.3; however, version 21.3.1 is available.
You should consider upgrading via the '/Users/gtk/.new_local/share/pyenv/versions/3.10.0/bin/python3.10 -m pip install --upgrade pip' command.
Collecting pipenv==2020.11.15
  Downloading pipenv-2020.11.15-py2.py3-none-any.whl (3.9 MB)
     |████████████████████████████████| 3.9 MB 2.6 MB/s           
Collecting certifi
  Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
     |████████████████████████████████| 149 kB 9.1 MB/s           
Collecting virtualenv-clone>=0.2.5
  Downloading virtualenv_clone-0.5.7-py3-none-any.whl (6.6 kB)
Collecting virtualenv
  Downloading virtualenv-20.10.0-py2.py3-none-any.whl (5.6 MB)
     |████████████████████████████████| 5.6 MB 8.0 MB/s           
Requirement already satisfied: pip>=18.0 in ./.new_local/lib/python3.10/site-packages (from pipenv==2020.11.15) (21.3.1)
Requirement already satisfied: setuptools>=36.2.1 in ./.new_local/share/pyenv/versions/3.10.0/lib/python3.10/site-packages (from pipenv==2020.11.15) (57.4.0)
Collecting backports.entry-points-selectable>=1.0.4
  Downloading backports.entry_points_selectable-1.1.1-py2.py3-none-any.whl (6.2 kB)
Collecting six<2,>=1.9.0
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting platformdirs<3,>=2
  Downloading platformdirs-2.4.0-py3-none-any.whl (14 kB)
Collecting distlib<1,>=0.3.1
  Downloading distlib-0.3.3-py2.py3-none-any.whl (496 kB)
     |████████████████████████████████| 496 kB 7.6 MB/s           
Collecting filelock<4,>=3.2
  Downloading filelock-3.3.2-py3-none-any.whl (9.7 kB)
Installing collected packages: six, platformdirs, filelock, distlib, backports.entry-points-selectable, virtualenv-clone, virtualenv, certifi, pipenv
  WARNING: The script virtualenv-clone is installed in '/Users/gtk/.new_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 '/Users/gtk/.new_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 '/Users/gtk/.new_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 backports.entry-points-selectable-1.1.1 certifi-2021.10.8 distlib-0.3.3 filelock-3.3.2 pipenv-2020.11.15 platformdirs-2.4.0 six-1.16.0 virtualenv-20.10.0 virtualenv-clone-0.5.7
WARNING: Package(s) not found: typing
Cloning into '/Users/gtk/Source/jhbuild'...
fatal: unable to access 'https://gitlab.gnome.org/GNOME/jhbuild.git/': SSL certificate problem: certificate has expired
./gtk-osx-setup.sh: line 114: cd: /Users/gtk/Source/jhbuild: No such file or directory
Archive:  /Users/gtk/.new_local/ninja-mac.zip
  inflating: /Users/gtk/.new_local/bin/ninja 
info: downloading installer
info: profile set to 'minimal'
info: default host triple is x86_64-apple-darwin
info: syncing channel updates for 'stable-x86_64-apple-darwin'
info: latest update on 2021-11-01, rust version 1.56.1 (59eed8a2a 2021-11-01)
info: downloading component 'cargo'
info: downloading component 'rust-std'
 22.0 MiB /  22.0 MiB (100 %)   6.9 MiB/s in  3s ETA:  0s
info: downloading component 'rustc'
 62.2 MiB /  62.2 MiB (100 %)   7.0 MiB/s in  9s ETA:  0s
info: installing component 'cargo'
info: installing component 'rust-std'
 22.0 MiB /  22.0 MiB (100 %)  12.3 MiB/s in  2s ETA:  0s
info: installing component 'rustc'
 62.2 MiB /  62.2 MiB (100 %)  13.7 MiB/s in  4s ETA:  0s
info: default toolchain set to 'stable-x86_64-apple-darwin'

  stable-x86_64-apple-darwin installed - rustc 1.56.1 (59eed8a2a 2021-11-01)


Rust is installed now. Great!

To get started you need Cargo's bin directory (/Users/gtk/.new_local/bin) in
your PATH
environment variable. This has not been done automatically.

To configure your current shell, run:
source /Users/gtk/.new_local/env
PATH does not contain /Users/gtk/.new_local/bin. You probably want to fix that.
./gtk-osx-setup.sh: line 234: test: -eq: unary operator expected
Warning: the environment variable LANG is not set!
We recommend setting this in ~/.profile (or equivalent) for proper expected behavior.
Creating a virtualenv for this project...
Pipfile: /Users/gtk/.new_local/etc/Pipfile
Using /Users/gtk/.new_local/share/pyenv/versions/3.10.0/bin/python3 (3.10.0) to create virtualenv...
⠼ Creating virtual environment...created virtual environment CPython3.10.0.final.0-64 in 1794ms
  creator CPython3Posix(dest=/Users/gtk/.local/share/virtualenvs/etc-UNI9p0cK, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/Users/gtk/Library/Application Support/virtualenv)
    added seed packages: pip==21.3.1, setuptools==58.3.0, wheel==0.37.0
  activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator

✔ Successfully created virtual environment!
Virtualenv location: /Users/gtk/.local/share/virtualenvs/etc-UNI9p0cK
Pipfile.lock not found, creating...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
✔ Success!
Updated Pipfile.lock (179575)!
Installing dependencies from Pipfile.lock (179575)...
  🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 2/2 — 00:00:02
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
Installing jhbuild configuration at /Users/gtk/.config/jhbuildrc
Installing jhbuild custom configuration at /Users/gtk/.config/jhbuildrc-custom


---------------- ADDING .new_local/bin as instructed
wsmac01:~ gtk$ export PATH=/Users/gtk/.new_local/bin:$PATH


---------------- EXECUTING the next step
wsmac01:~ gtk$ jhbuild bootstrap-gtk-osx
Traceback (most recent call last):
  File "/Users/gtk/.new_local/bin/pipenv", line 5, in <module>
    from pipenv import cli
ModuleNotFoundError: No module named 'pipenv'
ˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆ  <<<<<<<<<< FAILS


======================================================
What basic thing am I missing?

I am quite sure, that I followed the instructions given at:
https://wiki.gnome.org/Projects/GTK/OSX/Building
to the letter in the "Procedure" section.

Thanks for any help.

Does the PYTHONPATH line in .new_local/bin/jhbuild correctly point to $HOME/.new_local/lib/python3.10/site-packages? Does that directory have a subdirectory pipenv containing __init__.py and cli/ among others?

Regards,
John Ralls



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]