graphql-python / graphene-sqlalchemy

Graphene SQLAlchemy integration
http://docs.graphene-python.org/projects/sqlalchemy/en/latest/
MIT License
980 stars 226 forks source link

tox fails py36-sql12, py36-sql13, py36-sql14 #334

Closed conao3 closed 2 years ago

conao3 commented 2 years ago

Thanks for great project!

I want to contribute this project and I try to create local development environment. I'm facing below error, could anyone help me?

error log

$ tox
pre-commit installed: aiodataloader==0.2.1,aniso8601==9.0.1,aspy.yaml==1.3.0,cfgv==3.3.1,distlib==0.3.4,entrypoints==0.3,filelock==3.6.0,flake8==3.7.9,graphene==3.0,graphene-sqlalchemy @ file:///home/conao/dev/forks/graphene-sqlalchemy,graphql-core==3.1.7,graphql-relay==3.1.5,greenlet==1.1.2,identify==2.4.11,importlib-metadata==4.11.2,mccabe==0.6.1,nodeenv==1.6.0,platformdirs==2.5.1,pluggy==0.13.1,pre-commit==1.14.4,promise==2.3,py==1.11.0,pycodestyle==2.5.0,pyflakes==2.1.1,PyYAML==6.0,six==1.16.0,SQLAlchemy==1.4.32,toml==0.10.2,tox==3.7.0,virtualenv==20.13.2,zipp==3.7.0
pre-commit run-test-pre: PYTHONHASHSEED='3313502681'
pre-commit runtests: commands[0] | pre-commit run --all-files
Check for merge conflicts................................................Passed
Check Yaml...............................................................Passed
Debug Statements (Python)................................................Passed
Fix End of Files.........................................................Passed
Trim Trailing Whitespace.................................................Passed
flake8...................................................................Passed
seed isort known_third_party.............................................Passed
isort....................................................................Passed
py36-sql12 create: /home/conao/dev/forks/graphene-sqlalchemy/.tox/py36-sql12
py36-sql12 installdeps: .[test], sqlalchemy>=1.2,<1.3
ERROR: invocation failed (exit code -11), logfile: /home/conao/dev/forks/graphene-sqlalchemy/.tox/py36-sql12/log/py36-sql12-1.log
ERROR: actionid: py36-sql12
msg: getenv
cmdargs: "/home/conao/dev/forks/graphene-sqlalchemy/.tox/py36-sql12/bin/python -m pip install '.[test]' 'sqlalchemy>=1.2,<1.3'"

ERROR: could not install deps [.[test], sqlalchemy>=1.2,<1.3]; v = InvocationError('/home/conao/dev/forks/graphene-sqlalchemy/.tox/py36-sql12/bin/python -m pip install .[test] sqlalchemy>=1.2,<1.3 (see /home/conao/dev/forks/graphene-sqlalchemy/.tox/py36-sql12/log/py36-sql12-1.log)', -11)

...

____________________________________________________________ summary _____________________________________________________________
  pre-commit: commands succeeded
ERROR:   py36-sql12: could not install deps [.[test], sqlalchemy>=1.2,<1.3]; v = InvocationError('/home/conao/dev/forks/graphene-sqlalchemy/.tox/py36-sql12/bin/python -m pip install .[test] sqlalchemy>=1.2,<1.3 (see /home/conao/dev/forks/graphene-sqlalchemy/.tox/py36-sql12/log/py36-sql12-1.log)', -11)
ERROR:   py36-sql13: could not install deps [.[test], sqlalchemy>=1.3,<1.4]; v = InvocationError('/home/conao/dev/forks/graphene-sqlalchemy/.tox/py36-sql13/bin/python -m pip install .[test] sqlalchemy>=1.3,<1.4 (see /home/conao/dev/forks/graphene-sqlalchemy/.tox/py36-sql13/log/py36-sql13-1.log)', -11)
ERROR:   py36-sql14: could not install deps [.[test], sqlalchemy>=1.4,<1.5]; v = InvocationError('/home/conao/dev/forks/graphene-sqlalchemy/.tox/py36-sql14/bin/python -m pip install .[test] sqlalchemy>=1.4,<1.5 (see /home/conao/dev/forks/graphene-sqlalchemy/.tox/py36-sql14/log/py36-sql14-1.log)', -11)
  py37-sql12: commands succeeded
  py37-sql13: commands succeeded
  py37-sql14: commands succeeded
  py38-sql12: commands succeeded
  py38-sql13: commands succeeded
  py38-sql14: commands succeeded
  py39-sql12: commands succeeded
  py39-sql13: commands succeeded
  py39-sql14: commands succeeded

log file

$ cat /home/conao/dev/forks/graphene-sqlalchemy/.tox/py36-sql12/log/py36-sql12-1.log
actionid: py36-sql12
msg: getenv
cmdargs: "/home/conao/dev/forks/graphene-sqlalchemy/.tox/py36-sql12/bin/python -m pip install '.[test]' 'sqlalchemy>=1.2,<1.3'"

$ cat /home/conao/dev/forks/graphene-sqlalchemy/.tox/py36-sql13/log/py36-sql13-1.log
actionid: py36-sql13
msg: getenv
cmdargs: "/home/conao/dev/forks/graphene-sqlalchemy/.tox/py36-sql13/bin/python -m pip install '.[test]' 'sqlalchemy>=1.3,<1.4'"

$ cat /home/conao/dev/forks/graphene-sqlalchemy/.tox/py36-sql14/log/py36-sql14-1.log
actionid: py36-sql14
msg: getenv
cmdargs: "/home/conao/dev/forks/graphene-sqlalchemy/.tox/py36-sql14/bin/python -m pip install '.[test]' 'sqlalchemy>=1.4,<1.5'"
erikwrede commented 2 years ago

Hey, have you been able to find a fix to this problem?

flipbit03 commented 2 years ago

I was able to get it running in all environments. Are you by change using pyenv? Sometimes tox gets confused and fails to use the correct python version because of pyenv. I had that problem

conao3 commented 2 years ago

the environment is located on the different location so I cannot check the environment. Close at this time, I'll open this issue I can confirm issue. Thanks both!

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related topics referencing this issue.