-
Notifications
You must be signed in to change notification settings - Fork 9
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
Poetry Install Issues with mise (Related to symlink and python3.*dylib missing) #9
Comments
I wonder if this is related to #6 and if this fixes that issue with precompiled binaries. If so, we might want to think about how to incorporate this patch into the plugin |
The provided fix indicated here helped me to correctly install poetry via mise for me too. Perhaps time to push a fix in the plugin ? |
I also ran into the exact same issue and the workaround described by @ethunk fixed it for me. It would be great to incorporate this upstream. |
+1 also ran into this exact issue. Fix described by @ethunk allowed install to work. Thanks! 💟
|
In case this helps anyone, based on the fix above I added the following to my Dockerfile to get
|
Thanks for the fix @ethunk : works like a charm now ! EDIT: Hard to sell to my coworkers, but enough to let me play with mise :) (Ubuntu 22.04, Python 3.11.8, poetry 1.7.1) |
This is biting a lot of people and it's a bad issue. If we're not able to get a fix in, it would be really good for us to have some sort of warning or something, unfortunately it's not easy to detect and there really isn't anything I think we could do when poetry is actually executed. It's probably equally problematic even if users. I have tried to see if I can fix this so poetry just works but I really have no idea what needs to change in order to fix it unfortunately. Maybe in the short term to stop the bleeding, would someone mind modifying this warning to specifically call out poetry? Maybe be super loud if we notice the user is also using the poetry plugin? https://github.com/jdx/mise/blob/main/src/plugins/core/python.rs#L139 |
* Use pre-compiled bins for Python (see mise-plugins/mise-poetry#9 aswell) * Don't use Poetry globally * Remove yarn (we use corepack instead)
What are the blockers for introducing the fix by @ethunk? I had to do the same for my linux system. |
oh right, I forgot about that, I suppose we can try it |
I kept running into issues for installing Poetry using mise.
Local Setup To Reproduce
System: Mac OS (M1)
.tool-versions file:
Command to install and output:
Looking at the log file produced by poetry:
I googled a bunch and found this helpful thread: python-poetry/install.python-poetry.org#24
The solution I found to fix this issue is I manually updated on my local machine the install script for poetry located here:
~/.local/share/mise/plugins/poetry/bin/install
and changed the install script to have the
sed 's/symlinks=False/symlinks=True/'
command.After these changes, the command worked for me and I was able to install poetry again with mise.
The text was updated successfully, but these errors were encountered: