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

  • Home
  • SEARCH
  • 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 6377491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:52:50+00:00 2026-05-25T01:52:50+00:00

For my gae python project, I’d like to import an external library named ‘vobject’.

  • 0

For my gae python project, I’d like to import an external library named ‘vobject’. What’s the correct way to import it in my .py files?

The project’s readme says that in order to install it, you need to run

  python setup.py install

Additionally, vobject requires the ‘dateutil’ package.

Since this is going to run on GAE, I thought I should copy both libs over into my project instead of running the install script to make use of it in my code.

But I’m getting a bunch of import errors and I’m not sure what the correct convention is for external gae/python libs.

utc = dateutil.tz.tzutc()
## error produced:
File "myGaeProject/external/vobject/icalendar.py", line 47, in <module>
NameError: name 'dateutil' is not defined

Because of the way I’ve structured my project, I changed icalendar.py’s import structure from:

import dateutil.rrule
import dateutil.tz

to:

import external.dateutil.rrule
import external.dateutil.tz

I also tried:

from external.dateutil import *

What’s the correct import mechanism for a project structured like so:

-myGaeProject

--external
----__init__.py    

----dateutil
------__init__.py
------tz.py
------rrule.py
------[more dateutil files]

----vobject
------__init__.py
------base.py    
------icalendar.py    

--handlers
------__init__.py
------mainHandler.py
  • 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-25T01:52:51+00:00Added an answer on May 25, 2026 at 1:52 am

    Don’t modify the library. If you want to put all your libraries in external, you need to add external to your python path before you attempt to import libraries from there:

    import os
    import sys
    sys.path.append(os.path.join(os.path.dirname(__file__), 'external'))
    import some_external_library
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Looking to dabble with GAE and python, and I'd like to know what are
In Python and GAE, I would like to ask how to get the parameters
I would like to provide my Python GAE website in the user's own language,
GAE uses PyYAML to deal with YAML files. I see that library in GAE
I try to create project in Python, which is composed of GAE, Django and
I'm trying to implement something like Rails dynamic-finders in Python (for webapp/GAE). The dynamic
I'm doing my first small project in Python(GAE), and there's no difficulty in operating
I want to develop a GAE application using python, but I fear that Google
I know python can be run on GAE what is different erlang and python
I am after a pure Python solution (for the GAE) to convert webpages to

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.