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

Cannot install pytest due to "your setuptools is too old (<12)" loop #137

Closed
fniephaus opened this issue Jun 2, 2020 · 1 comment
Closed

Comments

@fniephaus
Copy link
Member

When I run graalpython -m ginstall install pytest on GraalVM CE 20.1 and macOS Catalina, I get the following endless loop because "your setuptools is too old (<12)":

$ graalpython -m ginstall install pytest
Please note: This Python implementation is in the very early stages, and can run little more than basic benchmarks at this point.
Installing required dependency: pytest ...
Installing required dependency: pluggy ...
Installing required dependency: zipp ...
Installing required dependency: setuptools_scm ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   229  100   229    0     0   3225      0 --:--:-- --:--:-- --:--:--  3180
100  198k  100  198k    0     0  1479k      0 --:--:-- --:--:-- --:--:-- 1479k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 23677  100 23677    0     0   222k      0 --:--:-- --:--:-- --:--:--  222k
+ tar xzf /var/folders/kl/61lthj911kqg09j5yl039d7h0000gn/T/tmpfpvg47pz/setuptools_scm-1.15.0.tar.gz -C /var/folders/kl/61lthj911kqg09j5yl039d7h0000gn/T/tmpfpvg47pz
+ cd /var/folders/kl/61lthj911kqg09j5yl039d7h0000gn/T/tmpfpvg47pz/setuptools_scm-1.15.0; CFLAGS="-v "  /Users/fniephaus/bin/graalvm-ce-java11-20.1.0/Contents/Home/languages/python/bin/graalpython setup.py install --user
Please note: This Python implementation is in the very early stages, and can run little more than basic benchmarks at this point.
your setuptools is too old (<12)
setuptools_scm functionality is degraded
running install
running bdist_egg
running egg_info
writing setuptools_scm.egg-info/PKG-INFO
writing dependency_links to setuptools_scm.egg-info/dependency_links.txt
writing entry points to setuptools_scm.egg-info/entry_points.txt
writing top-level names to setuptools_scm.egg-info/top_level.txt
reading manifest file 'setuptools_scm.egg-info/SOURCES.txt'
writing manifest file 'setuptools_scm.egg-info/SOURCES.txt'
installing library code to build/bdist.darwin-10.15.5-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/setuptools_scm
copying setuptools_scm/git.py -> build/lib/setuptools_scm
copying setuptools_scm/version.py -> build/lib/setuptools_scm
copying setuptools_scm/discover.py -> build/lib/setuptools_scm
copying setuptools_scm/__init__.py -> build/lib/setuptools_scm
copying setuptools_scm/integration.py -> build/lib/setuptools_scm
copying setuptools_scm/utils.py -> build/lib/setuptools_scm
copying setuptools_scm/hg.py -> build/lib/setuptools_scm
copying setuptools_scm/__main__.py -> build/lib/setuptools_scm
copying setuptools_scm/hacks.py -> build/lib/setuptools_scm
warning: build_py: byte-compiling is disabled, skipping.

creating build/bdist.darwin-10.15.5-x86_64
creating build/bdist.darwin-10.15.5-x86_64/egg
creating build/bdist.darwin-10.15.5-x86_64/egg/setuptools_scm
copying build/lib/setuptools_scm/git.py -> build/bdist.darwin-10.15.5-x86_64/egg/setuptools_scm
copying build/lib/setuptools_scm/version.py -> build/bdist.darwin-10.15.5-x86_64/egg/setuptools_scm
copying build/lib/setuptools_scm/discover.py -> build/bdist.darwin-10.15.5-x86_64/egg/setuptools_scm
copying build/lib/setuptools_scm/__init__.py -> build/bdist.darwin-10.15.5-x86_64/egg/setuptools_scm
copying build/lib/setuptools_scm/integration.py -> build/bdist.darwin-10.15.5-x86_64/egg/setuptools_scm
copying build/lib/setuptools_scm/utils.py -> build/bdist.darwin-10.15.5-x86_64/egg/setuptools_scm
copying build/lib/setuptools_scm/hg.py -> build/bdist.darwin-10.15.5-x86_64/egg/setuptools_scm
copying build/lib/setuptools_scm/__main__.py -> build/bdist.darwin-10.15.5-x86_64/egg/setuptools_scm
copying build/lib/setuptools_scm/hacks.py -> build/bdist.darwin-10.15.5-x86_64/egg/setuptools_scm
warning: install_lib: byte-compiling is disabled, skipping.

creating build/bdist.darwin-10.15.5-x86_64/egg/EGG-INFO
copying setuptools_scm.egg-info/PKG-INFO -> build/bdist.darwin-10.15.5-x86_64/egg/EGG-INFO
copying setuptools_scm.egg-info/SOURCES.txt -> build/bdist.darwin-10.15.5-x86_64/egg/EGG-INFO
copying setuptools_scm.egg-info/dependency_links.txt -> build/bdist.darwin-10.15.5-x86_64/egg/EGG-INFO
copying setuptools_scm.egg-info/entry_points.txt -> build/bdist.darwin-10.15.5-x86_64/egg/EGG-INFO
copying setuptools_scm.egg-info/top_level.txt -> build/bdist.darwin-10.15.5-x86_64/egg/EGG-INFO
copying setuptools_scm.egg-info/zip-safe -> build/bdist.darwin-10.15.5-x86_64/egg/EGG-INFO
creating dist
creating 'dist/setuptools_scm-1.15.0-py3.8.egg' and adding 'build/bdist.darwin-10.15.5-x86_64/egg' to it
removing 'build/bdist.darwin-10.15.5-x86_64/egg' (and everything under it)
Processing setuptools_scm-1.15.0-py3.8.egg
Copying setuptools_scm-1.15.0-py3.8.egg to /Users/fniephaus/.local/lib/python3.8/site-packages
Adding setuptools-scm 1.15.0 to easy-install.pth file

Installed /Users/fniephaus/.local/lib/python3.8/site-packages/setuptools_scm-1.15.0-py3.8.egg
Processing dependencies for setuptools-scm==1.15.0
Finished processing dependencies for setuptools-scm==1.15.0
setuptools_scm installed successfully
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 31762  100 31762    0     0   337k      0 --:--:-- --:--:-- --:--:--  337k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10926  100 10926    0     0   150k      0 --:--:-- --:--:-- --:--:--  148k
+ tar xzf /var/folders/kl/61lthj911kqg09j5yl039d7h0000gn/T/tmpp95x5vzv/zipp-0.5.0.tar.gz -C /var/folders/kl/61lthj911kqg09j5yl039d7h0000gn/T/tmpp95x5vzv
+ cd /var/folders/kl/61lthj911kqg09j5yl039d7h0000gn/T/tmpp95x5vzv/zipp-0.5.0; CFLAGS="-v "  /Users/fniephaus/bin/graalvm-ce-java11-20.1.0/Contents/Home/languages/python/bin/graalpython setup.py install --user
Please note: This Python implementation is in the very early stages, and can run little more than basic benchmarks at this point.
your setuptools is too old (<12)
...

/cc @tmillich @TheoRadig

@fniephaus
Copy link
Member Author

We forgot to create and use a virtual env as suggested by the user docs:
https://www.graalvm.org/docs/Python/user/PACKAGES

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant