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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:07:12+00:00 2026-05-23T19:07:12+00:00

There’s an error message I can’t understand since I don’t see where my code

  • 0

There’s an error message I can’t understand since I don’t see where my code calls it. It appears when using the User object with Google app engine with dev_appserver. Can you tell me what it means?

ERROR    2011-07-15 15:01:07,664 __init__.py:463] 'User' object has no attribute '_User__email'
Traceback (most recent call last):
  File "/media/Lexar/projects/google/appengine/ext/webapp/__init__.py", line 700, in __call__
    handler.get(*groups)
  File "/media/Lexar/projects/myproject/i18n.py", line 313, in get
    self.response.out.write(template.render(path, template_values))
  File "/media/Lexar/projects/google/appengine/ext/webapp/template.py", line 73, in render
    return t.render(Context(template_dict))
  File "/media/Lexar/projects/google/appengine/ext/webapp/template.py", line 115, in wrap_render
    return orig_render(context)
  File "/media/Lexar/projects/lib/django_1_2/django/template/__init__.py", line 173, in render
    return self._render(context)
  File "/media/Lexar/projects/lib/django_1_2/django/template/__init__.py", line 167, in _render
    return self.nodelist.render(context)
  File "/media/Lexar/projects/lib/django_1_2/django/template/__init__.py", line 796, in render
    bits.append(self.render_node(node, context))
  File "/media/Lexar/projects/lib/django_1_2/django/template/__init__.py", line 809, in render_node
    return node.render(context)
  File "/media/Lexar/projects/lib/django_1_2/django/template/loader_tags.py", line 139, in render
    return self.template.render(context)
  File "/media/Lexar/projects/lib/django_1_2/django/template/__init__.py", line 173, in render
    return self._render(context)
  File "/media/Lexar/projects/lib/django_1_2/django/template/__init__.py", line 167, in _render
    return self.nodelist.render(context)
  File "/media/Lexar/projects/lib/django_1_2/django/template/__init__.py", line 796, in render
    bits.append(self.render_node(node, context))
  File "/media/Lexar/projects/lib/django_1_2/django/template/__init__.py", line 809, in render_node
    return node.render(context)
  File "/media/Lexar/projects/lib/django_1_2/django/template/defaulttags.py", line 258, in render
    return self.nodelist_true.render(context)
  File "/media/Lexar/projects/lib/django_1_2/django/template/__init__.py", line 796, in render
    bits.append(self.render_node(node, context))
  File "/media/Lexar/projects/lib/django_1_2/django/template/__init__.py", line 809, in render_node
    return node.render(context)
  File "/media/Lexar/projects/lib/django_1_2/django/template/__init__.py", line 849, in render
    return _render_value_in_context(output, context)
  File "/media/Lexar/projects/lib/django_1_2/django/template/__init__.py", line 829, in _render_value_in_context
    value = force_unicode(value)
  File "/media/Lexar/projects/lib/django_1_2/django/utils/encoding.py", line 66, in force_unicode
    s = unicode(s)
  File "/media/Lexar/projects/google/appengine/api/users.py", line 188, in __unicode__
    return unicode(self.nickname())
  File "/media/Lexar/projects/google/appengine/api/users.py", line 152, in nickname
    if (self.__email and self.__auth_domain and
AttributeError: 'User' object has no attribute '_User__email'

EDIT: The error goes away when I remove this code:

'user_url': users.create_logout_url(self.request.uri) if users.get_current_user() else 'login','user' : users.get_current_user(),

So supposedly I’m making some mistake using the User object

UPDATE: It’s seems to have something to do with a monkeypatch I applied. Removing this part removes the error so I’m wondering whether I still need this patch. It’s reported in

def _user_init(self, email=None, _auth_domain=None,
             _user_id=None, federated_identity=None, federated_provider=None,
             _strict_mode=True):

  if not _auth_domain:
    _auth_domain = os.environ.get('AUTH_DOMAIN')
  assert _auth_domain

  if email is None and federated_identity is None:
    email = os.environ.get('USER_EMAIL', email)
    _user_id = os.environ.get('USER_ID', _user_id)
    federated_identity = os.environ.get('FEDERATED_IDENTITY',
                                        federated_identity)
    federated_provider = os.environ.get('FEDERATED_PROVIDER',
                                        federated_provider)

  if not email and not federated_identity and _strict_mode:
    raise UserNotFoundError

  self.__email = email
  self.__federated_identity = federated_identity
  self.__federated_provider = federated_provider
  self.__auth_domain = _auth_domain
  self.__user_id = _user_id or None

users.User.__init__ = _user_init

Related thread where the monkeypatch comes from
How do I apply a monkeypatch to GAE?

  • 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-23T19:07:13+00:00Added an answer on May 23, 2026 at 7:07 pm

    I would guess your error is at import-time of some module:

    ERROR    2011-07-15 15:01:07,664 __init__.py:463] 'User' object has no attribute '_User__email'
    

    __init__.py is the file that define a directory as being a package of modules.

    You could either look for a line #463 with a User object on it, or selectively removing the imports for understanding which package is at fault.

    I would guess that for fixing it, you need to make sure when the User object does have a _User__email (which is the mangled name of __email) attribute, but not knowing how you make the call that generate the mistake it’s difficult to say…

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

Sidebar

Related Questions

There was a smbmrx sample code using RDBSS in WDK Vista. But since WDK
There are several tabs in GUI runner of NUnit: I understand that using Console.WriteLine
There are numerous libraries providing Linq capabilities to C# code interacting with a MySql
There will be 500+ threads concurrently uploading an unique object to a bucket all
There are many string matching algorithms can be used to find a pattern (string)
There can only be one IDENTITY column per table Why is it so? Take
There's no Sort() function for IList . Can someoene help me with this? I
There is a security concept regarding the calls to the WCF service that I
There is something I miss with the notion of Synchronizing code in Android. Scenario
There is a known issue with using jquery fadeOut, fadeIn, and fadeToggle, when fading

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.