My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 4553: AttributeError: 'NoneType' object has no attribute 'api_version' during download_app
16 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ttrim...@google.com
Closed:  May 2011


Sign in to add a comment
 
Reported by bshan...@gmail.com, Feb 11, 2011
$ appcfg.py download_app -A APP_NAME DIR_NAME
/home/bshanks/bin/appcfg.py:42: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  os.path.join(DIR_PATH, 'lib', 'django'),
/usr/lib/python2.6/dist-packages/pytz/tzinfo.py:5: DeprecationWarning: the sets module is deprecated
  from sets import Set
/usr/local/google_appengine/google/appengine/tools/dev_appserver_login.py:33: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
Server: appengine.google.com.
Traceback (most recent call last):
  File "/home/bshanks/bin/appcfg.py", line 71, in <module>
    run_file(__file__, globals())
  File "/home/bshanks/bin/appcfg.py", line 67, in run_file
    execfile(script_path, globals_)
  File "/usr/local/google_appengine/google/appengine/tools/appcfg.py", line 3100, in <module>
    main(sys.argv)
  File "/usr/local/google_appengine/google/appengine/tools/appcfg.py", line 3091, in main
    result = AppCfgApp(argv).Run()
  File "/usr/local/google_appengine/google/appengine/tools/appcfg.py", line 2013, in Run
    self.action(self)
  File "/usr/local/google_appengine/google/appengine/tools/appcfg.py", line 2943, in __call__
    return method()
  File "/usr/local/google_appengine/google/appengine/tools/appcfg.py", line 2334, in DownloadApp
    updatecheck.CheckForUpdates()
  File "/usr/local/google_appengine/google/appengine/tools/appcfg.py", line 448, in CheckForUpdates
    if self.config.api_version not in api_versions:
AttributeError: 'NoneType' object has no attribute 'api_version'

Feb 13, 2011
#2 sforne...@gmail.com
I have a similar problem running the dev server:
ERROR:root:Could not find version file at /usr/lib/pymodules/python2.6/google/../VERSION
ERROR:root:Exception encountered handling request
Traceback (most recent call last):
  File "/home/stf/naos/dev/web/common/google_appengine/google/appengine/tools/dev_appserver.py", line 3234, in _HandleRequest
    env_dict['SDK_VERSION'] = version['release']
TypeError: 'NoneType' object is unsubscriptable
INFO:root:"GET /home/ HTTP/1.1" 500 -
ERROR:root:Could not find version file at /usr/lib/pymodules/python2.6/google/../VERSION
ERROR:root:Exception encountered handling request
Traceback (most recent call last):
  File "/home/stf/naos/dev/web/common/google_appengine/google/appengine/tools/dev_appserver.py", line 3234, in _HandleRequest
    env_dict['SDK_VERSION'] = version['release']
TypeError: 'NoneType' object is unsubscriptable
INFO:root:"GET /favicon.ico HTTP/1.1" 500 -

Feb 13, 2011
#3 sforne...@gmail.com
with the last 1.4.2 sdk.
Feb 18, 2011
#4 evanmwhe...@gmail.com
I get the same error with 1.4.2 SDK on Ubuntu:

Traceback (most recent call last):
  File "/home/ewheeler/google_appengine/google/appengine/tools/dev_appserver.py", line 3234, in _HandleRequest
    env_dict['SDK_VERSION'] = version['release']

Feb 22, 2011
#5 Bogdan.A...@gmail.com
I have the same problem with Ubuntu 10.0.4. python 2.6 and last google app engine + djangoappengine.
Mar 3, 2011
#7 ttrim...@google.com
(No comment was entered for this change.)
Labels: Component-Tools squash-1
Mar 10, 2011
#8 ttrim...@google.com
(No comment was entered for this change.)
Labels: log-4082307
Mar 14, 2011
#9 ttrim...@google.com
(No comment was entered for this change.)
Status: Started
Owner: ttrim...@google.com
Mar 25, 2011
#10 rodrigo...@gmail.com
I have the same error on two Ubuntu machines.
One is 10.04 and the other is 10.10

It seems the "google.protobuf" module (installed by default on Ubuntu) confuses the SDK, which uses "google.__file__" as a base to find the version file.
Mar 25, 2011
#11 ttrim...@google.com
A fix has been checked in.  It will be released with whatever is after the 1.4.3 release (presumably 1.4.4).
Apr 6, 2011
#12 kabakov...@gmail.com
Still have this issue with GAE 1.4.3, ubuntu 10.10
Apr 6, 2011
#13 kabakov...@gmail.com
Workarounded is to create symlink (No one posted it yet)

sudo ln -s PATH_TO_GAE/google_apps/google_appengine/VERSION /usr/lib/pymodules/python2.6/google/../VERSION

Apr 6, 2011
#14 ttrim...@google.com
This will be fixed in our next release.
Apr 9, 2011
#15 gleb.kuz...@gmail.com
Thanks Kabakov (comment 13).
May 2, 2011
#16 Zhanwu.X...@gmail.com
"Workarounded is to create symlink (No one posted it yet)

sudo ln -s PATH_TO_GAE/google_apps/google_appengine/VERSION /usr/lib/pymodules/python2.6/google/../VERSION"

I suppose this should be 

sudo ln -s PATH_TO_GAE/VERSION /usr/lib/pymodules/python2.6/google/../VERSION
May 10, 2011
Project Member #17 ma...@google.com
(No comment was entered for this change.)
Status: Fixed
Aug 29, 2011
#18 psaikris...@gmail.com
I get the same error in windows 7? How do I resolve this?
Aug 29, 2011
Project Member #19 pro...@google.com
This should be already fixed with 1.5.0 SDK.

Feb 13, 2012
#20 micky1991.abhishek
I am getting the same error on WIndows 7 machine when I try to download the application source code.
Sign in to add a comment

Powered by Google Project Hosting