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 install fails #1

Open
raalesir opened this issue Mar 18, 2020 · 0 comments
Open

pip install fails #1

raalesir opened this issue Mar 18, 2020 · 0 comments

Comments

@raalesir
Copy link

Hello,

The pip install fails.

Creating virtual environment:

❯ python --version                                                                                                               
Python 3.7.6
❯ python3 -m venv hack

From the activated venv:

 ❯ pip3 install SLAZTA                                                                                                                      [19:33:53]
Collecting SLAZTA
  Using cached https://files.pythonhosted.org/packages/7e/3e/1136e2407e00e64b68cef14d86e379ee06c68dd0afb4dc1f2cbdfd00e7f5/SLAZTA-0.42.zip
    ERROR: Command errored out with exit status 1:
     command: /Users/alexey/Documents/projects/kultgeo_hackathon/hack/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/zr/t79_wh252w1d3vc6snt72_lh0000gn/T/pip-install-fml0eko9/SLAZTA/setup.py'"'"'; __file__='"'"'/private/var/folders/zr/t79_wh252w1d3vc6snt72_lh0000gn/T/pip-install-fml0eko9/SLAZTA/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 pip-egg-info
         cwd: /private/var/folders/zr/t79_wh252w1d3vc6snt72_lh0000gn/T/pip-install-fml0eko9/SLAZTA/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/zr/t79_wh252w1d3vc6snt72_lh0000gn/T/pip-install-fml0eko9/SLAZTA/setup.py", line 12, in <module>
        long_description=open('README.rst').read(),
    FileNotFoundError: [Errno 2] No such file or directory: 'README.rst'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

The reason: README.rst is not present.

1 from distutils.core import setup
  2
  3 setup(
  4     name='SLAZTA',
  5     version='0.42',
  6     author="Ash Munro",
  7     author_email="anne.munro@canada.com",
  8     packages=['SLAZTA',],
  9     license='MIT License',
 10     url='https://github.com/CSBP-CPSE/SLA-ZTA/',
 11     description = 'SLAZTA is a tool to create self-contained areas from commuting data.',
 12     long_description=open('README.rst').read(),
 13     long_description_content_type='text/x-rst'
 14 )

Also please suggest to adapt to Python3. For instance the print statements.

43 def printTime():
44     global timeSaved
45     t = time.time() - timeSaved
46     timeSaved = time.time()
47     print t

Best, Alexey

@raalesir raalesir changed the title pip install failes pip install fails Mar 18, 2020
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