facebook/mariana-trench

failed to build flask-graphql graphql-server-core promise

Closed this issue · 4 comments

Ubuntu20.04 Python3.8.10

➜  ~ python3 -m venv mariana-trench                                         
➜  ~ source mariana-trench/bin/activate
(mariana-trench) ➜  ~ pip install mariana-trench
Collecting mariana-trench
  Using cached mariana_trench-1.0.1-py3-none-manylinux1_x86_64.whl (4.8 MB)
Collecting pyre-extensions
  Using cached pyre_extensions-0.0.23-py3-none-any.whl (11 kB)
Collecting fb-sapp
  Using cached fb_sapp-0.5.1-py3-none-any.whl (2.0 MB)
Collecting typing-extensions
  Using cached typing_extensions-4.0.0-py3-none-any.whl (22 kB)
Collecting typing-inspect
  Using cached typing_inspect-0.7.1-py3-none-any.whl (8.4 kB)
Collecting pygments
  Using cached Pygments-2.10.0-py3-none-any.whl (1.0 MB)
Collecting prompt-toolkit
  Using cached prompt_toolkit-3.0.22-py3-none-any.whl (374 kB)
Collecting graphene
  Using cached graphene-3.0-py2.py3-none-any.whl (112 kB)
Collecting flask-graphql
  Using cached Flask-GraphQL-2.0.1.tar.gz (6.1 kB)
Collecting ujson
  Using cached ujson-4.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (216 kB)
Collecting SQLAlchemy<1.4
  Using cached SQLAlchemy-1.3.24-cp38-cp38-manylinux2010_x86_64.whl (1.3 MB)
Collecting flask
  Using cached Flask-2.0.2-py3-none-any.whl (95 kB)
Collecting click
  Using cached click-8.0.3-py3-none-any.whl (97 kB)
Collecting flask-cors
  Using cached Flask_Cors-3.0.10-py2.py3-none-any.whl (14 kB)
Collecting traitlets
  Using cached traitlets-5.1.1-py3-none-any.whl (102 kB)
Collecting munch
  Using cached munch-2.5.0-py2.py3-none-any.whl (10 kB)
Collecting ipython
  Using cached ipython-7.29.0-py3-none-any.whl (790 kB)
Collecting click-log
  Using cached click_log-0.3.2-py2.py3-none-any.whl (4.6 kB)
Collecting graphene-sqlalchemy
  Using cached graphene_sqlalchemy-2.3.0-py2.py3-none-any.whl (38 kB)
Collecting xxhash
  Using cached xxhash-2.0.2-cp38-cp38-manylinux2010_x86_64.whl (243 kB)
Collecting mypy-extensions>=0.3.0
  Using cached mypy_extensions-0.4.3-py2.py3-none-any.whl (4.5 kB)
Collecting wcwidth
  Using cached wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
Collecting graphql-relay<4,>=3.0
  Using cached graphql_relay-3.1.0-py3-none-any.whl (16 kB)
Collecting graphql-core~=3.1.2
  Downloading graphql_core-3.1.6-py3-none-any.whl (189 kB)
     |████████████████████████████████| 189 kB 898 kB/s 
Collecting aniso8601<10,>=8
  Using cached aniso8601-9.0.1-py2.py3-none-any.whl (52 kB)
Collecting graphql-server-core<2,>=1.1
  Using cached graphql-server-core-1.2.0.tar.gz (7.0 kB)
Collecting itsdangerous>=2.0
  Using cached itsdangerous-2.0.1-py3-none-any.whl (18 kB)
Collecting Werkzeug>=2.0
  Using cached Werkzeug-2.0.2-py3-none-any.whl (288 kB)
Collecting Jinja2>=3.0
  Using cached Jinja2-3.0.3-py3-none-any.whl (133 kB)
Collecting Six
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting matplotlib-inline
  Using cached matplotlib_inline-0.1.3-py3-none-any.whl (8.2 kB)
Collecting decorator
  Using cached decorator-5.1.0-py3-none-any.whl (9.1 kB)
Collecting backcall
  Using cached backcall-0.2.0-py2.py3-none-any.whl (11 kB)
Collecting jedi>=0.16
  Using cached jedi-0.18.1-py2.py3-none-any.whl (1.6 MB)
Requirement already satisfied: setuptools>=18.5 in ./mariana-trench/lib/python3.8/site-packages (from ipython->fb-sapp->mariana-trench) (44.0.0)
Collecting pexpect>4.3; sys_platform != "win32"
  Using cached pexpect-4.8.0-py2.py3-none-any.whl (59 kB)
Collecting pickleshare
  Using cached pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB)
Collecting singledispatch<4,>=3.4.0.3
  Using cached singledispatch-3.7.0-py2.py3-none-any.whl (9.2 kB)
Collecting promise>=2.3
  Using cached promise-2.3.tar.gz (19 kB)
Collecting MarkupSafe>=2.0
  Using cached MarkupSafe-2.0.1-cp38-cp38-manylinux2010_x86_64.whl (30 kB)
