473,405 Members | 2,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

URL as input -> "IOError: [Errno 2] The system cannot find the path specified"

Hello

I'm trying to use urllib to download web pages with the GET method,
but Python 2.5.1 on Windows turns the URL into something funny:

========
url = "amazon.fr/search/index.php?url=search"

[...]

IOError: [Errno 2] The system cannot find the path specified:
'amazon.fr\\search\\index.php?url=search'

f = urllib.urlopen(url)
========

Any idea why it does this?

Thank you.
Oct 24 '08 #1
2 3167
On Fri, 24 Oct 2008 19:56:04 +0200, Gilles Ganault wrote:
I'm trying to use urllib to download web pages with the GET method, but
Python 2.5.1 on Windows turns the URL into something funny:

========
url = "amazon.fr/search/index.php?url=search"
This "URL" lacks the protocol! Correct would be http://amazon.fr… (I
guess).
[...]

IOError: [Errno 2] The system cannot find the path specified:
'amazon.fr\\search\\index.php?url=search'
Without protocol it seems that the 'file://' protocol is used and there
is no such file on your system.

Ciao,
Marc 'BlackJack' Rintsch
Oct 24 '08 #2
On 24 Oct 2008 18:02:45 GMT, Marc 'BlackJack' Rintsch <bj****@gmx.net>
wrote:
>This "URL" lacks the protocol! Correct would be http://amazon.fr… (I
guess).
Thanks, that did it :)
Oct 24 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Loi | last post by:
Hi All, I use Bulk insert to put data to myTable. When the SQL server is in local machin, it works well. But when I put the data in a sql server situated not locally, then I get a error message...
0
by: SampathTangudu | last post by:
Hi, We are trying to use the Hash Tables for passing information from one aspx page to another aspx page. We are using the below code. IsolatedStorageFile isoStore =...
6
by: chanmm | last post by:
Dear all, I have run the same web application in my Windows XP Pro without any problem but once I deploy it in Windows 2003 Server the message below appear: The system cannot find the file...
2
by: Ben | last post by:
Hi We have setup a Strong Name for our Applications, but are having problems with the essembly throwing an error: Error creating assembly manifest: Error reading key file...
0
by: Francois Stander | last post by:
Hi, No matter how I tried, I could net get it right to add a reference to my vb.net project, displaying the correct path. I have ms word 2003, running xp pro, version 5.1.2600 service pack 2 I...
0
by: Curious | last post by:
Hi, I'm not sure if this is the right place to post such command issues. If you know a better forum where people respond to messages fairly often, please let me know! Anyway, would appreciate...
1
by: NamelessNumberheadMan | last post by:
I'm having trouble reading in an xml file. My servlet retrieves the file path from the init parameters without a problem, but when I try to create a FileInputStream I get this: ...
0
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi all, my problem is about services. I try comment you all steps for my issue: My development environment: Windows XP SP2
0
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi all, my problem is about services. I try comment you all steps for my issue: My development environment: Windows XP SP2
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.