首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >带有Genymotion的Mac上的App Inventor

带有Genymotion的Mac上的App Inventor
EN

Stack Overflow用户
提问于 2017-03-24 04:38:21
回答 1查看 158关注 0票数 0

我正在尝试使用带有Genymotion的Mac上的App Inventor。

当我开始aistarter时,我收到了以下信息

代码语言:javascript
复制
users-MacBook-Pro:~ user$ /Applications/AppInventor/commands-for-Appinventor/aiStarter ; exit;
Bottle server starting up (using WSGIRefServer())...
Listening on http://127.0.0.1:8004/
Hit Ctrl-C to quit.

Shutdown...
Traceback (most recent call last):
  File "<string>", line 129, in <module>
  File "/Users/jis/appinventor-setup/MacOS/aiStarter/build/pyi.darwin/aiStarter/out00-PYZ.pyz/bottle", line 2389, in run
  File "/Users/jis/appinventor-setup/MacOS/aiStarter/build/pyi.darwin/aiStarter/out00-PYZ.pyz/bottle", line 2086, in run
  File "/Users/jis/appinventor-setup/MacOS/aiStarter/build/pyi.darwin/aiStarter/out00-PYZ.pyz/wsgiref.simple_server", line 144, in make_server
  File "/Users/jis/appinventor-setup/MacOS/aiStarter/build/pyi.darwin/aiStarter/out00-PYZ.pyz/SocketServer", line 408, in __init__
  File "/Users/jis/appinventor-setup/MacOS/aiStarter/build/pyi.darwin/aiStarter/out00-PYZ.pyz/wsgiref.simple_server", line 48, in server_bind
  File "/Users/jis/appinventor-setup/MacOS/aiStarter/build/pyi.darwin/aiStarter/out00-PYZ.pyz/BaseHTTPServer", line 108, in server_bind
  File "/Users/jis/appinventor-setup/MacOS/aiStarter/build/pyi.darwin/aiStarter/out00-PYZ.pyz/SocketServer", line 419, in server_bind
  File "/Users/jis/appinventor-setup/MacOS/aiStarter/build/pyi.darwin/aiStarter/out00-PYZ.pyz/socket", line 224, in meth
socket.error: [Errno 48] Address already in use
Killed adb
No matching processes belonging to you were found
No matching processes belonging to you were found
Killed emulator
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

请帮帮忙。

EN

回答 1

Stack Overflow用户

发布于 2017-03-24 04:57:32

看起来您已经在该端口上运行了一个web服务器:

代码语言:javascript
复制
setup/MacOS/aiStarter/build/pyi.darwin/aiStarter/out00-PYZ.pyz/BaseHTTPServer", line 108, in server_bind
  File "/Users/jis/appinventor-setup/MacOS/aiStarter/build/pyi.darwin/aiStarter/out00-PYZ.pyz/SocketServer", line 419, in server_bind
line 224, in meth
socket.error: [Errno 48] Address already in use
    socket.error: [Errno 48] Address already in use

找出该端口上已经在运行的内容,并将其关闭。在任何时候,只能有一个服务侦听给定端口。

您可能有两个副本在运行。如果是这样的话,杀掉他们中的一个。您可以使用以下命令查看终端中当前正在侦听的端口:

代码语言:javascript
复制
sudo lsof  -P -i -n | grep -i listen
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42986515

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档