Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/google-app-engine/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google app engine 转到appengine示例抛出异常_Google App Engine_Go - Fatal编程技术网

Google app engine 转到appengine示例抛出异常

Google app engine 转到appengine示例抛出异常,google-app-engine,go,Google App Engine,Go,我无法让应用程序引擎包附带的go示例正常工作 根据我应该能够运行的文档: cd google_appengine dev_appserver.py helloworld 启动时一切正常,如下终端输出所示: WARNING 2012-10-01 04:32:09,023 rdbms_mysqldb.py:74] The rdbms API is not available because the MySQLdb library could not be loaded. INFO

我无法让应用程序引擎包附带的go示例正常工作

根据我应该能够运行的文档:

cd google_appengine
dev_appserver.py helloworld
启动时一切正常,如下终端输出所示:

WARNING  2012-10-01 04:32:09,023 rdbms_mysqldb.py:74] The rdbms API is not available     because the MySQLdb library could not be loaded.
INFO     2012-10-01 04:32:09,077 appcfg.py:585] Checking for updates to the SDK.
INFO     2012-10-01 04:32:09,728 appcfg.py:603] The SDK is up to date.
INFO     2012-10-01 04:32:09,746 dev_appserver_multiprocess.py:655] Running application dev~helloworld on port 8080: http://localhost:8080
INFO     2012-10-01 04:32:09,746 dev_appserver_multiprocess.py:657] Admin console is available at: http://localhost:8080/_ah/admin
但当我试图查看localhost:8080上提供的页面时,我得到:

<type 'exceptions.Exception'>: ('no .go files in %s', '/home/chris/.google_appengine/demos/helloworld') 
  args = ('no .go files in %s', '/home/chris/.google_appengine/demos/helloworld') 
  message = ''
:('no.go files in%s','/home/chris/.google\u appengine/demos/helloworld')
args=('no.go files in%s','/home/chris/.google\u appengine/demos/helloworld')
消息=“”
这是正确的,在demos/helloworld中没有go文件,而是在demos/helloworld/helloworld中(这是他们的文件夹结构,不是我的)。我试着将文件移动到父文件夹,但不起作用

这是go(1.0.3)和appengine的新安装

顺便说一句,演示文件夹中的所有示例都会出现这种情况

有什么想法吗

你试过这个吗

cd google_appengine
./dev_appserver.py demos/helloworld

我不熟悉app engine,但您设置了吗?这可能与我不熟悉的内容有关,但是否有理由
google\u appengine
之前有一个
?我对您的终端会话感到困惑。你的意思是:
cd google\u appengine;dev_appserver.py demos/helloworld
在App Engine SDK 1.7.2的新版本上对我有效。@RocketDonkey:google_appengine只是一个隐藏文件夹,但更改后,这似乎是问题所在。@chris:太棒了,现在一切都好了吗?如果是这样,很高兴它起了作用!