Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jinja 3.0.1 cannot be non-binary installed with pip #1496

Closed
facundobatista opened this issue Sep 23, 2021 · 13 comments
Closed

Jinja 3.0.1 cannot be non-binary installed with pip #1496

facundobatista opened this issue Sep 23, 2021 · 13 comments

Comments

@facundobatista
Copy link

Trying to install Jinja 3.0.1 in a clean environment, using pip in "no binary" mode, fails with
ModuleNotFoundError: No module named 'markupsafe'

Log:

12:33:58|facundo@antorcha:~/temp$ python3 -m venv testjinja
12:34:02|facundo@antorcha:~/temp$ source testjinja/bin/activate
(testjinja) 12:34:04|facundo@antorcha:~/temp$ pip install --no-binary :all: jinja2
Collecting jinja2
  Using cached Jinja2-3.0.1.tar.gz (267 kB)
    ERROR: Command errored out with exit status 1:
     command: /home/facundo/temp/testjinja/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-hyjx9100/jinja2/setup.py'"'"'; __file__='"'"'/tmp/pip-install-hyjx9100/jinja2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-cdmtlog2
         cwd: /tmp/pip-install-hyjx9100/jinja2/
    Complete output (35 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-hyjx9100/jinja2/setup.py", line 4, in <module>
        setup(
      File "/home/facundo/temp/testjinja/lib/python3.8/site-packages/setuptools/__init__.py", line 145, in setup
        return distutils.core.setup(**attrs)
      File "/usr/lib/python3.8/distutils/core.py", line 121, in setup
        dist.parse_config_files()
      File "/home/facundo/temp/testjinja/lib/python3.8/site-packages/setuptools/dist.py", line 701, in parse_config_files
        parse_configuration(self, self.command_options,
      File "/home/facundo/temp/testjinja/lib/python3.8/site-packages/setuptools/config.py", line 121, in parse_configuration
        meta.parse()
      File "/home/facundo/temp/testjinja/lib/python3.8/site-packages/setuptools/config.py", line 426, in parse
        section_parser_method(section_options)
      File "/home/facundo/temp/testjinja/lib/python3.8/site-packages/setuptools/config.py", line 399, in parse_section
        self[name] = value
      File "/home/facundo/temp/testjinja/lib/python3.8/site-packages/setuptools/config.py", line 184, in __setitem__
        value = parser(value)
      File "/home/facundo/temp/testjinja/lib/python3.8/site-packages/setuptools/config.py", line 515, in _parse_version
        version = self._parse_attr(value, self.package_dir)
      File "/home/facundo/temp/testjinja/lib/python3.8/site-packages/setuptools/config.py", line 349, in _parse_attr
        module = import_module(module_name)
      File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
      File "<frozen importlib._bootstrap>", line 991, in _find_and_load
      File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
      File "<frozen importlib._bootstrap_external>", line 848, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/tmp/pip-install-hyjx9100/jinja2/src/jinja2/__init__.py", line 8, in <module>
        from .environment import Environment as Environment
      File "/tmp/pip-install-hyjx9100/jinja2/src/jinja2/environment.py", line 15, in <module>
        from markupsafe import Markup
    ModuleNotFoundError: No module named 'markupsafe'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
(testjinja) 12:34:21|facundo@antorcha:~/temp$ 

Note that some older version installs OK:

(testjinja) 12:34:12|facundo@antorcha:~/temp$ pip install --no-binary :all: jinja2==2.11.3
Collecting jinja2==2.11.3
  Using cached Jinja2-2.11.3.tar.gz (257 kB)
Collecting MarkupSafe>=0.23
  Using cached MarkupSafe-2.0.1.tar.gz (18 kB)
Skipping wheel build for jinja2, due to binaries being disabled for it.
Skipping wheel build for MarkupSafe, due to binaries being disabled for it.
Installing collected packages: MarkupSafe, jinja2
    Running setup.py install for MarkupSafe ... done
    Running setup.py install for jinja2 ... done
Successfully installed MarkupSafe-2.0.1 jinja2-2.11.3
(testjinja) 12:34:25|facundo@antorcha:~/temp$

The same thing (installation ok) should happen in modern Jinja.

Environment:

  • Python version: 3.8.10
  • Jinja version: 3.0.1

Thank you!!

@facundobatista facundobatista changed the title Jinja 3.0.1 cannot be binary-installed with pip Jinja 3.0.1 cannot be non-binary installed with pip Sep 23, 2021
@heitorPB
Copy link

Is it missing markupsafe dependency?

@davidism
Copy link
Member

I can't reproduce this issue. pip install --no-binary :all: jinja2 in a fresh Python 3.8 virtualenv works.

@heitorPB
Copy link

This is the error I get:

$ mkdir bla
$ cd bla/
$ virtualenv venv
created virtual environment CPython3.8.10.final.0-64 in 143ms
  creator CPython3Posix(dest=/tmp/bla/venv, clear=False, global=False)
  seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, pkg_resources=latest, via=copy, app_data_dir=/home/h/.local/share/virtualenv/seed-app-data/v1.0.1.debian.1)
  activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
$ source venv/bin/activate
(venv)

$ pip install --no-binary :all: jinja2
Collecting jinja2
  Using cached Jinja2-3.0.1.tar.gz (267 kB)
    ERROR: Command errored out with exit status 1:
     command: /tmp/bla/venv/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-q5fgq2p6/jinja2/setup.py'"'"'; __file__='"'"'/tmp/pip-install-q5fgq2p6/jinja2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-q5fgq2p6/jinja2/pip-egg-info
         cwd: /tmp/pip-install-q5fgq2p6/jinja2/
    Complete output (37 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-q5fgq2p6/jinja2/setup.py", line 4, in <module>
        setup(
      File "/tmp/bla/venv/lib/python3.8/site-packages/setuptools/__init__.py", line 145, in setup
        return distutils.core.setup(**attrs)
      File "/usr/lib/python3.8/distutils/core.py", line 121, in setup
        dist.parse_config_files()
      File "/tmp/bla/venv/lib/python3.8/site-packages/_virtualenv.py", line 21, in parse_config_files
        result = old_parse_config_files(self, *args, **kwargs)
      File "/tmp/bla/venv/lib/python3.8/site-packages/setuptools/dist.py", line 701, in parse_config_files
        parse_configuration(self, self.command_options,
      File "/tmp/bla/venv/lib/python3.8/site-packages/setuptools/config.py", line 121, in parse_configuration
        meta.parse()
      File "/tmp/bla/venv/lib/python3.8/site-packages/setuptools/config.py", line 426, in parse
        section_parser_method(section_options)
      File "/tmp/bla/venv/lib/python3.8/site-packages/setuptools/config.py", line 399, in parse_section
        self[name] = value
      File "/tmp/bla/venv/lib/python3.8/site-packages/setuptools/config.py", line 184, in __setitem__
        value = parser(value)
      File "/tmp/bla/venv/lib/python3.8/site-packages/setuptools/config.py", line 515, in _parse_version
        version = self._parse_attr(value, self.package_dir)
      File "/tmp/bla/venv/lib/python3.8/site-packages/setuptools/config.py", line 349, in _parse_attr
        module = import_module(module_name)
      File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
      File "<frozen importlib._bootstrap>", line 991, in _find_and_load
      File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
      File "<frozen importlib._bootstrap_external>", line 848, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/tmp/pip-install-q5fgq2p6/jinja2/src/jinja2/__init__.py", line 8, in <module>
        from .environment import Environment as Environment
      File "/tmp/pip-install-q5fgq2p6/jinja2/src/jinja2/environment.py", line 15, in <module>
        from markupsafe import Markup
    ModuleNotFoundError: No module named 'markupsafe'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

@heitorPB
Copy link

Ouch, it works on ArchLinux with Python 3.9, but does not work on Ubuntu LTS 20.04 with Python 3.8.

@facundobatista
Copy link
Author

I can't reproduce this issue. pip install --no-binary :all: jinja2 in a fresh Python 3.8 virtualenv works.

Would you please show the logs when you tried this? Because I made it work using a newer pip, but what it does is end up installing an old version of jinja.

Thanks!

@facundobatista
Copy link
Author

Also, would you please re-open this issue? Jinja is broken in some situation, let's find out why.

mmanciop pushed a commit to mmanciop/grafana-operator that referenced this issue Sep 24, 2021
Due to pallets/jinja#1496, we cannot use the latest Jinja2 packages inside the operator. The breaking change was introduced in Jinja2's 3x branch, and this change pins the `jinja2` dependency to the latest 2x release.
@heitorPB
Copy link

@davidism how can we debug this further? This issue is appearing in more projects.

@davidism
Copy link
Member

Perhaps you need to update pip and setuptools in your virtualenv, but a completely vanilla venv works fine for me. I do not consider this an issue with Jinja based on the information available.

~ 
❯ python3.8 --version   
Python 3.8.12

~ 
❯ python3.8 -m venv venv

~ 
❯ . ./venv/bin/activate

~ via 🐍 v3.8.12 (venv) 
❯ pip --version         
pip 21.1.1 from /home/david/venv/lib/python3.8/site-packages/pip (python 3.8)

~ via 🐍 v3.8.12 (venv) 
❯ pip install --no-cache-dir --no-binary :all: jinja2
Collecting jinja2
  Downloading Jinja2-3.0.1.tar.gz (267 kB)
     |████████████████████████████████| 267 kB 3.7 MB/s 
Collecting MarkupSafe>=2.0
  Downloading MarkupSafe-2.0.1.tar.gz (18 kB)
Skipping wheel build for jinja2, due to binaries being disabled for it.
Skipping wheel build for MarkupSafe, due to binaries being disabled for it.
Installing collected packages: MarkupSafe, jinja2
    Running setup.py install for MarkupSafe ... done
    Running setup.py install for jinja2 ... done
Successfully installed MarkupSafe-2.0.1 jinja2-3.0.1
WARNING: You are using pip version 21.1.1; however, version 21.2.4 is available.
You should consider upgrading via the '/home/david/venv/bin/python3.8 -m pip install --upgrade pip' command.

~ via 🐍 v3.8.12 (venv) 
❯ pip list                                           
Package    Version
---------- -------
Jinja2     3.0.1
MarkupSafe 2.0.1
pip        21.1.1
setuptools 56.0.0
WARNING: You are using pip version 21.1.1; however, version 21.2.4 is available.
You should consider upgrading via the '/home/david/venv/bin/python3.8 -m pip install --upgrade pip' command.

~ via 🐍 v3.8.12 (venv) 
❯ 

@heitorPB
Copy link

This gets even weirder updating pip: it crashes with Jinja2 3.0.1, tries 3.0.0 and fails again, and finally installs 2.11.3.

$ pip install -U pip
Collecting pip
  Downloading pip-21.2.4-py3-none-any.whl (1.6 MB)
     |████████████████████████████████| 1.6 MB 5.4 MB/s
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.0.2
    Uninstalling pip-20.0.2:
      Successfully uninstalled pip-20.0.2
Successfully installed pip-21.2.4
(venv)

$ pip list
Package       Version
------------- -------
pip           21.2.4
pkg_resources 0.0.0
setuptools    44.0.0
wheel         0.34.2
(venv)

$ pip install --no-cache-dir --no-binary :all: jinja2
Collecting jinja2
  Downloading Jinja2-3.0.1.tar.gz (267 kB)
     |████████████████████████████████| 267 kB 5.1 MB/s
    ERROR: Command errored out with exit status 1:
     command: /tmp/bla/venv/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-y_nye7la/jinja2_465a6e599e22447289ca7fc5a85cdeae/setup.py'"'"'; __file__='"'"'/tmp/pip-install-y_nye7la/jinja2_465a6e599e22447289ca7fc5a85cdeae/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-sm1bajq6
         cwd: /tmp/pip-install-y_nye7la/jinja2_465a6e599e22447289ca7fc5a85cdeae/
    Complete output (37 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-y_nye7la/jinja2_465a6e599e22447289ca7fc5a85cdeae/setup.py", line 4, in <module>
        setup(
      File "/tmp/bla/venv/lib/python3.8/site-packages/setuptools/__init__.py", line 145, in setup
        return distutils.core.setup(**attrs)
      File "/usr/lib/python3.8/distutils/core.py", line 121, in setup
        dist.parse_config_files()
      File "/tmp/bla/venv/lib/python3.8/site-packages/_virtualenv.py", line 21, in parse_config_files
        result = old_parse_config_files(self, *args, **kwargs)
      File "/tmp/bla/venv/lib/python3.8/site-packages/setuptools/dist.py", line 701, in parse_config_files
        parse_configuration(self, self.command_options,
      File "/tmp/bla/venv/lib/python3.8/site-packages/setuptools/config.py", line 121, in parse_configuration
        meta.parse()
      File "/tmp/bla/venv/lib/python3.8/site-packages/setuptools/config.py", line 426, in parse
        section_parser_method(section_options)
      File "/tmp/bla/venv/lib/python3.8/site-packages/setuptools/config.py", line 399, in parse_section
        self[name] = value
      File "/tmp/bla/venv/lib/python3.8/site-packages/setuptools/config.py", line 184, in __setitem__
        value = parser(value)
      File "/tmp/bla/venv/lib/python3.8/site-packages/setuptools/config.py", line 515, in _parse_version
        version = self._parse_attr(value, self.package_dir)
      File "/tmp/bla/venv/lib/python3.8/site-packages/setuptools/config.py", line 349, in _parse_attr
        module = import_module(module_name)
      File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
      File "<frozen importlib._bootstrap>", line 991, in _find_and_load
      File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
      File "<frozen importlib._bootstrap_external>", line 848, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/tmp/pip-install-y_nye7la/jinja2_465a6e599e22447289ca7fc5a85cdeae/src/jinja2/__init__.py", line 8, in <module>
        from .environment import Environment as Environment
      File "/tmp/pip-install-y_nye7la/jinja2_465a6e599e22447289ca7fc5a85cdeae/src/jinja2/environment.py", line 15, in <module>
        from markupsafe import Markup
    ModuleNotFoundError: No module named 'markupsafe'
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/39/11/8076571afd97303dfeb6e466f27187ca4970918d4b36d5326725514d3ed3/Jinja2-3.0.1.tar.gz#sha256=703f484b47a6af502e743c9122595cc812b0271f661722403114f71a79d0f5a4 (from https://pypi.org/simple/jinja2/) (requires-python:>=3.6). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
  Downloading Jinja2-3.0.0.tar.gz (267 kB)
     |████████████████████████████████| 267 kB 91.3 MB/s
    ERROR: Command errored out with exit status 1:
     command: /tmp/bla/venv/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-y_nye7la/jinja2_2c2a8e8eb00c494b931f224b829378da/setup.py'"'"'; __file__='"'"'/tmp/pip-install-y_nye7la/jinja2_2c2a8e8eb00c494b931f224b829378da/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-u_55jq7z
         cwd: /tmp/pip-install-y_nye7la/jinja2_2c2a8e8eb00c494b931f224b829378da/
    Complete output (37 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-y_nye7la/jinja2_2c2a8e8eb00c494b931f224b829378da/setup.py", line 4, in <module>
        setup(
      File "/tmp/bla/venv/lib/python3.8/site-packages/setuptools/__init__.py", line 145, in setup
        return distutils.core.setup(**attrs)
      File "/usr/lib/python3.8/distutils/core.py", line 121, in setup
        dist.parse_config_files()
      File "/tmp/bla/venv/lib/python3.8/site-packages/_virtualenv.py", line 21, in parse_config_files
        result = old_parse_config_files(self, *args, **kwargs)
      File "/tmp/bla/venv/lib/python3.8/site-packages/setuptools/dist.py", line 701, in parse_config_files
        parse_configuration(self, self.command_options,
      File "/tmp/bla/venv/lib/python3.8/site-packages/setuptools/config.py", line 121, in parse_configuration
        meta.parse()
      File "/tmp/bla/venv/lib/python3.8/site-packages/setuptools/config.py", line 426, in parse
        section_parser_method(section_options)
      File "/tmp/bla/venv/lib/python3.8/site-packages/setuptools/config.py", line 399, in parse_section
        self[name] = value
      File "/tmp/bla/venv/lib/python3.8/site-packages/setuptools/config.py", line 184, in __setitem__
        value = parser(value)
      File "/tmp/bla/venv/lib/python3.8/site-packages/setuptools/config.py", line 515, in _parse_version
        version = self._parse_attr(value, self.package_dir)
      File "/tmp/bla/venv/lib/python3.8/site-packages/setuptools/config.py", line 349, in _parse_attr
        module = import_module(module_name)
      File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
      File "<frozen importlib._bootstrap>", line 991, in _find_and_load
      File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
      File "<frozen importlib._bootstrap_external>", line 848, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/tmp/pip-install-y_nye7la/jinja2_2c2a8e8eb00c494b931f224b829378da/src/jinja2/__init__.py", line 8, in <module>
        from .environment import Environment
      File "/tmp/pip-install-y_nye7la/jinja2_2c2a8e8eb00c494b931f224b829378da/src/jinja2/environment.py", line 14, in <module>
        from markupsafe import Markup
    ModuleNotFoundError: No module named 'markupsafe'
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/7a/0c/23cbcf515b5394e9f59a3e6629f26e1142b92d474ee0725a26aa5a3bcf76/Jinja2-3.0.0.tar.gz#sha256=ea8d7dd814ce9df6de6a761ec7f1cac98afe305b8cdc4aaae4e114b8d8ce24c5 (from https://pypi.org/simple/jinja2/) (requires-python:>=3.6). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
  Downloading Jinja2-2.11.3.tar.gz (257 kB)
     |████████████████████████████████| 257 kB 100.4 MB/s
Collecting MarkupSafe>=0.23
  Downloading MarkupSafe-2.0.1.tar.gz (18 kB)
Skipping wheel build for jinja2, due to binaries being disabled for it.
Skipping wheel build for MarkupSafe, due to binaries being disabled for it.
Installing collected packages: MarkupSafe, jinja2
    Running setup.py install for MarkupSafe ... done
    Running setup.py install for jinja2 ... done
Successfully installed MarkupSafe-2.0.1 jinja2-2.11.3

$ pip list
Package       Version
------------- -------
Jinja2        2.11.3
MarkupSafe    2.0.1
pip           21.2.4
pkg_resources 0.0.0
setuptools    44.0.0
wheel         0.34.2

Running Python 3.8.10 on Ubuntu 20.04.

@davidism
Copy link
Member

davidism commented Sep 24, 2021

It sounds like an issue with your Python/virtualenv/pip/setuptools. That's where I'd investigate next. I'm sorry, I can't help you debug this more at this point.

@davidism
Copy link
Member

davidism commented Sep 24, 2021

Note that updating pip is not the same as updating pip and setuptools. You currently have a 2 year old version of setuptools acording to pip list. pip install -U pip setuptools, and you might also want to throw in wheel as well.

@facundobatista
Copy link
Author

Updating both pip and setuptools seems to work ok:

11:23:38|facundo@antorcha:~/temp$ rm -r testjinja/
11:23:43|facundo@antorcha:~/temp$ python3 -m venv testjinja
11:23:48|facundo@antorcha:~/temp$ source testjinja/bin/activate
(testjinja) 11:23:53|facundo@antorcha:~/temp$ pip install --upgrade --no-binary :all: pip setuptools
Collecting pip
  Using cached pip-21.2.4.tar.gz (1.6 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting setuptools
  Using cached setuptools-58.1.0.tar.gz (2.1 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Building wheels for collected packages: pip, setuptools
  Building wheel for pip (PEP 517) ... done
  Created wheel for pip: filename=pip-21.2.4-py3-none-any.whl size=1555100 sha256=5dafdd91cb9f886a28bf4c2d6865712234783eb4c1d229de8923b869d9d18a13
  Stored in directory: /home/facundo/.cache/pip/wheels/34/4f/21/0a0eb6563ca376ece2a934373698a86ef54e52cc425d6758ef
  Building wheel for setuptools (PEP 517) ... done
  Created wheel for setuptools: filename=setuptools-58.1.0-py3-none-any.whl size=816725 sha256=9141a20cf865bcc9d6eec0da0222d09838ebfba46b82a1ef107dc40ee9ab2c78
  Stored in directory: /home/facundo/.cache/pip/wheels/2d/79/5d/ebf2590e646d33c08e418888a16d800d999e652d2963ed976e
Successfully built pip setuptools
Installing collected packages: pip, setuptools
  Attempting uninstall: pip
    Found existing installation: pip 20.1.1
    Uninstalling pip-20.1.1:
      Successfully uninstalled pip-20.1.1
  Attempting uninstall: setuptools
    Found existing installation: setuptools 44.0.0
    Uninstalling setuptools-44.0.0:
      Successfully uninstalled setuptools-44.0.0
Successfully installed pip-21.2.4 setuptools-58.1.0
(testjinja) 11:24:15|facundo@antorcha:~/temp$ 
(testjinja) 11:24:17|facundo@antorcha:~/temp$ 
(testjinja) 11:24:18|facundo@antorcha:~/temp$ pip install -v --no-binary :all: jinja2
Using pip 21.2.4 from /home/facundo/temp/testjinja/lib/python3.8/site-packages/pip (python 3.8)
Collecting jinja2
  Using cached Jinja2-3.0.1.tar.gz (267 kB)
    Running command python setup.py egg_info
    running egg_info
    creating /tmp/pip-pip-egg-info-rkl7m2p5/Jinja2.egg-info
    writing /tmp/pip-pip-egg-info-rkl7m2p5/Jinja2.egg-info/PKG-INFO
    writing dependency_links to /tmp/pip-pip-egg-info-rkl7m2p5/Jinja2.egg-info/dependency_links.txt
    writing entry points to /tmp/pip-pip-egg-info-rkl7m2p5/Jinja2.egg-info/entry_points.txt
    writing requirements to /tmp/pip-pip-egg-info-rkl7m2p5/Jinja2.egg-info/requires.txt
    writing top-level names to /tmp/pip-pip-egg-info-rkl7m2p5/Jinja2.egg-info/top_level.txt
    writing manifest file '/tmp/pip-pip-egg-info-rkl7m2p5/Jinja2.egg-info/SOURCES.txt'
    reading manifest file '/tmp/pip-pip-egg-info-rkl7m2p5/Jinja2.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    no previously-included directories found matching 'docs/_build'
    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    adding license file 'LICENSE.rst'
    writing manifest file '/tmp/pip-pip-egg-info-rkl7m2p5/Jinja2.egg-info/SOURCES.txt'
Collecting MarkupSafe>=2.0
  Using cached MarkupSafe-2.0.1.tar.gz (18 kB)
    Running command python setup.py egg_info
    running egg_info
    creating /tmp/pip-pip-egg-info-w6asnx2x/MarkupSafe.egg-info
    writing /tmp/pip-pip-egg-info-w6asnx2x/MarkupSafe.egg-info/PKG-INFO
    writing dependency_links to /tmp/pip-pip-egg-info-w6asnx2x/MarkupSafe.egg-info/dependency_links.txt
    writing top-level names to /tmp/pip-pip-egg-info-w6asnx2x/MarkupSafe.egg-info/top_level.txt
    writing manifest file '/tmp/pip-pip-egg-info-w6asnx2x/MarkupSafe.egg-info/SOURCES.txt'
    reading manifest file '/tmp/pip-pip-egg-info-w6asnx2x/MarkupSafe.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    no previously-included directories found matching 'docs/_build'
    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    adding license file 'LICENSE.rst'
    writing manifest file '/tmp/pip-pip-egg-info-w6asnx2x/MarkupSafe.egg-info/SOURCES.txt'
Skipping wheel build for jinja2, due to binaries being disabled for it.
Skipping wheel build for MarkupSafe, due to binaries being disabled for it.
Installing collected packages: MarkupSafe, jinja2
    Running command /home/facundo/temp/testjinja/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wgfb3512/markupsafe_9fd89a28305c4215a6cdf8856253490c/setup.py'"'"'; __file__='"'"'/tmp/pip-install-wgfb3512/markupsafe_9fd89a28305c4215a6cdf8856253490c/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-j54aapu2/install-record.txt --single-version-externally-managed --compile --install-headers /home/facundo/temp/testjinja/include/site/python3.8/MarkupSafe
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.8
    creating build/lib.linux-x86_64-3.8/markupsafe
    copying src/markupsafe/__init__.py -> build/lib.linux-x86_64-3.8/markupsafe
    copying src/markupsafe/_native.py -> build/lib.linux-x86_64-3.8/markupsafe
    running egg_info
    writing src/MarkupSafe.egg-info/PKG-INFO
    writing dependency_links to src/MarkupSafe.egg-info/dependency_links.txt
    writing top-level names to src/MarkupSafe.egg-info/top_level.txt
    reading manifest file 'src/MarkupSafe.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    no previously-included directories found matching 'docs/_build'
    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    adding license file 'LICENSE.rst'
    writing manifest file 'src/MarkupSafe.egg-info/SOURCES.txt'
    copying src/markupsafe/_speedups.c -> build/lib.linux-x86_64-3.8/markupsafe
    copying src/markupsafe/_speedups.pyi -> build/lib.linux-x86_64-3.8/markupsafe
    copying src/markupsafe/py.typed -> build/lib.linux-x86_64-3.8/markupsafe
    running build_ext
    building 'markupsafe._speedups' extension
    creating build/temp.linux-x86_64-3.8
    creating build/temp.linux-x86_64-3.8/src
    creating build/temp.linux-x86_64-3.8/src/markupsafe
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/facundo/temp/testjinja/include -I/usr/include/python3.8 -c src/markupsafe/_speedups.c -o build/temp.linux-x86_64-3.8/src/markupsafe/_speedups.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.8/src/markupsafe/_speedups.o -o build/lib.linux-x86_64-3.8/markupsafe/_speedups.cpython-38-x86_64-linux-gnu.so
    running install_lib
    creating /home/facundo/temp/testjinja/lib/python3.8/site-packages/markupsafe
    copying build/lib.linux-x86_64-3.8/markupsafe/_speedups.pyi -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/markupsafe
    copying build/lib.linux-x86_64-3.8/markupsafe/_speedups.c -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/markupsafe
    copying build/lib.linux-x86_64-3.8/markupsafe/__init__.py -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/markupsafe
    copying build/lib.linux-x86_64-3.8/markupsafe/_speedups.cpython-38-x86_64-linux-gnu.so -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/markupsafe
    copying build/lib.linux-x86_64-3.8/markupsafe/_native.py -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/markupsafe
    copying build/lib.linux-x86_64-3.8/markupsafe/py.typed -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/markupsafe
    byte-compiling /home/facundo/temp/testjinja/lib/python3.8/site-packages/markupsafe/__init__.py to __init__.cpython-38.pyc
    byte-compiling /home/facundo/temp/testjinja/lib/python3.8/site-packages/markupsafe/_native.py to _native.cpython-38.pyc
    running install_egg_info
    Copying src/MarkupSafe.egg-info to /home/facundo/temp/testjinja/lib/python3.8/site-packages/MarkupSafe-2.0.1-py3.8.egg-info
    running install_scripts
    writing list of installed files to '/tmp/pip-record-j54aapu2/install-record.txt'
    Running setup.py install for MarkupSafe ... done
    Running command /home/facundo/temp/testjinja/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wgfb3512/jinja2_30ef586eb1354d3abf8cba77aa04ef64/setup.py'"'"'; __file__='"'"'/tmp/pip-install-wgfb3512/jinja2_30ef586eb1354d3abf8cba77aa04ef64/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-_b__dl3p/install-record.txt --single-version-externally-managed --compile --install-headers /home/facundo/temp/testjinja/include/site/python3.8/jinja2
    running install
    running build
    running build_py
    creating build
    creating build/lib
    creating build/lib/jinja2
    copying src/jinja2/nodes.py -> build/lib/jinja2
    copying src/jinja2/_identifier.py -> build/lib/jinja2
    copying src/jinja2/debug.py -> build/lib/jinja2
    copying src/jinja2/ext.py -> build/lib/jinja2
    copying src/jinja2/filters.py -> build/lib/jinja2
    copying src/jinja2/async_utils.py -> build/lib/jinja2
    copying src/jinja2/loaders.py -> build/lib/jinja2
    copying src/jinja2/tests.py -> build/lib/jinja2
    copying src/jinja2/idtracking.py -> build/lib/jinja2
    copying src/jinja2/sandbox.py -> build/lib/jinja2
    copying src/jinja2/compiler.py -> build/lib/jinja2
    copying src/jinja2/runtime.py -> build/lib/jinja2
    copying src/jinja2/nativetypes.py -> build/lib/jinja2
    copying src/jinja2/meta.py -> build/lib/jinja2
    copying src/jinja2/__init__.py -> build/lib/jinja2
    copying src/jinja2/optimizer.py -> build/lib/jinja2
    copying src/jinja2/visitor.py -> build/lib/jinja2
    copying src/jinja2/parser.py -> build/lib/jinja2
    copying src/jinja2/exceptions.py -> build/lib/jinja2
    copying src/jinja2/utils.py -> build/lib/jinja2
    copying src/jinja2/defaults.py -> build/lib/jinja2
    copying src/jinja2/environment.py -> build/lib/jinja2
    copying src/jinja2/constants.py -> build/lib/jinja2
    copying src/jinja2/bccache.py -> build/lib/jinja2
    copying src/jinja2/lexer.py -> build/lib/jinja2
    running egg_info
    writing src/Jinja2.egg-info/PKG-INFO
    writing dependency_links to src/Jinja2.egg-info/dependency_links.txt
    writing entry points to src/Jinja2.egg-info/entry_points.txt
    writing requirements to src/Jinja2.egg-info/requires.txt
    writing top-level names to src/Jinja2.egg-info/top_level.txt
    reading manifest file 'src/Jinja2.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    no previously-included directories found matching 'docs/_build'
    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    adding license file 'LICENSE.rst'
    writing manifest file 'src/Jinja2.egg-info/SOURCES.txt'
    copying src/jinja2/py.typed -> build/lib/jinja2
    running install_lib
    creating /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2
    copying build/lib/jinja2/nodes.py -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2
    copying build/lib/jinja2/_identifier.py -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2
    copying build/lib/jinja2/debug.py -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2
    copying build/lib/jinja2/ext.py -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2
    copying build/lib/jinja2/filters.py -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2
    copying build/lib/jinja2/async_utils.py -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2
    copying build/lib/jinja2/loaders.py -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2
    copying build/lib/jinja2/tests.py -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2
    copying build/lib/jinja2/idtracking.py -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2
    copying build/lib/jinja2/sandbox.py -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2
    copying build/lib/jinja2/compiler.py -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2
    copying build/lib/jinja2/runtime.py -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2
    copying build/lib/jinja2/nativetypes.py -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2
    copying build/lib/jinja2/meta.py -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2
    copying build/lib/jinja2/__init__.py -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2
    copying build/lib/jinja2/optimizer.py -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2
    copying build/lib/jinja2/visitor.py -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2
    copying build/lib/jinja2/parser.py -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2
    copying build/lib/jinja2/exceptions.py -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2
    copying build/lib/jinja2/utils.py -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2
    copying build/lib/jinja2/defaults.py -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2
    copying build/lib/jinja2/environment.py -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2
    copying build/lib/jinja2/constants.py -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2
    copying build/lib/jinja2/bccache.py -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2
    copying build/lib/jinja2/py.typed -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2
    copying build/lib/jinja2/lexer.py -> /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2
    byte-compiling /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2/nodes.py to nodes.cpython-38.pyc
    byte-compiling /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2/_identifier.py to _identifier.cpython-38.pyc
    byte-compiling /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2/debug.py to debug.cpython-38.pyc
    byte-compiling /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2/ext.py to ext.cpython-38.pyc
    byte-compiling /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2/filters.py to filters.cpython-38.pyc
    byte-compiling /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2/async_utils.py to async_utils.cpython-38.pyc
    byte-compiling /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2/loaders.py to loaders.cpython-38.pyc
    byte-compiling /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2/tests.py to tests.cpython-38.pyc
    byte-compiling /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2/idtracking.py to idtracking.cpython-38.pyc
    byte-compiling /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2/sandbox.py to sandbox.cpython-38.pyc
    byte-compiling /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2/compiler.py to compiler.cpython-38.pyc
    byte-compiling /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2/runtime.py to runtime.cpython-38.pyc
    byte-compiling /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2/nativetypes.py to nativetypes.cpython-38.pyc
    byte-compiling /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2/meta.py to meta.cpython-38.pyc
    byte-compiling /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2/__init__.py to __init__.cpython-38.pyc
    byte-compiling /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2/optimizer.py to optimizer.cpython-38.pyc
    byte-compiling /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2/visitor.py to visitor.cpython-38.pyc
    byte-compiling /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2/parser.py to parser.cpython-38.pyc
    byte-compiling /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2/exceptions.py to exceptions.cpython-38.pyc
    byte-compiling /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2/utils.py to utils.cpython-38.pyc
    byte-compiling /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2/defaults.py to defaults.cpython-38.pyc
    byte-compiling /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2/environment.py to environment.cpython-38.pyc
    byte-compiling /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2/constants.py to constants.cpython-38.pyc
    byte-compiling /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2/bccache.py to bccache.cpython-38.pyc
    byte-compiling /home/facundo/temp/testjinja/lib/python3.8/site-packages/jinja2/lexer.py to lexer.cpython-38.pyc
    running install_egg_info
    Copying src/Jinja2.egg-info to /home/facundo/temp/testjinja/lib/python3.8/site-packages/Jinja2-3.0.1-py3.8.egg-info
    running install_scripts
    writing list of installed files to '/tmp/pip-record-_b__dl3p/install-record.txt'
    Running setup.py install for jinja2 ... done
Successfully installed MarkupSafe-2.0.1 jinja2-3.0.1
(testjinja) 11:24:25|facundo@antorcha:~/temp$ 

@heitorPB
Copy link

heitorPB commented Sep 24, 2021

Updating only setup tools fixed the issue also.

Is this an issue on the Ubuntu package for setuptools?

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants