Eclipse和Google App Engine:ImportError:没有名为_sysconfigdata_nd的模块;无法识别的参数:--high_replication

时间:2022-05-26 04:43:21

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

刚刚升级到Ubuntu 13.04,Eclipse抱怨了以下2个错误:

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.

我从未遇到过第一个。而对于第二个,我曾经通过设置--high_replication参数运行谷歌应用程序引擎应用程序,它运作良好。为什么突然间,这两个没有用?提前致谢。

2 个解决方案

#1


105  

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

“没有名为_sysconfigdata_nd的模块”是Ubuntu软件包中的一个错误。

You can create a softlink as a workaround:

您可以创建一个软链接作为变通方法:

sudo ln -s /usr/lib/python2.7/plat-*/_sysconfigdata_nd.py /usr/lib/python2.7/

#2


27  

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:

根据不同的条件,更新virtualenv实际上可能是一个更好的主意,而不是像链接的错误报告中提到的那样。要更新virtualenv,您可以使用以下命令:

sudo pip install --upgrade virtualenv

#1


105  

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

“没有名为_sysconfigdata_nd的模块”是Ubuntu软件包中的一个错误。

You can create a softlink as a workaround:

您可以创建一个软链接作为变通方法:

sudo ln -s /usr/lib/python2.7/plat-*/_sysconfigdata_nd.py /usr/lib/python2.7/

#2


27  

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:

根据不同的条件,更新virtualenv实际上可能是一个更好的主意,而不是像链接的错误报告中提到的那样。要更新virtualenv,您可以使用以下命令:

sudo pip install --upgrade virtualenv