On Wednesday, September 7, 2022 at 5:50:40 AM UTC-7 Roger Oberholtzer wrote:

> I have decided to try Trac 1.5 as the system on which this runs was 
> forced to move to Python3. Or, one can say that Python2 is difficult 
> to use on this system. 
>
> Anyway, when I tried to install Trac 1.5x with this command: 
>
> pip install https://download.edgewall.org/trac/Trac-latest-dev.tar.gz 
>
> I get this: 
>
> ---%<---- 
>
> Collecting https://download.edgewall.org/trac/Trac-latest-dev.tar.gz 
> Downloading https://download.edgewall.org/trac/Trac-latest-dev.tar.gz 
> (5.4 MB) 
> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.4/5.4 MB 705.8 kB/s eta 0:00:00 
> Preparing metadata (setup.py) ... error 
> error: subprocess-exited-with-error 
>
> × python setup.py egg_info did not run successfully. 
> │ exit code: 1 
> ╰─> [8 lines of output] 
> Traceback (most recent call last): 
> File "<string>", line 2, in <module> 
> File "<pip-setuptools-caller>", line 34, in <module> 
> File "/tmp/pip-req-build-h350rf4p/setup.py", line 32, in <module> 
> from trac.dist import get_l10n_trac_cmdclass 
> File "/tmp/pip-req-build-h350rf4p/trac/dist.py", line 30, in <module> 
> from jinja2.ext import babel_extract as jinja2_extractor 
> ModuleNotFoundError: No module named 'jinja2' 
> [end of output] 
>
> note: This error originates from a subprocess, and is likely not a 
> problem with pip. 
> error: metadata-generation-failed 
>
> × Encountered error while generating package metadata. 
> ╰─> See above for output. 
>
> note: This is an issue with the package mentioned above, not pip. 
> hint: See above for details. 
>
> ---%<---- 
>
> I think Jinja should be installed as part of this. But something 
> cannot be found. 
>
> I'm using Python 3.10 for all this as it is the current default on my 
> openSUSE Tumbleweed Linux system. 
>
> -- 
> Roger Oberholtzer



I can't reproduce in a virtualenv on macOS. Maybe try upgrading your pip. 
What version are you using?

07:50 $ pip list
Package    Version
---------- -------
pip        22.2.1
setuptools 63.2.0

[notice] A new release of pip available: 22.2.1 -> 22.2.2
[notice] To update, run: python3.10 -m pip install --upgrade pip
✔ ~/Documents/Workspace/trac-dev/teo-rjollos.git [trunk ↓·1|⚑ 2]
07:50 $ pip install 
https://download.edgewall.org/trac/Trac-latest-dev.tar.gz
Collecting https://download.edgewall.org/trac/Trac-latest-dev.tar.gz
  Using cached https://download.edgewall.org/trac/Trac-latest-dev.tar.gz 
(5.4 MB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: setuptools>=30.3 in 
/Users/rjollos/.pyenv/versions/3.10.6/envs/verasonics/lib/python3.10/site-packages
 
(from Trac==1.5.3) (63.2.0)
Collecting jinja2>=2.9.3
  Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting MarkupSafe>=2.0
  Using cached MarkupSafe-2.1.1-cp310-cp310-macosx_10_9_x86_64.whl (13 kB)
Using legacy 'setup.py install' for Trac, since package 'wheel' is not 
installed.
Installing collected packages: MarkupSafe, jinja2, Trac
  Running setup.py install for Trac ... done
Successfully installed MarkupSafe-2.1.1 Trac-1.5.3 jinja2-3.1.2

[notice] A new release of pip available: 22.2.1 -> 22.2.2
[notice] To update, run: python3.10 -m pip install --upgrade pip
✔ ~/Documents/Workspace/trac-dev/teo-rjollos.git [trunk ↓·1|⚑ 2]
07:50 $ pip --version
pip 22.2.1 from 
/Users/rjollos/.pyenv/versions/3.10.6/envs/verasonics/lib/python3.10/site-packages/pip
 
(python 3.10)
✔ ~/Documents/Workspace/trac-dev/teo-rjollos.git [trunk ↓·1|⚑ 2]
07:50 $ python --version
Python 3.10.6 

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/45152865-deaf-4f23-9e56-1063e71d540dn%40googlegroups.com.

Reply via email to