Skip to content

version.txt/no vcs could be detected on tarball install #270

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

Closed
NDevox opened this issue Jan 14, 2016 · 8 comments
Closed

version.txt/no vcs could be detected on tarball install #270

NDevox opened this issue Jan 14, 2016 · 8 comments

Comments

@NDevox
Copy link

NDevox commented Jan 14, 2016

I'm wondering if this is related to #244.

I'm trying to install the latest version - 2.5.1 on an offline server so have to use a tarball install.

On running python setup.py install I get the following:

vcversioner: no VCS could be detected in u'/usr/lib/python2.7/dist-packages/jsonschema-2.5.1' and u'/usr/lib/python2.7/dist-packages/jsonschema-2.5.1/version.txt' isn't present.
vcversioner: are you installing from a github tarball?

Any idea why this happens?

@Julian
Copy link
Member

Julian commented Jan 14, 2016

Can you try with pip install . instead?

Also, which tarball are you using? Does it contain a version.txt?

@NDevox
Copy link
Author

NDevox commented Jan 14, 2016

Don't have pip isntalled but will get it on so I can do this then will let you know.

I probably got the one linked off pypi (forgot now). it's 2.5.1 and there is no version.txt

@NDevox
Copy link
Author

NDevox commented Jan 14, 2016

Ok, progress, but still errors.

I now have:

root@elk:/usr/lib/python2.7/dist-packages/jsonschema-2.5.1# pip install .
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()
  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 568, in load_entry_point
  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2720, in load_entry_point
  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2380, in load
  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2386, in resolve
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 74, in <module>
    from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File "/usr/lib/python2.7/dist-packages/pip/vcs/mercurial.py", line 9, in <module>
    from pip.download import path_to_url
  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 25, in <module>
    from requests.compat import IncompleteRead
ImportError: cannot import name IncompleteRead

@Julian
Copy link
Member

Julian commented Jan 15, 2016

dist-packages is a pretty strange place to install out of -- did you
download the tarball into there?

The tarball on PyPI also definitely has a version.txt:

⊙  curl -s '
https://pypi.python.org/packages/source/j/jsonschema/jsonschema-2.5.1.tar.gz#md5=374e848fdb69a3ce8b7e778b47c30640'
| tar tzf - | grep version.txt
            julian@yoga
jsonschema-2.5.1/version.txt

Please double check where you got your tarball from.

On Thu, Jan 14, 2016 at 10:58 AM, Nick [email protected] wrote:

Ok, progress, but still errors.

I now have:

root@elk:/usr/lib/python2.7/dist-packages/jsonschema-2.5.1# pip install .
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in
load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()
File "build/bdist.linux-x86_64/egg/pkg_resources/init.py", line 568, in load_entry_point
File "build/bdist.linux-x86_64/egg/pkg_resources/init.py", line 2720, in load_entry_point
File "build/bdist.linux-x86_64/egg/pkg_resources/init.py", line 2380, in load
File "build/bdist.linux-x86_64/egg/pkg_resources/init.py", line 2386, in resolve
File "/usr/lib/python2.7/dist-packages/pip/init.py", line 74, in
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/usr/lib/python2.7/dist-packages/pip/vcs/mercurial.py", line 9, in
from pip.download import path_to_url
File "/usr/lib/python2.7/dist-packages/pip/download.py", line 25, in
from requests.compat import IncompleteRead
ImportError: cannot import name IncompleteRead


Reply to this email directly or view it on GitHub
#270 (comment).

@NDevox
Copy link
Author

NDevox commented Jan 15, 2016

Odd. I don't know what happened there then.

dist-packages was a mistake on my part, don't think I read the folders properly when moving everything around.

Using the tarball you linked I installed it no problem.

@NDevox NDevox closed this as completed Jan 15, 2016
@Julian
Copy link
Member

Julian commented Jan 15, 2016

Awesome, glad it worked for you, cheers.

@NDevox
Copy link
Author

NDevox commented Jan 15, 2016

Apaprently for ubuntu (the distro being used) dist-packages is more or less the right place:

http://stackoverflow.com/questions/9387928/whats-the-difference-between-dist-packages-and-site-packages

worth noting I didn't use pip. I used the setup.py instead.

@Julian
Copy link
Member

Julian commented Jan 15, 2016

That's where packages get installed to, but not generally a place you'd
run pip install out of.
On Jan 15, 2016 12:21, "Nick" [email protected] wrote:

Apaprently for ubuntu (the distro being used) dist-packages is more or
less the right place:

http://stackoverflow.com/questions/9387928/whats-the-difference-between-dist-packages-and-site-packages

worth noting I didn't use pip. I used the setup.py instead.


Reply to this email directly or view it on GitHub
#270 (comment).

Julian added a commit that referenced this issue Jul 26, 2019
c09f995c Spell checkin'.
93b5387c Merge pull request #271 from Zac-HD/hypothesis-tests
fddd43bd booleans are not equal to numbers
d8a820aa Nested anyOf test
0c0fdc12 Add hypothesis-jsonschema to README
59181b43 updated 'output' subschema
664aa98a Optionally allow an output property.
4bd56e35 Merge pull request #270 from ahx/patch-1
8be471df Add json_schemer to list to implementors
9cbad896 Merge remote-tracking branch 'gregsdennis/defs'
12a62baf Show a more helpful message when someone forgets to update both remotes locations.
f43e07fe added new remote to appropriate files
1ce104fb un-add draft2019-04
2a68cdd5 updated some references to previous drafts; created new name remote for $defs
19803ceb Merge pull request #3 from json-schema-org/defs
a6e836c6 Merge pull request #2 from json-schema-org/master
65e3480c Rename definitions to $defs in the 2019-06 draft.
366f15bd added initial set of tests (with expected output) for draft/2019-04
147da3d2 Merge pull request #1 from json-schema-org/master

git-subtree-dir: json
git-subtree-split: c09f995c94d6f0e004e7be32d6de74e331ecbfa0
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

2 participants