我正在尝试使用带有Genymotion的Mac上的App Inventor。
当我开始aistarter时,我收到了以下信息
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]请帮帮忙。
发布于 2017-03-24 04:57:32
看起来您已经在该端口上运行了一个web服务器:
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找出该端口上已经在运行的内容,并将其关闭。在任何时候,只能有一个服务侦听给定端口。
您可能有两个副本在运行。如果是这样的话,杀掉他们中的一个。您可以使用以下命令查看终端中当前正在侦听的端口:
sudo lsof -P -i -n | grep -i listenhttps://stackoverflow.com/questions/42986515
复制相似问题