-
Notifications
You must be signed in to change notification settings - Fork 91
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 installing wrong package #69
Comments
I have the same problem with the Discord API wrapper. The code for importing the package is Anyways, my problem is that I need to use the master branch of that package's repo, so I added the package manually to the toml file:
But UPM adds
...with two different versions of the same package imported twice. Which is not great. Turning UPM off or stopping it would be a good solution. |
No need for this. Replit just failed to guess the package. To get around this, add Ex. import discord #upm package(discord.py)
|
this shouldn't be needed here, it should just use the right library. |
This is not a scalable way to install Python packages, this should be turned off if packaging metadata is available (and should create that packaging metadata on first run, therefore switching itself off). I.e. the correct thing to do is to defer to pyproject.toml dependencies, and not haphazardly guess from import statements. I keep checking back to find it not fixed, I’d love to try Replit but this is a show stopper for me. I’d really like to see this prioritised and thought I should comment rather than just intermittently checking for progress. |
This dovetails with some of the work we've been doing recently to improve the dependencies search pane, I'll see what can be done to improve this. Thanks for your patience, all, agreed that this should definitely not be up to the user to inform the tool to behave correctly. |
* Explain why this is in here * Some more package renames Resolves #69
Er... I was using this issue to track whether this bug was resolved or not. It just got closed after a list of manual replacements has been added to in #191 ("guess package suggestions"). I don't think this is solving the problem |
@lmmx Sorry for closing this issue without comment, there were a few different threads here that I was trying to address, it looks like I missed the main one.
Yes. Add the following line in the root section of your
This will disable upm guessing entirely. This configuration option is not publicly documented, but there is discussion on Ask, which suggests the omission of that config option in our docs should be addressed. More broadly, work on improving the guesser has continued in #15. Hopefully this resolves the issue, and again I do apologize for not communicating more around how/why this issue was closed. |
Oh thank you for documenting here! Sorry I thought it was just being swept under the rug lol, love to see it! Congrats on solving at long last 😃 |
On PyPi, there are 2 packages called glm: glm and PyGLM. The former is now unmaintained and is (I believe) a json parser, whereas the other is an OpenGL mathematics library. I am developing a library which depends on the latter, but it is imported with
import glm
. However,upm guess
will automatically resolve the dependencies by installingglm
which then screws upPyGLM
. Is there a way to turn offupm guess
from running automatically when I run my repl?The text was updated successfully, but these errors were encountered: