Unable to install Flask-Mongoengine

Test Bot onlinejudge95 at gmail.com
Sun Dec 15 03:13:17 EST 2019


Hi Guys,

I am unable to install *Flask-Mongoengine* using pip. Here are my
specifications

1. *OS* => OSX 10.14.6
2. *Python* => Python 3.8.0 (Working in a virtualenv)
3. *Dependency Manager* => pip(19.3.1), setuptools(42.0.2)
3. *Flask-Mongoengine* => flask-mongoengine==0.9.5

I am inside my virtualenv and trying to install flask-mongoengine using

> (env) $ pip install flask-mongoengine==0.9.5


Here is my error

>  distutils.errors.DistutilsError: Command
> '['/Users/onlinejudge95/Workspace/GitHub/alma-serv/env/bin/python', '-m',
> 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w',
> '/var/folders/r7/pgqw605n55x5f9018rp72hsm0000gn/T/tmpgrvp80jd', '--quiet',
> 'rednose']' returned non-zero exit status 1.


Please Find attached my full error log.

I am on a new system in which i installed python through the mac installer
from python.org, i had run the *Install Certificates.command* for SSL
related issues, if it might be of help.

In case there is a more specific mailing list to redirect to, please let me
know.

Thanks,
onlinejudge95
-------------- next part --------------
(env) $ pip install flask-mongoengine
Collecting flask-mongoengine
  Using cached https://files.pythonhosted.org/packages/20/53/1bb8ad34ad5c2047a11651290325e55086bc18fce7cfdbbe6f5522bd0ae5/flask-mongoengine-0.9.5.tar.gz
    ERROR: Command errored out with exit status 1:
     command: /Users/onlinejudge95/Workspace/GitHub/alma-serv/env/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/r7/pgqw605n55x5f9018rp72hsm0000gn/T/pip-install-73496mgp/flask-mongoengine/setup.py'"'"'; __file__='"'"'/private/var/folders/r7/pgqw605n55x5f9018rp72hsm0000gn/T/pip-install-73496mgp/flask-mongoengine/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 /private/var/folders/r7/pgqw605n55x5f9018rp72hsm0000gn/T/pip-install-73496mgp/flask-mongoengine/pip-egg-info
         cwd: /private/var/folders/r7/pgqw605n55x5f9018rp72hsm0000gn/T/pip-install-73496mgp/flask-mongoengine/
    Complete output (44 lines):
    WARNING: The wheel package is not available.
      ERROR: Command errored out with exit status 1:
       command: /Users/onlinejudge95/Workspace/GitHub/alma-serv/env/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/r7/pgqw605n55x5f9018rp72hsm0000gn/T/pip-wheel-z44wznx3/rednose/setup.py'"'"'; __file__='"'"'/private/var/folders/r7/pgqw605n55x5f9018rp72hsm0000gn/T/pip-wheel-z44wznx3/rednose/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/r7/pgqw605n55x5f9018rp72hsm0000gn/T/pip-wheel-qz9lk008
           cwd: /private/var/folders/r7/pgqw605n55x5f9018rp72hsm0000gn/T/pip-wheel-z44wznx3/rednose/
      Complete output (6 lines):
      usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
         or: setup.py --help [cmd1 cmd2 ...]
         or: setup.py --help-commands
         or: setup.py cmd --help
    
      error: invalid command 'bdist_wheel'
      ----------------------------------------
      ERROR: Failed building wheel for rednose
    ERROR: Failed to build one or more wheels
    Traceback (most recent call last):
      File "/Users/onlinejudge95/Workspace/GitHub/alma-serv/env/lib/python3.8/site-packages/setuptools/installer.py", line 128, in fetch_build_egg
        subprocess.check_call(cmd)
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 364, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['/Users/onlinejudge95/Workspace/GitHub/alma-serv/env/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/var/folders/r7/pgqw605n55x5f9018rp72hsm0000gn/T/tmpjzg2lnoc', '--quiet', 'rednose']' 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 "/private/var/folders/r7/pgqw605n55x5f9018rp72hsm0000gn/T/pip-install-73496mgp/flask-mongoengine/setup.py", line 36, in <module>
        setup(
      File "/Users/onlinejudge95/Workspace/GitHub/alma-serv/env/lib/python3.8/site-packages/setuptools/__init__.py", line 144, in setup
        _install_setup_requires(attrs)
      File "/Users/onlinejudge95/Workspace/GitHub/alma-serv/env/lib/python3.8/site-packages/setuptools/__init__.py", line 139, in _install_setup_requires
        dist.fetch_build_eggs(dist.setup_requires)
      File "/Users/onlinejudge95/Workspace/GitHub/alma-serv/env/lib/python3.8/site-packages/setuptools/dist.py", line 718, in fetch_build_eggs
        resolved_dists = pkg_resources.working_set.resolve(
      File "/Users/onlinejudge95/Workspace/GitHub/alma-serv/env/lib/python3.8/site-packages/pkg_resources/__init__.py", line 780, in resolve
        dist = best[req.key] = env.best_match(
      File "/Users/onlinejudge95/Workspace/GitHub/alma-serv/env/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1065, in best_match
        return self.obtain(req, installer)
      File "/Users/onlinejudge95/Workspace/GitHub/alma-serv/env/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1077, in obtain
        return installer(requirement)
      File "/Users/onlinejudge95/Workspace/GitHub/alma-serv/env/lib/python3.8/site-packages/setuptools/dist.py", line 777, in fetch_build_egg
        return fetch_build_egg(self, req)
      File "/Users/onlinejudge95/Workspace/GitHub/alma-serv/env/lib/python3.8/site-packages/setuptools/installer.py", line 130, in fetch_build_egg
        raise DistutilsError(str(e))
    distutils.errors.DistutilsError: Command '['/Users/onlinejudge95/Workspace/GitHub/alma-serv/env/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/var/folders/r7/pgqw605n55x5f9018rp72hsm0000gn/T/tmpjzg2lnoc', '--quiet', 'rednose']' 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.


More information about the Python-list mailing list