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

Pip installation fails on travis #807

Closed
steveoh opened this issue Oct 6, 2020 · 3 comments
Closed

Pip installation fails on travis #807

steveoh opened this issue Oct 6, 2020 · 3 comments
Assignees
Labels

Comments

@steveoh
Copy link

steveoh commented Oct 6, 2020

Describe the bug

Cannot use arcgis package in travis ci

To Reproduce

run a travis ci job that imports arcgis

error:

Collecting arcgis==1.8
  Downloading arcgis-1.8.0.tar.gz (1.9 MB)
    ERROR: Command errored out with exit status 1:
     command: /home/travis/virtualenv/python3.6.7/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-2ttyv3zw/arcgis/setup.py'"'"'; __file__='"'"'/tmp/pip-install-2ttyv3zw/arcgis/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 /tmp/pip-pip-egg-info-b5s7l09z
         cwd: /tmp/pip-install-2ttyv3zw/arcgis/
    Complete output (7 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-2ttyv3zw/arcgis/setup.py", line 151, in <module>
        [(_get_rel_site_packages_dir() + "arcgis/gis/_impl", [
      File "/tmp/pip-install-2ttyv3zw/arcgis/setup.py", line 27, in _get_rel_site_packages_dir
        for sitepackages in site.getsitepackages():
    AttributeError: module 'site' has no attribute 'getsitepackages'

Expected behavior

I expect arcgis to install correctly as it does with pip on osx or windows

@sandeepgadhwal
Copy link

Related to pypa/virtualenv#737 pypa/pipenv#3824

@sandeepgadhwal
Copy link

@priyankatuteja @steveoh

The problem is in the default environment. You can use something like this to create a new virtual environment and run tests

https://github.com/sandeepgadhwal/travis_arcgis_test

@priyankatuteja
Copy link
Collaborator

@sandeepgadhwal Thanks! @steveoh Please try the steps and let us know if you still face it.

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

No branches or pull requests

3 participants