GithubHelp home page GithubHelp logo

Comments (12)

vbabiy avatar vbabiy commented on July 23, 2024
  • Changed content.

Original Comment By: plotnik

from pip.

vbabiy avatar vbabiy commented on July 23, 2024
  • Changed content.

Original Comment By: plotnik

from pip.

vbabiy avatar vbabiy commented on July 23, 2024
  • Changed content.

Original Comment By: plotnik

from pip.

vbabiy avatar vbabiy commented on July 23, 2024

Hi, What pip version are you using? Because I didn't get problems with pip
0.7.2 (latest) and the dev version.

I tried to reproduce here with the development version and didn't get any
problem:

$ pip install -e

svn+http://svn.colorstudy.com/INITools/trunk@3472#egg=INITools

Obtaining INITools from

svn+http://svn.colorstudy.com/INITools/trunk@3472#egg=INITools

  Checking out http://svn.colorstudy.com/INITools/trunk (to revision 3472)

to /home/hugo/.virtualenvs/pip-hltbra-ready-to-merge/src/initools

  Running setup.py egg_info for package INITools

Installing collected packages: INITools

  Running setup.py develop for INITools

    Creating /home/hugo/.virtualenvs/pip-hltbra-ready-to-

merge/lib/python2.6/site-packages/INITools.egg-link (link to .)

    Adding INITools 0.2.1dev-r3472 to easy-install.pth file


    Installed /home/hugo/.virtualenvs/pip-hltbra-ready-to-

merge/src/initools

Successfully installed INITools

Cleaning up...

$ pip --version

pip 0.7.1 from /home/hugo/.virtualenvs/pip-hltbra-ready-to-

merge/lib/python2.6/site-packages/pip-0.7.1-py2.6.egg (python 2.6)

And tried with the latest release (pip 0.7.2) and didn't get any problem too:

$ pip install -e

svn+http://svn.colorstudy.com/INITools/trunk@3472#egg=INITools

Obtaining INITools from

svn+http://svn.colorstudy.com/INITools/trunk@3472#egg=INITools

  Checking out http://svn.colorstudy.com/INITools/trunk (to revision 3472)

to /home/hugo/.virtualenvs/testenv/src/initools

  Running setup.py egg_info for package INITools

Installing collected packages: INITools

  Running setup.py develop for INITools

    Creating /home/hugo/.virtualenvs/testenv/lib/python2.6/site-

packages/INITools.egg-link (link to .)

    Adding INITools 0.2.1dev-r3472 to easy-install.pth file


    Installed /home/hugo/.virtualenvs/testenv/src/initools

Successfully installed INITools

Cleaning up...

$ pip --version

pip 0.7.2 from /home/hugo/.virtualenvs/testenv/lib/python2.6/site-packages

(python 2.6)


Original Comment By: Hugo Lopes Tavares

from pip.

vbabiy avatar vbabiy commented on July 23, 2024

plotnik clearly mentioned, that it occurs when you use
svn:mysvndomain.com/myapp/trunk not
svn+http://mysvndomain.com/myapp/trunk


Original Comment By: http://mysvndomain.com/myapp/trunk

from pip.

vbabiy avatar vbabiy commented on July 23, 2024

hi,

same situation here. the problem is in urlsplit. the function doesn't split an
url like svn:_ as it firgures._

using pip 0.8.1 with python 2.6.6

thomas


Original Comment By: Anonymous

from pip.

vbabiy avatar vbabiy commented on July 23, 2024
  • Changed status from invalid to open.

Original Comment By: Hugo Lopes Tavares

from pip.

hltbra avatar hltbra commented on July 23, 2024

Reading some old bitbucket notifications I've found the user @centralniak has sent a patch to us, and I think nobody took a look at that time: https://bitbucket.org/centralniak/pip/changeset/0271386efe0b

Saved as gist: https://gist.github.com/1120276

from pip.

piotrkilczuk avatar piotrkilczuk commented on July 23, 2024

Feel free to contact me if it's broken. I'll do my best to come up with working version. :)

from pip.

hltbra avatar hltbra commented on July 23, 2024

I tried to reproduce right now creating a svn local repositoy in my computer, following this tutorial and then:

$ pip install -e svn://localhost/Users/hugo/SVN_REPOS/splinter@2#egg=splinter

and

$ pip install svn+svn://localhost/Users/hugo/SVN_REPOS/splinter@2#egg=splinter

Tried the same recipe using pip 1.0.1 and 1.0.2 (develop branch), and both worked with no problems.

PS.: I only had problems with:

$ pip install svn://localhost/Users/hugo/SVN_REPOS/splinter@2#egg=splinter
Downloading/unpacking splinter from svn://localhost/Users/hugo/SVN_REPOS/splinter@2
Exception:
Traceback (most recent call last):
  File "/private/tmp/ENV_FOOBAR/lib/python2.6/site-packages/pip-1.0.1-py2.6.egg/pip/basecommand.py", line 126, in main
    self.run(options, args)
  File "/private/tmp/ENV_FOOBAR/lib/python2.6/site-packages/pip-1.0.1-py2.6.egg/pip/commands/install.py", line 223, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/private/tmp/ENV_FOOBAR/lib/python2.6/site-packages/pip-1.0.1-py2.6.egg/pip/req.py", line 961, in prepare_files
    self.unpack_url(url, location, self.is_download)
  File "/private/tmp/ENV_FOOBAR/lib/python2.6/site-packages/pip-1.0.1-py2.6.egg/pip/req.py", line 1073, in unpack_url
    return unpack_vcs_link(link, location, only_download)
  File "/private/tmp/ENV_FOOBAR/lib/python2.6/site-packages/pip-1.0.1-py2.6.egg/pip/download.py", line 293, in unpack_vcs_link
    vcs_backend.unpack(location)
  File "/private/tmp/ENV_FOOBAR/lib/python2.6/site-packages/pip-1.0.1-py2.6.egg/pip/vcs/__init__.py", line 225, in unpack
    self.obtain(location)
  File "/private/tmp/ENV_FOOBAR/lib/python2.6/site-packages/pip-1.0.1-py2.6.egg/pip/vcs/subversion.py", line 79, in obtain
    url, rev = self.get_url_rev()
  File "/private/tmp/ENV_FOOBAR/lib/python2.6/site-packages/pip-1.0.1-py2.6.egg/pip/vcs/subversion.py", line 156, in get_url_rev
    url, rev = super(Subversion, self).get_url_rev()
  File "/private/tmp/ENV_FOOBAR/lib/python2.6/site-packages/pip-1.0.1-py2.6.egg/pip/vcs/__init__.py", line 117, in get_url_rev
    url = self.url.split('+', 1)[1]
IndexError: list index out of range

Storing complete log in /Users/hugo/.pip/pip.log

from pip.

hltbra avatar hltbra commented on July 23, 2024

Hey, @centralniak, can you try to reproduce it?

from pip.

xavfernandez avatar xavfernandez commented on July 23, 2024

pip now seems to explicitly expect a '+' in the url (cf https://github.com/pypa/pip/blob/develop/pip/vcs/__init__.py#L147)
and raises an helpful AssertionError:

AssertionError: Sorry, 'svn://svn.colorstudy.com/INITools/trunk@3472#egg=INITools' is a malformed VCS url. The format is <vcs>+<protocol>://<url>, e.g. svn+http://myrepo/svn/MyApp#egg=MyApp

pip install svn+http://svn.colorstudy.com/INITools/trunk@3472#egg=INITools still works fine, so this can probably be closed.

from pip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.