Collecting parso<0.9.0,>=0.8.0
  Using cached parso-0.8.2-py2.py3-none-any.whl (94 kB)
Collecting ptyprocess>=0.5
  Using cached ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB)
Building wheels for collected packages: flask-graphql, graphql-server-core, promise
  Building wheel for flask-graphql (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/firmy/mariana-trench/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-n1qnas3n/flask-graphql/setup.py'"'"'; __file__='"'"'/tmp/pip-install-n1qnas3n/flask-graphql/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 /tmp/pip-wheel-k3xtjv3x
       cwd: /tmp/pip-install-n1qnas3n/flask-graphql/
  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 flask-graphql
  Running setup.py clean for flask-graphql
  Building wheel for graphql-server-core (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/firmy/mariana-trench/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-n1qnas3n/graphql-server-core/setup.py'"'"'; __file__='"'"'/tmp/pip-install-n1qnas3n/graphql-server-core/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 /tmp/pip-wheel-lr3nv8tm
       cwd: /tmp/pip-install-n1qnas3n/graphql-server-core/
  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 graphql-server-core
  Running setup.py clean for graphql-server-core
  Building wheel for promise (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/firmy/mariana-trench/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-n1qnas3n/promise/setup.py'"'"'; __file__='"'"'/tmp/pip-install-n1qnas3n/promise/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 /tmp/pip-wheel-w0vbeoy2
       cwd: /tmp/pip-install-n1qnas3n/promise/
  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 promise
  Running setup.py clean for promise
Failed to build flask-graphql graphql-server-core promise
ERROR: graphql-server-core 1.2.0 has requirement graphql-core<3,>=2.3, but you'll have graphql-core 3.1.6 which is incompatible.
ERROR: flask-graphql 2.0.1 has requirement graphql-core<3,>=2.1, but you'll have graphql-core 3.1.6 which is incompatible.
ERROR: graphene-sqlalchemy 2.3.0 has requirement graphene<3,>=2.1.3, but you'll have graphene 3.0 which is incompatible.
Installing collected packages: typing-extensions, mypy-extensions, typing-inspect, pyre-extensions, pygments, wcwidth, prompt-toolkit, graphql-core, graphql-relay, aniso8601, graphene, itsdangerous, Werkzeug, MarkupSafe, Jinja2, click, flask, Six, promise, graphql-server-core, flask-graphql, ujson, SQLAlchemy, flask-cors, traitlets, munch, matplotlib-inline, decorator, backcall, parso, jedi, ptyprocess, pexpect, pickleshare, ipython, click-log, singledispatch, graphene-sqlalchemy, xxhash, fb-sapp, mariana-trench
    Running setup.py install for promise ... done
    Running setup.py install for graphql-server-core ... done
    Running setup.py install for flask-graphql ... done
Successfully installed Jinja2-3.0.3 MarkupSafe-2.0.1 SQLAlchemy-1.3.24 Six-1.16.0 Werkzeug-2.0.2 aniso8601-9.0.1 backcall-0.2.0 click-8.0.3 click-log-0.3.2 decorator-5.1.0 fb-sapp-0.5.1 flask-2.0.2 flask-cors-3.0.10 flask-graphql-2.0.1 graphene-3.0 graphene-sqlalchemy-2.3.0 graphql-core-3.1.6 graphql-relay-3.1.0 graphql-server-core-1.2.0 ipython-7.29.0 itsdangerous-2.0.1 jedi-0.18.1 mariana-trench-1.0.1 matplotlib-inline-0.1.3 munch-2.5.0 mypy-extensions-0.4.3 parso-0.8.2 pexpect-4.8.0 pickleshare-0.7.5 promise-2.3 prompt-toolkit-3.0.22 ptyprocess-0.7.0 pygments-2.10.0 pyre-extensions-0.0.23 singledispatch-3.7.0 traitlets-5.1.1 typing-extensions-4.0.0 typing-inspect-0.7.1 ujson-4.2.0 wcwidth-0.2.5 xxhash-2.0.2

It seems that wheel package is not installed, maybe try pip install wheel first?

version incompatible

RROR: graphql-server-core 1.2.0 has requirement graphql-core<3,>=2.3, but you'll have graphql-core 3.1.7 which is incompatible.
ERROR: flask-graphql 2.0.1 has requirement graphql-core<3,>=2.1, but you'll have graphql-core 3.1.7 which is incompatible.
ERROR: graphene-sqlalchemy 2.3.0 has requirement graphene<3,>=2.1.3, but you'll have graphene 3.0 which is incompatible.

There're some dependencies issues in fb-app. As a workaround, I just install those packages manually BEFORE running pip install mariana-trench.

Thanks! After some attempts, I can install successfully like this, avoiding version conflicts. This issue is just to tell developers that it may be possible to update dependencies to newer versions.

$ python3 -m venv mariana-trench
$ source mariana-trench/bin/activate
$ python3 -m pip install mariana-trench "graphene<3"
$ deactivate