-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
How to disable Poetry 1.1 warnings? #3029
Comments
I was about to ask this :) Please I also need help. I get this:
If I get this warning, obviously I haven't set something up right and all I use these days is python 3.8 It doesn't seem to matter whether I install it with python3: |
@rarenatoe the official installer based installer is designed to run on the currently active interpretor. If you inspect the Alternatively you can also consider installing via |
Is there any chance of getting Specifically,
I don't think that's what actually happens in this case -- it uses the first executable it finds that works, so even if the active interpreter for On all the Ubuntu 18.04 and 20.04 systems I run, |
@adamgreig |
I'm having the same problem on Linux Mint. I have set my personal (.bashrc) to python 3 when using I've found a workaround in editing the shebang in Poetry will now use Python 3 by default and the warning doesn't appear anymore. |
Why do you want to do this? |
Poetry returns a warning. This warning messes with some integrations like the PyCharm plugin. I imagine some other automated tools using poetry will break on this as well. There is another issue IIRC that asks for a way to suppress this warning for this reason. |
I agree with both issues here. If available, poetry should run with About disabling the warnings for python 3.5 and 2, they are not only annoying, they also break this functionality listed on the main page:
Since |
This should be fixed now by #2754 |
I originally posted this as a comment in #3184 (closed). I would also expect that if running get-poetry.py with python3, Sure, it's easy enough to adjust the shebang line manually, but not when installing Poetry in an automated way. How about simply changing the following line in get-poetry.py
to
This first tries Python 3, which doesn't spit out a big warning message. In fact, this is how it is done for Windows:
Is there any reason why this would need to be different in Windows and Linux/MacOS? |
@brechtm (and others) This issue is about hiding/disabling the warning messages. What you are asking for is related, but still a different thing. Maybe open a new ticket if there is not one yet, so that things are easier to track by reading the ticket titles. |
@sinoroc It's all related, if they can just fix the issue then there won't be any need to hide warnings. |
There are 2 distinct but related things that I can identify in this discussion:
The first one is the original reason for this ticket and can be discussed and handled within this ticket. The second one is also very much worth a discussion (and probably worth changes in the code base and/or documentation), but I believe it should happen in a different ticket, in order to make it easier for maintainers to keep track of things. This will also help you get those changes released faster. I just opened the following ticket for this purpose: Related: |
It's not just to improve the UX. This warning really breaks things especially for those tools parsing stdouts. It'll be nice to hide the warning, or redirect it to stderr and let users hide it. |
I'm going to opt to close this for now. While there is still no way to disable these warnings, the new |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'd like to hide:
The text was updated successfully, but these errors were encountered: