You Are Here:

Community: Developer Discussion Boards

#1 Old HTTPConnection ERROR - 2009-02-01, 17:18

Join Date: Dec 2008
Posts: 2
davidnano
Offline
Registered User
Hello.

I have an error when I try to make a HTTP Connection with the emulator.I'm starting develop with S60 and python for the first time and I have not much idea!

The error appears in the emulator screen is:

AttributeError: 'module' object has no attribute 'HTTPConnection'

I have the file httplib.py in the correct folder. So I do not know what they can fail ...

If anyone could help me,I would be greatly appreciated.

Sorry if my English is not quite correct.

Thanks,

David
Reply With Quote

#2 Old Re: HTTPConnection ERROR - 2009-02-01, 17:34

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
Quote:
Originally Posted by davidnano View Post
Hello.

I have an error when I try to make a HTTP Connection with the emulator.I'm starting develop with S60 and python for the first time and I have not much idea!

The error appears in the emulator screen is:

AttributeError: 'module' object has no attribute 'HTTPConnection'

I have the file httplib.py in the correct folder. So I do not know what they can fail ...

If anyone could help me,I would be greatly appreciated.

Sorry if my English is not quite correct.

Thanks,

David
hello davidnano

welcome to forum nokia python discussion boards.

I think the problem might be with the settings for the connection in the emulator.
It will be still great if you post some more details like what sdk version and some sample code etc.

enjoy Pythoning
Gaba88


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#3 Old Re: HTTPConnection ERROR - 2009-02-01, 19:35

Join Date: Dec 2008
Posts: 2
davidnano
Offline
Registered User
Quote:
Originally Posted by gaba88 View Post
hello davidnano

welcome to forum nokia python discussion boards.

I think the problem might be with the settings for the connection in the emulator.
It will be still great if you post some more details like what sdk version and some sample code etc.

enjoy Pythoning
Gaba88
Hello gaba88.

Thank you very much for answering

I'm using S60_3rd_Edition_SDK_Feature_Pack_2_v1_1_en with PythonForS60_1_4_5_SDK_3rdEd.

An example code:

import httplib

conn = httplib.HTTPConnection("www.python.org")
conn.request("GET", "/index.html")
r1 = conn.getresponse()


Should set up the connection settings in some way especial??

Thanks again
Reply With Quote

#4 Old Re: HTTPConnection ERROR - 2009-02-01, 19:45

Join Date: Sep 2007
Posts: 395
Location: Bhavnagar
Send a message via Yahoo to james1980
james1980's Avatar
james1980
Offline
Forum Nokia Champion
Hi ,
Please use the code tag given as a '#' button on the top line of the window so that it maintain all white space.

Regards.


Jajal Mehul
Reply With Quote

#5 Old Re: HTTPConnection ERROR - 2009-02-02, 07:38

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
Quote:
Originally Posted by davidnano View Post
Hello gaba88.

Thank you very much for answering

I'm using S60_3rd_Edition_SDK_Feature_Pack_2_v1_1_en with PythonForS60_1_4_5_SDK_3rdEd.

An example code:

import httplib

conn = httplib.HTTPConnection("www.python.org")
conn.request("GET", "/index.html")
r1 = conn.getresponse()


Should set up the connection settings in some way especial??

Thanks again
hello davidnano

your code seems correct.

i guess you might have downloaded the sdk of PyS60 from sourceforge when the link was broken so try downloading that again and then try with your code.

enjoy pythoning
Gaba88


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
[newbie here] Link error xitpu General Symbian C++ 3 2007-01-24 17:53
C-code..unable to make sis Symbian_Neil General Symbian C++ 9 2006-12-02 08:55
My BuilderX (with S60 SDK 2.1.NET MS version) cannot build ARMI UREL danielvidonyi@hotmail.com Symbian Tools & SDKs 1 2006-05-04 22:30
User break point error in Grid ag24master Symbian User Interface 0 2003-08-07 09:20
Unresolved external symbols problem georgica1979 Symbian User Interface 1 2003-04-06 14:26

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia