Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6565279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:04:29+00:00 2026-05-25T14:04:29+00:00

This script: import imaplib user = dave.trindall@gmail.com pwd = *** m = imaplib.IMAP4_SSL(imap.gmail.com) m.login(user,pwd)

  • 0

This script:

    import imaplib

    user = "dave.trindall@gmail.com"
    pwd = "***"

    m = imaplib.IMAP4_SSL("imap.gmail.com")
    m.login(user,pwd)
    m.select("Inbox") # here you a can choose a mail box like INBOX instead
    m.search("NEW")

makes this error for me:

Traceback (most recent call last):
  File "c:\Program Files\Google\google_appengine\google\appengine\ext\webapp\_webapp25.py", line 701, in __call__
    handler.get(*groups)
  File "c:\Users\Dave\git_stuff\Touch Base\Touch Base\main.py", line 30, in get
    m = imaplib.IMAP4_SSL("imap.gmail.com")
  File "c:\Python26\lib\imaplib.py", line 1138, in __init__
    IMAP4.__init__(self, host, port)
  File "c:\Python26\lib\imaplib.py", line 163, in __init__
    self.open(host, port)
  File "c:\Python26\lib\imaplib.py", line 1149, in open
    self.sock = socket.create_connection((host, port))
AttributeError: 'module' object has no attribute 'create_connection'

Why?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:04:30+00:00Added an answer on May 25, 2026 at 2:04 pm

    This fails because App-Engine disallows opening sockets in your application. See the ‘Pure Python’ section in http://code.google.com/appengine/docs/python/runtime.html, also discussion at http://groups.google.com/group/google-appengine/browse_thread/thread/4a8764d266ec17af

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to run this script: import re, os def build_pool(cwd): global xtn_pool, file_pool
this is the script >> import ClientForm import urllib2 request = urllib2.Request(http://ritaj.birzeit.edu) response =
I have this script: select name,create_date,modify_date from sys.procedures order by modify_date desc I can
I'm using this script: import serial ser = serial.Serial('/dev/ttyUSB0') print 'Running..' while True: a=ser.read()
i just installed python i am trying to run this script: import csv reader
For the following python script: import os os.system('PYTHONPATH=\user\...') os.system('export PYTHONPATH') .... Is there anyway
I took this script from here : import csv from itertools import izip f
Running this script in a django shell: import processors.topics.tasks as t t.test.delay() Gives this
I have this script- import lxml from lxml.cssselect import CSSSelector from lxml.etree import fromstring
I've set up this simple script on my local machine: #!/usr/bin/python import socket from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.