fohrloop / dash-uploader

The alternative upload component for python Dash applications.
MIT License
141 stars 29 forks source link

[BUG] v0.2.2 pip install error #2

Closed MM-Lehmann closed 4 years ago

MM-Lehmann commented 4 years ago

0.2.2 cannot be installed via pip:

ERROR: Command errored out with exit status 1:
     command: /home/user/PycharmProjects/columbus/venv3.8/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ea6fq8dy/dash-uploader/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ea6fq8dy/dash-uploader/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-install-ea6fq8dy/dash-uploader/pip-egg-info
         cwd: /tmp/pip-install-ea6fq8dy/dash-uploader/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-ea6fq8dy/dash-uploader/setup.py", line 8, in <module>
        with open('docs/README-PyPi.md', encoding='utf-8') as f:
    FileNotFoundError: [Errno 2] No such file or directory: 'docs/README-PyPi.md'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

it seems the README-PyPi.md is missing from the package

thepycoder commented 4 years ago

I have the same issue. A workaround is cloning the repository and running python setup.py install

This same setup.py is the one that refers to the 'docs/README-PyPi.md' which triggers the error.

fohrloop commented 4 years ago

Thanks for reporting! I will fix it when I get back on my computer. The 0.2.0 version is identical to 0.2 2. and should be working with pip. The only difference in 0.2.1 and 0.2.2. is that I included documentation for PyPi, and those needed version bumps (can not update readme on PyPi without changing the package version. How convenient..)

fohrloop commented 4 years ago

Fixed in v. 0.2.3 (https://github.com/np-8/dash-uploader/commit/029aa557db2b068f2f545f3f7687144a944c12cb). The docs/README-PyPi.md was missing from the MANIFEST.in.

(oh, cool, didn't know that including the github url in the commit actually closes the issue automatically)