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 1017463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:42:31+00:00 2026-05-16T10:42:31+00:00

I have this problem and it’s drivin’ me nuts! So I am developing my

  • 0

I have this problem and it’s drivin’ me nuts!

So I am developing my first real Google App Engine application and I always like to discover things while writing tests.

So I have the following setup:
I have a virtualenv with nose, nosegae, webtest and gaetestbed. It’s called porksvr.

I activate my virtualenv like this:

source porksvr/bin/activate

To run nose I use the following command:

nosetests --with-gae --gae-lib-root /home/fs/gae

This gives me the following error

DEBUG: Access to module file denied: 
/home/fs/work/gaecode/porksvr/lib/python2.6/site-packages/webtest

So at first I thought “okay, nose is running the application in the ‘context’ of the dev_appserver so it doesn’t know about webtest”.

But to be sure I created a new directory and added a small GAE application. It’s just 3 files:
-main.py
-app.yaml
-test_huh.py ( imports the webtest module. )

Now what really confused me is that this just works. I run the nosetests cmds and it’s actually passing my tests.

So I started digging in my application to find out what could be different but I really hit a wall.

I first thought that it might be a permission problem since the error says ‘access …denied’ but I couldn’t really find anything special. Next I thought maybe it’s because I created my application before the virtualenv but I couldn’t really see how this can be a problem.

So if anybody has a clue why this happens I would be really really grateful.

  • 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-16T10:42:31+00:00Added an answer on May 16, 2026 at 10:42 am

    Great so after hours of trying I actually just solved my problem right after asking this question.

    What fixed it was to create the virtualenv with the following switch --no-site-packages. Apparently I had a copy of webtest in my system’s Python that somehow gave problems with my virtualenv. I should have noticed it when I tried to pip install webtest in my virtualenv and it said it already existed.

    Still not 100% sure why some apps worked and others didn’t.

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

Sidebar

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.