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

pip install MarkupSafe broken on linux/aarch64 #247

Closed
rasjani opened this issue Sep 22, 2021 · 1 comment
Closed

pip install MarkupSafe broken on linux/aarch64 #247

rasjani opened this issue Sep 22, 2021 · 1 comment

Comments

@rasjani
Copy link

rasjani commented Sep 22, 2021

pip install MarkupSafe fails on Linux/aarch64 environment.

(venv) jenkins@xavier:~/tmp$ pip install MarkupSafe
Collecting MarkupSafe
  Using cached https://files.pythonhosted.org/packages/bf/10/ff66fea6d1788c458663a84d88787bae15d45daa16f6b3ef33322a51fc7e/MarkupSafe-2.0.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-5q7w2cqz/MarkupSafe/setup.py", line 61, in <module>
        run_setup(True)
      File "/tmp/pip-build-5q7w2cqz/MarkupSafe/setup.py", line 44, in run_setup
        ext_modules=ext_modules if with_binary else [],
      File "/home/jenkins/tmp/venv/lib/python3.7/site-packages/setuptools/__init__.py", line 129, in setup
        return distutils.core.setup(**attrs)
      File "/usr/lib/python3.7/distutils/core.py", line 121, in setup
        dist.parse_config_files()
      File "/home/jenkins/tmp/venv/lib/python3.7/site-packages/setuptools/dist.py", line 494, in parse_config_files
        ignore_option_errors=ignore_option_errors)
      File "/home/jenkins/tmp/venv/lib/python3.7/site-packages/setuptools/config.py", line 106, in parse_configuration
        meta.parse()
      File "/home/jenkins/tmp/venv/lib/python3.7/site-packages/setuptools/config.py", line 382, in parse
        section_parser_method(section_options)
      File "/home/jenkins/tmp/venv/lib/python3.7/site-packages/setuptools/config.py", line 355, in parse_section
        self[name] = value
      File "/home/jenkins/tmp/venv/lib/python3.7/site-packages/setuptools/config.py", line 173, in __setitem__
        value = parser(value)
      File "/home/jenkins/tmp/venv/lib/python3.7/site-packages/setuptools/config.py", line 430, in _parse_version
        version = self._parse_attr(value)
      File "/home/jenkins/tmp/venv/lib/python3.7/site-packages/setuptools/config.py", line 305, in _parse_attr
        module = import_module(module_name)
      File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
      File "<frozen importlib._bootstrap>", line 983, in _find_and_load
      File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
    ModuleNotFoundError: No module named 'markupsafe'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-5q7w2cqz/MarkupSafe/
(venv) jenkins@xavier:~/tmp$ uname -a
Linux xavier 4.9.140-tegra #1 SMP PREEMPT Thu Jun 25 21:22:12 PDT 2020 aarch64 aarch64 aarch64 GNU/Linux
(venv) jenkins@xavier:~/tmp$

Issue looks like its at least partly because source build is used, aka, not wheel and then the speedups c code isnt compiled.

Environment:

  • Python version: 3.7.5
  • MarkupSafe version: > 1.1.1
@davidism
Copy link
Member

We provide aarch64 wheels. If pip is downloading the sdist, then perhaps you need to update pip? You'll need a version that supports at least manylinux2010. https://pypi.org/project/MarkupSafe/2.0.1/#files

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 7, 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

2 participants