You Are Here:

Community: Developer Discussion Boards

#1 Old HTTPConnection not working in the emulator - 2007-11-07, 10:28

Join Date: Nov 2007
Posts: 2
ledil
Offline
Registered User
Hello,

Ive tried to make a HTTP Connection with the emulator. But this fails with following error:

conn = httlib.HTTPConnection("192.168.32.122")
AttributeError: 'module' object has no attribute 'HTTPConnection'

Btw Im using:
S60 3rd Edition SDK for Symbian OS, Supporting Feature Pack 2, for C++, Beta

Im doing also "import httplib"

So it seems that the emulator is usable only for UI-applications because Networking is still not possible. Bad thing ...
Reply With Quote

#2 Old Re: HTTPConnection not working in the emulator - 2007-11-07, 19:46

Join Date: May 2006
Posts: 622
Location: Oulu, Finland
lfd
Offline
Super Contributor
Hi ledil and welcome to the forum

Try this:
Code:
import httplib
conn = httplib.HTTPConnection("192.168.32.122")
LFD


Devices:
Nokia E61 3rd Edition - pys60 1.4.0

Tips and modules:
http://www.lfdm.net/thesis
Reply With Quote

#3 Old Re: HTTPConnection not working in the emulator - 2007-11-08, 08:35

Join Date: Nov 2007
Posts: 2
ledil
Offline
Registered User
Quote:
Originally Posted by lfd View Post
Hi ledil and welcome to the forum

Try this:
Code:
import httplib
conn = httplib.HTTPConnection("192.168.32.122")
LFD
Thx, but it was a typo on my side when retyping my lines in the forum So also this doesnt work I still dont know how to test it because I dont want to spend so much money to test this over GSM Thx, anyway ...
Reply With Quote

#4 Old Re: HTTPConnection not working in the emulator - 2008-08-18, 13:18

Join Date: Aug 2008
Posts: 1
chandruk
Offline
Registered User
Check you current folder for httplib.py files. if you have any files in this name then python will look this before going to lib folders. And hence you will get the error
Reply With Quote

#5 Old Re: HTTPConnection not working in the emulator - 2008-08-18, 17:09

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 chandruk View Post
Check you current folder for httplib.py files. if you have any files in this name then python will look this before going to lib folders. And hence you will get the error
hi chandruk
welcome to the forum nokia discussion boards
yes you are correct we cant save any script name with the name of available modules.

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
Network connection not working on S60 2nd Ed FP2 emulator jalakuri Symbian Networking & Messaging 7 2007-05-08 16:47
Connection not working on phone, does on emulator mattmatt Symbian Networking & Messaging 1 2007-03-15 16:41
Application is working fine on device but not on emulator Sharmilasrjasthi General Symbian C++ 21 2006-06-03 11:32
working on emulator but not on mobile Al Akaishi Mobile Java Networking & Messaging & Security 5 2006-03-23 08:16
Fire key not working on emulator. himsymbian General Symbian C++ 0 2005-05-25 10:28

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 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d81449X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