46

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.

4
  • 1
    Did you upgrade to the 1.7.6 SDK? Some of the commandline parameters changed, I believe high_replication is on by default.
    – dragonx
    Mar 25, 2013 at 6:53
  • Yes, the version is 1.7.6. Thanks for clarifying that, dragonx. In addition, do you have any idea about the first error?
    – Randy Tang
    Mar 25, 2013 at 7:28
  • No clue about the first one, it's probably something with your system setup. I just grepped through the SDK and there's no reference to _sysconfigdata_nd.
    – dragonx
    Mar 25, 2013 at 21:52
  • I think that was a bug because if I used old_dev_appserver.py instead, everything was fine. I have filed a bug report. Thanks a lot.
    – Randy Tang
    Mar 26, 2013 at 3:00

2 Answers 2

107

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/
1
  • 11
    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.
    – Tadeck
    Jun 11, 2013 at 8:28
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:

sudo pip install --upgrade virtualenv
2
  • Works like a charm! (Ubuntu 14.04) Nov 13, 2014 at 10:37
  • 1
    I needed to make the link to upgrade virtualenv, but could remove it afterward.
    – eloyesp
    Apr 30, 2015 at 16:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.