How to get wadllib sources using HTTP?

Asked by blep on 2009-07-29

Hi,
I'm trying to get wadllib sources to use launchpad API. Since I'm behind a firewall, I'm using an HTTP url (see command below). I guessed the HTTP URL based on a previous answer (I did not find anyway to get it using launchpad interface), so it may be a wrong one.

The command fails with the error below. Am I doing anything wrong? Is it the wrong URL ? I'm using bzr 1.16.1 on Windows.

bzr branch http://bazaar.launchpad.net/~lazr-developers/wadllib/trunk
bzr: ERROR: Invalid http response for http://bazaar.launchpad.net/%7Elazr-developers/wadllib/trunk/.bzr/repository/packs/a75ce3f7db9d3c74759e5b08cc24d3a5.pack: Expected a boundary (Ol.e=G_j9N9Fr9Qc5TH7) line, got ''

wadllib can be found at: https://code.launchpad.net/~lazr-developers/wadllib/trunk

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
Robert Collins Edit question
Last query:
2009-10-28
Last reply:
2010-02-23
Guilherme Salgado (salgado) said : #1

I was able to branch wadllib using the command you gave above.

We've had problems on bazaar.launchpad.net earlier today, so that may have been the cause of the error you saw. Can you give it another try?

blep (blep) said : #2

I tried again, but it still fail.

I also tested with the url of another project that worked about a week
ago, but it fails with a similar error.

2009/7/29, Guilherme Salgado <email address hidden>:
> Your question #78505 on Launchpad itself changed:
> https://answers.edge.launchpad.net/launchpad/+question/78505
>
> Status: Open => Answered
>
> Guilherme Salgado proposed the following answer:
> I was able to branch wadllib using the command you gave above.
>
> We've had problems on bazaar.launchpad.net earlier today, so that may
> have been the cause of the error you saw. Can you give it another try?
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.edge.launchpad.net/launchpad/+question/78505/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.edge.launchpad.net/launchpad/+question/78505
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Guilherme Salgado (salgado) said : #3

Based on the discussion of bug 349269, it seems likely there is a proxy between you and launchpad.net that is causing this. Is that possible?

blep (blep) said : #4

Yes, that is the reason why I'm trying to use HTTP. There is
proxy/firewall/filter and whatever "security" stuffs large company
usually deploys.

Though it is "good enough" for me to be able to use subversion
repository hosted on sourceforge.

2009/7/29, Guilherme Salgado <email address hidden>:
> Your question #78505 on Launchpad itself changed:
> https://answers.edge.launchpad.net/launchpad/+question/78505
>
> Status: Open => Needs information
>
> Guilherme Salgado requested for more information:
> Based on the discussion of bug 349269, it seems likely there is a proxy
> between you and launchpad.net that is causing this. Is that possible?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.edge.launchpad.net/launchpad/+question/78505
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Karl Fogel (kfogel) said : #5

As suggested in https://bugs.edge.launchpad.net/launchpad/+bug/349269/comments/5, have you tried logging in to Launchpad and running "bzr branch lp:wadllib"?

Karl Fogel (kfogel) said : #6

Put status as "needs information", based on my last question.

blep (blep) said : #7

This does not work. From my understanding, only the proxy can do DNS look-up for remote host. I'm not aware of any way to work-around this.

---
bzr lp-login blep
bzr: ERROR: Connection error: Couldn't resolve host 'launchpad.net' (11001, 'getaddrinfo failed')

Leonard Richardson (leonardr) said : #8

Have you tried installing wadllib through PyPI?

http://pypi.python.org/pypi/wadllib

blep (blep) said : #9

Using Pypi nearly works: wadlib, lazr.uri and simplejson are correctly retrieved but setup.py install fails to retrieve a version of elementree:
---
Installed c:\python26\lib\site-packages\wadllib-1.1.4-py2.6.egg
Processing dependencies for wadllib==1.1.4
Searching for elementtree
Reading http://pypi.python.org/simple/elementtree/
Reading http://effbot.org/zone/element-index.htm
Reading http://effbot.org/downloads#elementtree
No local packages or download links found for elementtree
error: Could not find suitable distribution for Requirement.parse('elementtree')
---
I do find it strange that it needs to retrieve elementtree as it is already present in the standard library (I'm using python 2.6). Installing elementtree 1.2.6 manually does not solve the installation issue...

Francis J. Lacoste (flacoste) said : #10

That's because elementtree is the name of the external distribution. It's named etree in python stdlib. wadllib should probably try to import from both places.

Can you help with this problem?

Provide an answer of your own, or ask blep for more information if necessary.

To post a message you must log in.