mazelib: Unable to install with PIP

Every single time i try to install mazelib I get this error:


  ERROR: Failed building wheel for numpy
  ERROR: Command errored out with exit status 1:
   command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-x7r47qyy/numpy/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-x7r47qyy/numpy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' clean --all
       cwd: /tmp/pip-wheel-x7r47qyy/numpy
  Complete output (10 lines):
  Running from numpy source directory.

  `setup.py clean` is not supported, use one of the following instead:

    - `git clean -xdf` (cleans all files)
    - `git clean -Xdf` (cleans all versioned files, doesn't touch
                        files that aren't checked into the git repo)

  Add `--force` to your command to use it anyway if you must (unsupported).

  ----------------------------------------
  ERROR: Failed cleaning build dir for numpy
ERROR: Failed to build one or more wheels
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/setuptools/installer.py", line 128, in fetch_build_egg
    subprocess.check_call(cmd)
  File "/usr/local/lib/python3.9/subprocess.py", line 372, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/local/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp3z9slaw0', '--quiet', 'numpy<=1.16.4,>=1.13.1']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-5rn16r9y/mazelib/setup.py", line 60, in <module>
    setup(
  File "/usr/local/lib/python3.9/site-packages/setuptools/__init__.py", line 143, in setup
    _install_setup_requires(attrs)
  File "/usr/local/lib/python3.9/site-packages/setuptools/__init__.py", line 138, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "/usr/local/lib/python3.9/site-packages/setuptools/dist.py", line 718, in fetch_build_eggs
    resolved_dists = pkg_resources.working_set.resolve(
  File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 781, in resolve
    dist = best[req.key] = env.best_match(
  File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1066, in best_match
    return self.obtain(req, installer)
  File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1078, in obtain
    return installer(requirement)
  File "/usr/local/lib/python3.9/site-packages/setuptools/dist.py", line 777, in fetch_build_egg
    return fetch_build_egg(self, req)
  File "/usr/local/lib/python3.9/site-packages/setuptools/installer.py", line 130, in fetch_build_egg
    raise DistutilsError(str(e))
distutils.errors.DistutilsError: Command '['/usr/local/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp3z9slaw0', '--quiet', 'numpy<=1.16.4,>=1.13.1']' returned non-zero exit status 1.
----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

It is preceded with a big chunk of gcc debug information. Impossible to paste everything here. I used the default docker Python image to assure it can be reproduced. Just get a shell inside the running image and run:

> pip install Cython (flawless)
> pip install NumPy (flawless)
> pip install mazelib (error)

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

Perfect, all working now.

Thank you so much.

Take care,

Chris Norman

On Mon, 8 Mar 2021 at 20:23, John Stilley notifications@github.com wrote:

@chrisnorman7 https://github.com/chrisnorman7 And thus continues my love/hate relationship with PyPI. I have removed the 0.9.10 release from PyPI entirely because it decided that it would only allow the latest version of mazelib to be installed up to Python v3.9.0, and would NOT allow v3.9.1. So… that’s idiotic.

I have fixed it, and we now have a mazelib version 0.9.11 which PyPI should stop complaining about.

My suggestion to you:

pip uninstall -y mazelib pip uninstall -y mazelib pip uninstall -y mazelib pip install --no-cache-dir mazelib==0.9.11

I tried this with Python 3.9.2 and it worked fine (on Linux and MacOS) using PIP version 21.0.1.

Sorry for the hassle, John

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/theJollySin/mazelib/issues/104#issuecomment-793049874, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBUZ2NUUIQES7FIU4D5ABTTCUW53ANCNFSM4K3OUEPQ .