<@ULVA73B9P> I'm trying to get a new coworker set ...
# ask-marvin
m
@Marvin I'm trying to get a new coworker set up on Prefect. She has Prefect installed locally in a UV environment on Windows, with nothing else in it. We installed prefect by following the commands in the docs (uv pip install -U prefect), and then tried running with "prefect server start". The API and docs start up, but the dashboard gives an error about being in a dev environment, and gives a command to run the dev dashboard. Running any of the dev commands say that we're not in an editable environment. Any ideas?
m
It seems like your coworker is encountering an issue with running the Prefect dashboard in a development environment. This problem arises because the development UI requires additional setup that isn't typically part of a standard installation. To resolve this, you should ensure that your coworker is working in an editable environment. This involves a few steps: 1. Editable Installation: Prefect's development UI requires an editable installation. This means you need to clone the Prefect repository and install it in editable mode using pip. This can usually be done with the following commands:
Copy code
bash
   git clone <https://github.com/PrefectHQ/prefect.git>
   cd prefect
   pip install -e .
2. Node.js and npm: The development UI requires Node.js and npm. It's recommended to use a version manager like
nvm
to manage Node.js versions. Once you have Node.js and npm installed, navigate to the Prefect repository's root directory and run:
Copy code
bash
   npm install
3. Start the Development UI: After setting up the environment, you can start the development UI with:
Copy code
bash
   npm run dev
These steps should help in setting up the development environment for the Prefect dashboard. For more details, you can refer to the Prefect development contribution guide. If there's any confusion about environment variables or settings, you might find the Prefect settings and profiles documentation useful. It explains how environment variables can be used to configure Prefect settings. If you encounter further issues, feel free to ask!
n
hi @Mike B! is it saying like
Looks like you're using a development version
?
m
@Nate yep, it's saying that exactly
n
hrm can you share
prefect version
output?
m
image.png
b
@Mike B I just found this issue as well. You temporarily need to change back to v3.2.2. I filed a bug ticket for this issue here
๐Ÿ™Œ 1
So like
uv pip install prefect==3.2.2
. I'm sure they will patch 3.2.3 shortly.
n
thanks @Brendan Kennedy - will take a look, this is likely related to https://github.com/PrefectHQ/prefect/pull/17116 we'll get a fix up shortly and yes
uvx prefect@3.2.2 server start
should work for now - sorry about this!
๐Ÿ‘ 1
m
@Nate @Brendan Kennedy thanks a bunch! Working now. Funnily enough she'd started a repo on Friday with 3.2.2 and it worked fine. We created another one today and couldn't figure out what was different ๐Ÿ™ƒ
n
this should be fixed on 3.2.4
Copy code
ยป uvx prefect@latest server start
Installed 95 packages in 178ms

 ___ ___ ___ ___ ___ ___ _____
| _ \ _ \ __| __| __/ __|_   _|
|  _/   / _|| _|| _| (__  | |
|_| |_|_\___|_| |___\___| |_|

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>
sorry about the disruption!