Jens Freund
09/13/2022, 8:03 PMprefect 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!Rob Freedy
09/13/2022, 9:30 PMJens Freund
09/13/2022, 10:05 PMRob Freedy
09/13/2022, 10:15 PMJens Freund
09/13/2022, 10:24 PMprefect 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!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.2Ryan Peden
09/14/2022, 3:13 AMpip 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/6821Jens Freund
09/14/2022, 9:42 AMpip 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!Ryan Peden
09/14/2022, 11:31 AM