cannot import name 'spawn' from 'pexpect' #1617
Replies: 2 comments 1 reply
-
All I know is pexpect does not work with a windows environment and is meant for linux which means you need wexpect. That's where my knowledge on how to fix this ends. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@Saurabh-17062022 you can have a look at this https://opendevin.github.io/OpenDevin/modules/usage/troubleshooting#unable-to-connect-to-ssh-box . try to set the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
PS C:\Users\saurabh.m\OneDrive - Zycus\Desktop\Devin ai\OpenDevin> uvicorn opendevin.server.listen:app --port 3000
ERROR:root: File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\saurabh.m\AppData\Roaming\Python\Python312\Scripts\uvicorn.exe_main.py", line 7, in
sys.exit(main())
^^^^^^
File "C:\Users\saurabh.m\AppData\Roaming\Python\Python312\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\saurabh.m\AppData\Roaming\Python\Python312\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Users\saurabh.m\AppData\Roaming\Python\Python312\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\saurabh.m\AppData\Roaming\Python\Python312\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\saurabh.m\AppData\Roaming\Python\Python312\site-packages\uvicorn\main.py", line 409, in main
run(
File "C:\Users\saurabh.m\AppData\Roaming\Python\Python312\site-packages\uvicorn\main.py", line 575, in run
server.run()
File "C:\Users\saurabh.m\AppData\Roaming\Python\Python312\site-packages\uvicorn\server.py", line 65, in run
return asyncio.run(self.serve(sockets=sockets))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python312\Lib\asyncio\runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\Program Files\Python312\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python312\Lib\asyncio\base_events.py", line 685, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "C:\Users\saurabh.m\AppData\Roaming\Python\Python312\site-packages\uvicorn\server.py", line 69, in serve
await self._serve(sockets)
File "C:\Users\saurabh.m\AppData\Roaming\Python\Python312\site-packages\uvicorn\server.py", line 76, in serve
config.load()
File "C:\Users\saurabh.m\AppData\Roaming\Python\Python312\site-packages\uvicorn\config.py", line 433, in load
self.loaded_app = import_from_string(self.app)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\saurabh.m\AppData\Roaming\Python\Python312\site-packages\uvicorn\importer.py", line 19, in import_from_string
module = importlib.import_module(module_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python312\Lib\importlib_init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in load_unlocked
File "", line 995, in exec_module
File "", line 488, in call_with_frames_removed
File "C:\Users\saurabh.m\OneDrive - Zycus\Desktop\Devin ai\OpenDevin\opendevin\server\listen.py", line 13, in
import agenthub # noqa F401 (we import this to get the agents registered)
^^^^^^^^^^^^^^^
File "C:\Users\saurabh.m\OneDrive - Zycus\Desktop\Devin ai\OpenDevin\agenthub_init.py", line 3, in
from opendevin.agent import Agent
File "C:\Users\saurabh.m\OneDrive - Zycus\Desktop\Devin ai\OpenDevin\opendevin\agent.py", line 9, in
from opendevin.sandbox.plugins import PluginRequirement
File "C:\Users\saurabh.m\OneDrive - Zycus\Desktop\Devin ai\OpenDevin\opendevin\sandbox_init.py", line 3, in
from .docker.ssh_box import DockerSSHBox
File "C:\Users\saurabh.m\OneDrive - Zycus\Desktop\Devin ai\OpenDevin\opendevin\sandbox\docker\ssh_box.py", line 12, in
from pexpect import pxssh
File "C:\Users\saurabh.m\AppData\Roaming\Python\Python312\site-packages\pexpect\pxssh.py", line 23, in
from pexpect import ExceptionPexpect, TIMEOUT, EOF, spawn
ERROR:root:<class 'ImportError'>: cannot import name 'spawn' from 'pexpect'
this is the error i am getting when running uvicorn opendevin.server.listen:app --port 3000
kindly help with accurate solution. Thank You
Beta Was this translation helpful? Give feedback.
All reactions