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

the .rst files don't get installed when installing with pip #134

Closed
brianmaissy opened this issue Mar 24, 2019 · 6 comments
Closed

the .rst files don't get installed when installing with pip #134

brianmaissy opened this issue Mar 24, 2019 · 6 comments

Comments

@brianmaissy
Copy link
Contributor

env/lib/python3.6/site-packages/deepdiff/__init__.py:9: in <module>
    from .diff import DeepDiff
env/lib/python3.6/site-packages/deepdiff/diff.py:30: in <module>
    from deepdiff.deephash import DeepHash
env/lib/python3.6/site-packages/deepdiff/deephash.py:49: in <module>
    with open(os.path.join(current_dir, 'deephash_doc.rst'), 'r') as doc_file:
E   FileNotFoundError: [Errno 2] No such file or directory: '/opt/atlassian/pipelines/agent/build/env/lib/python3.6/site-packages/deepdiff/deephash_doc.rst'
ll ~/.local/lib/python3.6/site-packages/deepdiff
drwxrwxr-x   3 user user  4096 Mar 24 10:27 ./           
drwx------ 574 user user 36864 Mar 24 10:27 ../          
-rw-rw-r--   1 user user  1513 Mar 24 10:27 base.py      
-rw-rw-r--   1 user user 12721 Mar 24 10:27 deephash.py  
-rw-rw-r--   1 user user 28475 Mar 24 10:27 diff.py      
-rw-rw-r--   1 user user  4948 Mar 24 10:27 helper.py    
-rw-rw-r--   1 user user   338 Mar 24 10:27 __init__.py  
-rw-rw-r--   1 user user 26502 Mar 24 10:27 model.py     
drwxrwxr-x   2 user user  4096 Mar 24 10:27 __pycache__/ 
-rw-rw-r--   1 user user 11131 Mar 24 10:27 search.py    
@jeshan
Copy link

jeshan commented Mar 24, 2019

Correct. The PyPI package becomes unusable.

with latest:
docker run --rm python:3.7-alpine sh -c "pip install deepdiff && python -c 'from deepdiff import DeepDiff'"

Collecting deepdiff
  Downloading https://files.pythonhosted.org/packages/44/7d/e66ff9f515e6511a983aedd5c2c49545b4d100ce6f2f8e932d39e87d0743/deepdiff-4.0.1-py3-none-any.whl
Collecting jsonpickle>=1.0 (from deepdiff)
  Downloading https://files.pythonhosted.org/packages/dc/12/8c44eabb501e2bc0aec0dd152b328074d98a50968d3a02be28f6037f0c6a/jsonpickle-1.1-py2.py3-none-any.whl
Collecting ordered-set>=3.1 (from deepdiff)
  Downloading https://files.pythonhosted.org/packages/79/16/1f9daee477b04a95146fd0933e3c8af1d47804ae901234ea0228db49fa88/ordered_set-3.1-py2.py3-none-any.whl
Installing collected packages: jsonpickle, ordered-set, deepdiff
Successfully installed deepdiff-4.0.1 jsonpickle-1.1 ordered-set-3.1
You are using pip version 18.1, however version 19.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Can not find Murmur3 hashing installed. Switching to SHA256 as the default hash. Refer to https://github.com/seperman/deepdiff#murmur3 for more info.
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python3.7/site-packages/deepdiff/__init__.py", line 9, in <module>
    from .diff import DeepDiff
  File "/usr/local/lib/python3.7/site-packages/deepdiff/diff.py", line 30, in <module>
    from deepdiff.deephash import DeepHash
  File "/usr/local/lib/python3.7/site-packages/deepdiff/deephash.py", line 49, in <module>
    with open(os.path.join(current_dir, 'deephash_doc.rst'), 'r') as doc_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/site-packages/deepdiff/deephash_doc.rst'

with 3.3.0:
docker run --rm python:3.7-alpine sh -c "pip install deepdiff==3.3.0 && python -c 'from deepdiff import DeepDiff'"

Collecting deepdiff==3.3.0
  Downloading https://files.pythonhosted.org/packages/50/0b/87df7f45ce7dc02aa576458ffdf146f0b350d541fce373a91e8a81751deb/deepdiff-3.3.0-py3-none-any.whl
Collecting jsonpickle (from deepdiff==3.3.0)
  Downloading https://files.pythonhosted.org/packages/dc/12/8c44eabb501e2bc0aec0dd152b328074d98a50968d3a02be28f6037f0c6a/jsonpickle-1.1-py2.py3-none-any.whl
Installing collected packages: jsonpickle, deepdiff
Successfully installed deepdiff-3.3.0 jsonpickle-1.1
You are using pip version 18.1, however version 19.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

@coldino
Copy link

coldino commented Mar 24, 2019

...and 4.0.0 was removed :(

@colincadams
Copy link

colincadams commented Mar 24, 2019

we had to work around it by doing an editable install of 4.0.0 from github:

deepdiff = {ref = "refs/tags/4.0.0",git = "https://github.com/seperman/deepdiff.git",editable = true}  # https://github.com/seperman/deepdiff/issues/134

@seperman
Copy link
Owner

Thanks for reporting. Fixing it right now.

@seperman
Copy link
Owner

#135

@seperman
Copy link
Owner

DeepDiff 4.0.2 is released and 4.0.1 is removed.
https://pypi.org/project/deepdiff/

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

5 participants