#πŸ”’ TypeError: ColorTriplet.__new__() takes 1 positional argument but 4 were given

14 messages Β· Page 1 of 1 (latest)

serene vessel
#

Hey Everyone,

I upgraded to Windows 11 about 4 months ago and everything was working fine. At the time, I had python 3.8.10 installed and I also use some PyQt for UI stuff. I had PyQt5 installed. Now, I tried updating to python 3.13.3, but any time I try to pip install either PyQt5 or PySide6 I get the error TypeError: ColorTriplet.new() takes 1 positional argument but 4 were given.

Am I doing something wrong here? I have python in my environment variables and it's not saying it can't do pip anyway. Anyone seen this before or know of a fix?

thin falconBOT
#

@serene vessel

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

serene vessel
#

I should add that I even tried python -m pip install --upgrade pip and got the same error

pine warren
#

What's the full error with stack trace?

dry kraken
#

!paste

thin falconBOT
#
Pasting large amounts of code

So that everyone can easily read your code, you can paste it in this website:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

pine warren
#

@serene vessel

#

From a quick search, though, this looks like this might be related to a version mismatch relating to the library rich. I would try downgrading the version of the library, if you have it as a dependency.

#

Actually, that might not be it. Show the stack trace.

crimson storm
#

yeah that would be a good idea

#

ofc he's ded now

dry kraken
#

pip does vendor rich so a version mismatch is possible, but yeah

thin falconBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.