我正在尝试使用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]
请帮忙。
答案 0 :(得分:1)
看起来你已经在该端口上运行了一个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 listen