Hello all, I would like to ask if you could perhap...
# prefect-community
j
Hello all, I would like to ask if you could perhaps help me with a problem starting the Prefect Orion server locally, that occurs since version 2.3.0? After excecuting the command
prefect orion start
in windows powershell, the Prefect Orion logo appears with information about the Orion URLs but is immediately followed by the error message:
"Error: Got unexpected extra argument (prefect.orion.api.server:create_app) Orion stopped!"
The problem occurs since version 2.3.0 (it occurs also in 2.3.1 and 2.3.2). Version 2.2.0 works well. My operating system is Windows 10 and I would attach the information from the
prefect version
command into the thread. If you had any idea what could be the cause of the error, you would help me a lot! Thank you very much in advance!
1
API version: 0.8.0 Python version: 3.10.4 Git commit: 6e931ee9 Built: Tue, Sep 6, 2022 12:36 PM OS/Arch: win32/AMD64 Profile: default Server type: ephemeral Server: Database: sqlite SQLite version: 3.39.2
r
I was able to recreate this using Prefect version 2.4.0, I will create a git issue and post it here to follow. Thank you for raising this issue!
j
Thank you very much, @Rob Freedy, for your quick support! I just looked at the issue and it seems that it is a slightly different error. Below, I would attach the error message that I am experiencing. _ _ _ _ _ _ _____ _ _ _ _ _ _ | _ \ _ \ __| __| __/ _| _| / _ \| _ \_ _/ _ \| \| | | _/ / _|| _|| | (_ | | | () | /| | () | .` | |_| |_|_\___|_| |___\___| |_| \___/|_|_\___\___/|_|\_| Configure Prefect to communicate with the server with: prefect config set PREFECT_API_URL=http://127.0.0.1:4200/api View the API reference documentation at http://127.0.0.1:4200/docs Check out the dashboard at http://127.0.0.1:4200 Usage: uvicorn [OPTIONS] APP Try 'uvicorn --help' for help. Error: Got unexpected extra argument (prefect.orion.api.server:create_app) Orion stopped!
r
Do you get the same error on the latest version?
j
Yes, unfortunately the error still appears with version 2.4.0 installed:
prefect orion start
_ _ _ _ _ _ _____ _ _ _ _ _ _ | _ \ _ \ __| __| __/ _| _| / _ \| _ \_ _/ _ \| \| | | _/ / _|| _|| | (_ | | | () | /| | () | .` | |_| |_|_\___|_| |___\___| |_| \___/|_|_\___\___/|_|\_| Configure Prefect to communicate with the server with: prefect config set PREFECT_API_URL=http://127.0.0.1:4200/api View the API reference documentation at http://127.0.0.1:4200/docs Check out the dashboard at http://127.0.0.1:4200 Usage: uvicorn [OPTIONS] APP Try 'uvicorn --help' for help. Error: Got unexpected extra argument (prefect.orion.api.server:create_app) Orion stopped!
Here would be the
prefect version
information: Version: 2.4.0 API version: 0.8.0 Python version: 3.10.4 Git commit: 513639e8 Built: Tue, Sep 13, 2022 2:15 PM OS/Arch: win32/AMD64 Profile: default Server type: ephemeral Server: Database: sqlite SQLite version: 3.39.2
r
Hi Jens, what do you see if you run
pip show prefect
? Based on the output you are seeing from Orion, I suspect this is occurring because the
prefect
Python package is installed in a directory that has a space somewhere in the path name. I was able to reproduce this error when I had a space in Prefect's path, so I created a new GitHub issue here: https://github.com/PrefectHQ/prefect/issues/6821
j
Hi @Ryan Peden, you are right, there is indeed a space in the path name (within my user name)! Please find attached the output of
pip show prefect
: Name: prefect Version: 2.4.0 Summary: Workflow orchestration and management. Home-page: https://github.com/PrefectHQ/prefect/tree/orion Author: Prefect Technologies, Inc. Author-email: help@prefect.io License: Location: c:\users\jens freund\anaconda3\envs\prefect_gitlab\lib\site-packages Requires: aiofiles, aiohttp, aiosqlite, alembic, anyio, asgi-lifespan, asyncpg, click, cloudpickle, coolname, croniter, cryptography, docker, fastapi, fsspec, griffe, httpx, jsonpatch, kubernetes, orjson, packaging, pathspec, pendulum, pydantic, python-slugify, pytz, pyyaml, readchar, rich, slack-sdk, sqlalchemy, toml, typer, typing-extensions, uvicorn Required-by: Thank you very much for your quick support!
I just created a new Windows user without a space in its name and everything works fine now, so the space was indeed the problem! Thank you very much, @Ryan Peden!
r
You're very welcome, Jens! I'm happy to hear this helped you get Prefect running 😃
🙏 2