Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse and Google App Engine: ImportError: No module named _sysconfigdata_nd; unrecognized arguments: --high_replication

Just upgraded to Ubuntu 13.04 and Eclipse complained with the following 2 errors:

1. ImportError: No module named _sysconfigdata_nd  ERROR    2013-03-25 07:26:43,559 http_runtime.py:221] unexpected port response from runtime ['']; exiting the development server ERROR    2013-03-25 07:26:43,561 server.py:576] Request to '/_ah/warmup' failed  2. dev_appserver.py: error: unrecognized arguments: --high_replication 

I've never encountered the first one. And for the second, I used to run google app engine applications by setting the --high_replication argument and it worked well. Why all the sudden, these two didn't work? Thanks in advance.

like image 475
Randy Tang Avatar asked Mar 25 '13 05:03

Randy Tang


2 Answers

The "No module named _sysconfigdata_nd" is a bug in the Ubuntu package.

You can create a softlink as a workaround:

sudo ln -s /usr/lib/python2.7/plat-*/_sysconfigdata_nd.py /usr/lib/python2.7/ 
like image 129
Jon Vaughan Avatar answered Oct 12 '22 11:10

Jon Vaughan


Depending on different conditions, updating virtualenv may actually be a better idea instead of this walkaround, as mentioned on linked bug reports. To update virtualenv you could use the following command:

sudo pip install --upgrade virtualenv 
like image 28
Tadeck Avatar answered Oct 12 '22 10:10

Tadeck