ndexbio / ndex-python

NDEx Python Client v3.1 - Superseded by the NDEx2 Client v1.0
2 stars 6 forks source link

Installation error #2

Closed cthoyt closed 7 years ago

cthoyt commented 7 years ago
Collecting ndex
  Using cached ndex-3.0.11.11.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/n1/h1c266qj2jq8kfdzfxj53pzw0000gn/T/pip-build-p6abuec2/ndex/setup.py", line 16, in <module>
        with open(path.join(here, 'README.md'), encoding='utf-8') as f:
      File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/codecs.py", line 895, in open
        file = builtins.open(filename, mode, buffering)
    FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/n1/h1c266qj2jq8kfdzfxj53pzw0000gn/T/pip-build-p6abuec2/ndex/README.md'

I think you need to add a MANIFEST.in file (try pip install check-manifest, run check-manifest in the directory and check its suggestions) and also add include_package_data=True to the kwargs of setuptools.setup

Originally posted in: https://github.com/ndexbio/ndex-python-client/issues/3

bgyori commented 7 years ago

Sorry, I accidentally posted to the wrong repo, what I posted was: I also just ran into this problem but only on Python 3. Installation on Python 2 works fine.

cthoyt commented 7 years ago

It's not usually obvious how a given package is uploaded to PyPI (usually with the built-in distutils, or more preferred twine). So I have an idea on why this might be the case:

setup.cfg doesn't state that this code is universal for python2/python3 so perhaps it was just a mistake in manual addition of the extra files. This stackoverflow answer has a good explanation of which files get copied automatically without further information from a MANIFEST.in file (all python modules, README.txt, and test/test*.py) which leads me to believe README.md might not make it by default

jingjingbic commented 7 years ago

I have uploaded a new package (3.0.11.19). Could you try it?

rpillich commented 7 years ago

Just to be in the loop... is this the same build that you pushed to ndex-dev last friday? ThanksR

Sent from my Verizon Wireless 4G LTE smartphone

-------- Original message -------- From: Jing Chen notifications@github.com Date: 02/06/2017 4:17 PM (GMT-08:00) To: ndexbio/ndex-python ndex-python@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: Re: [ndexbio/ndex-python] Installation error (#2)

I have uploaded a new package (3.0.11.19). Could you try it?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/ndexbio/ndex-python","title":"ndexbio/ndex-python","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/ndexbio/ndex-python"}},"updates":{"snippets":[{"icon":"PERSON","message":"@jingjingbic in #2: I have uploaded a new package (3.0.11.19). Could you try it?"}],"action":{"name":"View Issue","url":"https://github.com/ndexbio/ndex-python/issues/2#issuecomment-277858228"}}}

jingjingbic commented 7 years ago

Yes.

From: rpillich notifications@github.com Reply-To: ndexbio/ndex-python reply@reply.github.com Date: Monday, February 6, 2017 at 5:08 PM To: ndexbio/ndex-python ndex-python@noreply.github.com Cc: "Chen, Jing" jic002@soe.ucsd.edu, Comment comment@noreply.github.com Subject: Re: [ndexbio/ndex-python] Installation error (#2)

Just to be in the loop... is this the same build that you pushed to ndex-dev last friday? ThanksR

Sent from my Verizon Wireless 4G LTE smartphone

-------- Original message -------- From: Jing Chen notifications@github.com Date: 02/06/2017 4:17 PM (GMT-08:00) To: ndexbio/ndex-python ndex-python@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: Re: [ndexbio/ndex-python] Installation error (#2)

I have uploaded a new package (3.0.11.19). Could you try it?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/ndexbio/ndex-python","title":"ndexbio/ndex-python","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/ndexbio/ndex-python"}},"updates":{"snippets":[{"icon":"PERSON","message":"@jingjingbic in #2: I have uploaded a new package (3.0.11.19). Could you try it?"}],"action":{"name":"View Issue","url":"https://github.com/ndexbio/ndex-python/issues/2#issuecomment-277858228"}}}

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/ndexbio/ndex-python/issues/2#issuecomment-277868245, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABfwdEzdCgE75yBT77sbV4GIkFmnYi3Bks5rZ8QMgaJpZM4L4bQa.

bgyori commented 7 years ago

The install works for me now, thanks!

cthoyt commented 7 years ago

Works for me too!