-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CondaError: Run 'conda init' before 'conda activate' #1
Comments
Thanks @M4RT1NJB I have seen that error. It's one of the many Python issues I ran into and referred to in the announcement tweet :) When installing Conda, Conda adds the following initialization code to your shell initialization script:
When you start a server in Pico MLX Server, it will fire up a Process (NSProcess). NSProcess by default ignores the initialization scripts, so Conda's initializer isn't run and Conda will fail with a I added a quick and dirty hack to Pico MLX Server that executes the Conda initialization script every time a new process is started. I simply copied and pasted the initialization code in the Execute.command file in the Bash Commands folder. If you install Conda using Pico MLX Server, it should work. If you installed Conda manually in a custom directory (or maybe older versions of Conda were installed in a different directory), this code will fail. If Conda runs in your terminal but fails in Pico MLX Server, the issue is likely the hardcoded paths in Pico MLX Server's Conda initializer. You can check that by opening your Let me experiment if I can simply run |
@M4RT1NJB Can you check if version 0.1.1 fixes your issue? |
Thanks for the thorough explanation. The next problem is likely user error, or a different issue: Once the server is running I can't get any chat client to work with the API which should be the same as if running from the command line: - odd characters in the log? PicoMLXServer: Directly:
|
@M4RT1NJB can you open a new separate issue for that and add the steps needed to reproduce the issue? Thanks! |
Looks like a nice project, just not sure if I'm doing something wrong or not.
I'm also not sure if the fact that my default shell is zsh is relevant?
In the terminal I can create and activate the pico environment, and run the conda init command when necessary.
I already had (home)brew and Miniconda installed, but it seems the app is falling over when it tries to activate the pico environment during the setup:
I've also tried building in Xcode, but the same error.
Update: Tried it on another Mac, one that didn't already have conda or any mlx libraries installed, and I didn't get the conda init error message, so was able to start a server. I'm guessing there is some difference between the environment on the machines. I will continue to investigate. The machine that it fails on has already got various mlx examples and models working including the mlx_lm http server functioning correctly.
The text was updated successfully, but these errors were encountered: