Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Don't think; let the machine do it for you!" -- E. C. Berkeley


devel / comp.lang.python / Re: PyQt5 is not recognized from python 3.8 installation in python 3.10

SubjectAuthor
* Re: PyQt5 is not recognized from python 3.8 installation in pythonBarry
`- Re: PyQt5 is not recognized from python 3.8 installation in python 3.10Mohsen Owzar

1
Re: PyQt5 is not recognized from python 3.8 installation in python 3.10

<mailman.459.1629757519.4164.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=14730&group=comp.lang.python#14730

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!aioe.org!news.mixmin.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: bar...@barrys-emacs.org (Barry)
Newsgroups: comp.lang.python
Subject: Re: PyQt5 is not recognized from python 3.8 installation in python
3.10
Date: Mon, 23 Aug 2021 23:25:15 +0100
Lines: 96
Message-ID: <mailman.459.1629757519.4164.python-list@python.org>
References: <dc0108a8-e96a-d2dc-7c3b-6929f7d1305d@wichmann.us>
<88C8C3AA-CE17-4A31-9883-54561DFDC018@barrys-emacs.org>
Mime-Version: 1.0 (1.0)
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de 8nbjy3Kzx+BtxIHMXbltLQbfybV2Q6mkM6e7SBF9QkVg==
Return-Path: <barry@barrys-emacs.org>
X-Original-To: Python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '(which': 0.04; 'pip':
0.04; 'traceback': 0.04; '(most': 0.05; '3.8': 0.05; 'error:':
0.05; 'laptop.': 0.05; 'last):': 0.05; 'pypi': 0.05;
'subject:python': 0.06; 'e.g.': 0.07; 'exit': 0.07; 'url:mailman':
0.09; 'anyway,': 0.09; 'aug': 0.09; 'barry': 0.09; 'cc:addr
:python-list': 0.09; 'collecting': 0.09; 'compiler': 0.09;
'dependencies': 0.09; 'explicit': 0.09; 'from:addr:barry': 0.09;
'guys,': 0.09; 'idle': 0.09; 'received:217.70': 0.09;
'received:gandi.net': 0.09; 'received:mail.gandi.net': 0.09;
'subject:installation': 0.09; 'subject:not': 0.09; 'theory': 0.09;
'trivial': 0.09; 'looks': 0.11; 'cc:no real name:2**0': 0.13;
'problem': 0.15; "(there's": 0.16; '3.10': 0.16; '_are_': 0.16;
'command:': 0.16; 'extensions': 0.16; 'from:addr:barrys-
emacs.org': 0.16; 'installed.': 0.16; 'mats': 0.16; 'message-id
:@barrys-emacs.org': 0.16; 'module,': 0.16; 'pyqt5': 0.16;
'setup,': 0.16; "skip:' 120": 0.16; 'subject:3.10': 0.16;
'subject:3.8': 0.16; 'subject:PyQt5': 0.16; 'to:name:mats
wichmann': 0.16; 'wichmann': 0.16; 'windows.': 0.16; 'wrote:':
0.16; 'says': 0.16; 'url:listinfo': 0.16; 'python': 0.16;
'developer': 0.17; 'cc:addr:python.org': 0.19; 'installing': 0.20;
'maybe': 0.20; 'installed': 0.20; 'url-ip:188.166.95.178/32':
0.20; 'url-ip:188.166.95/24': 0.20; 'install': 0.22; 'version':
0.22; 'url-ip:188.166/16': 0.23; 'progress': 0.23; 'command':
0.24; 'laptop': 0.24; 'lines': 0.24; 'run': 0.24; 'code': 0.24;
'section': 0.26; 'skip:p 30': 0.26; 'tried': 0.26; 'cc:2**0':
0.27; '(as': 0.27; 'binary': 0.27; 'done': 0.28; 'module': 0.28;
'output': 0.28; 'error': 0.28; 'url-ip:188/8': 0.29; "isn't":
0.29; 'it,': 0.31; 'there': 0.31; 'but': 0.31; 'am,': 0.31;
'fact': 0.31; 'brings': 0.32; "skip:' 40": 0.32; 'skip:= 50':
0.32; 'using': 0.33; 'unless': 0.33; 'header:In-Reply-To:1': 0.33;
'url:edu': 0.34; 'same': 0.34; 'subject:from': 0.35; 'release':
0.35; 'complex': 0.35; 'usual': 0.35; 'trying': 0.36; 'windows':
0.36; 'able': 0.36; 'two': 0.37; 'people': 0.37; 'way': 0.37;
"that's": 0.37; 'file': 0.38; "it's": 0.38; 'something': 0.38;
'going': 0.38; 'use': 0.38; 'means': 0.40; 'build': 0.40;
'messages': 0.40; 'package': 0.40; 'built': 0.40; 'pretty': 0.40;
"skip:' 10": 0.40; 'skip:e 10': 0.60; 'complete': 0.61;
'requirements': 0.61; 'well.': 0.61; 'check': 0.62; 'here': 0.62;
'once': 0.64; 'your': 0.64; 'experience': 0.64; 'well': 0.66;
'right': 0.66; 'suite': 0.67; 'listed': 0.67; 'received:217':
0.68; 'candidate': 0.69; 'skip:b 40': 0.69; 'below': 0.71;
'interesting': 0.71; 'tools': 0.75; 'released': 0.75; 'attribute':
0.84; 'indicates': 0.84; 'mb)': 0.84; 'mismatch': 0.84; 'newest':
0.84; 'newly': 0.93
In-Reply-To: <dc0108a8-e96a-d2dc-7c3b-6929f7d1305d@wichmann.us>
X-Mailer: iPad Mail (18G82)
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <88C8C3AA-CE17-4A31-9883-54561DFDC018@barrys-emacs.org>
X-Mailman-Original-References: <dc0108a8-e96a-d2dc-7c3b-6929f7d1305d@wichmann.us>
 by: Barry - Mon, 23 Aug 2021 22:25 UTC

> On 23 Aug 2021, at 00:00, Mats Wichmann <mats@wichmann.us> wrote:
>
> On 8/22/21 7:04 AM, Mohsen Owzar wrote:
>> Hi guys,
>> I have on my laptop the python installation 3.8 and newly I installed newest version 3.10 as well on my laptop.
>> Now I have two IDLEs for both of the installations.
>> When I rund some *.py file, having PyQt5 module, on the 3.8 version, it works as before without any problems.
>> But whenn I run the same file on IDLE with 3.10 installation, it crashes and says that PyQt5 is not known.
>> I tried to install this package with"pip install pyqt5" or with "py -3 -m pip install pyqt5", it brings lots of error messages (long long) as the lines below (they are only the beginning of the messages):
>
> make sure you're getting the right Python by doing
>
> py -3.10 -m pip install pyqt5
>
> (the fact you're getting the build error below indicates you _are_ getting the right one, but it's good to be explicit anyway, just so you're sure).
>
>> =================================================>> C:\Users\Mohsen>py -3 -m pip install pyqt5
>> Collecting pyqt5
>> Using cached PyQt5-5.15.4.tar.gz (3.3 MB)
>> Installing build dependencies ... done
>> Getting requirements to build wheel ... done
>> Preparing wheel metadata ... error
>> ERROR: Command errored out with exit status 1:
>> command: 'C:\Users\Mohsen\AppData\Local\Programs\Python\Python310\python.exe' 'C:\Users\Mohsen\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\Mohsen\AppData\Local\Temp\tmprax0esmt'
>> cwd: C:\Users\Mohsen\AppData\Local\Temp\pip-install-wl_b58e9\pyqt5_1cbd1bab46fa4abaad34b55514561ce6
>> Complete output (33 lines):
>> Querying qmake about your Qt installation...
>> C:\Qt\4.7.4\bin\qmake.exe -query
>> Traceback (most recent call last):
>> File "C:\Users\Mohsen\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 143, in prepare_metadata_for_build_wheel
>> hook = backend.prepare_metadata_for_build_wheel
>> AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
>
> Your problem here is that there's no released binary wheel for PyQt5, since Py 3.10 isn't released (there's been some recent chatter about encouraging projects to make builds for new Python versions available early, e.g. once a Python version hits release candidate state, but that's just that - chatter - for now).
>
> In theory your system should be able to build it, but my experience is that unless you're an active Python developer on Windows and already have the right working setup, it pretty much always fails. These are the perils of trying to use a pre-release...
>
> That error suggests there's something different going on than usual (which has to do with the MSVC compiler suite not being set up the way the package expects): there looks like a version mismatch - it looks like it's finding qmake for Qt4, not Qt5. Maybe you can make some progress by adjusting some paths?

Only trivial C code extensions can be built on windows.
And then only if you have the right MSVC tools installed.
Most interesting extensions have dependencies only other software.
Which means that you need to know how to build all the dependencies as well.

For something as complex as PyQt5 you need to be a developer with reasonable experience to build it.

Check on PyPI for the available versions and install one of them.

Barry

>
> Many people go here to get early-access, albeit unofficial, binary wheels:
>
> https://www.lfd.uci.edu/~gohlke/pythonlibs
>
> Unfortunately, PyQt5 is not available from there (as listed in the section at the very bottom)
>
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>

Re: PyQt5 is not recognized from python 3.8 installation in python 3.10

<98484d2a-359a-46f4-a813-4fbc3e999876n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=14732&group=comp.lang.python#14732

  copy link   Newsgroups: comp.lang.python
X-Received: by 2002:ac8:43ca:: with SMTP id w10mr8883414qtn.326.1629781604442;
Mon, 23 Aug 2021 22:06:44 -0700 (PDT)
X-Received: by 2002:ac8:7d88:: with SMTP id c8mr24424706qtd.208.1629781604212;
Mon, 23 Aug 2021 22:06:44 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.python
Date: Mon, 23 Aug 2021 22:06:44 -0700 (PDT)
In-Reply-To: <mailman.459.1629757519.4164.python-list@python.org>
Injection-Info: google-groups.googlegroups.com; posting-host=31.165.67.106; posting-account=BtTavwoAAACMi3AFrA3U-JBERbxGUGhD
NNTP-Posting-Host: 31.165.67.106
References: <88C8C3AA-CE17-4A31-9883-54561DFDC018@barrys-emacs.org>
<dc0108a8-e96a-d2dc-7c3b-6929f7d1305d@wichmann.us> <mailman.459.1629757519.4164.python-list@python.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <98484d2a-359a-46f4-a813-4fbc3e999876n@googlegroups.com>
Subject: Re: PyQt5 is not recognized from python 3.8 installation in python 3.10
From: mohsen.o...@gmail.com (Mohsen Owzar)
Injection-Date: Tue, 24 Aug 2021 05:06:44 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Mohsen Owzar - Tue, 24 Aug 2021 05:06 UTC

Barry schrieb am Dienstag, 24. August 2021 um 00:25:38 UTC+2:
> > On 23 Aug 2021, at 00:00, Mats Wichmann <ma...@wichmann.us> wrote:
> >
> > On 8/22/21 7:04 AM, Mohsen Owzar wrote:
> >> Hi guys,
> >> I have on my laptop the python installation 3.8 and newly I installed newest version 3.10 as well on my laptop.
> >> Now I have two IDLEs for both of the installations.
> >> When I rund some *.py file, having PyQt5 module, on the 3.8 version, it works as before without any problems.
> >> But whenn I run the same file on IDLE with 3.10 installation, it crashes and says that PyQt5 is not known.
> >> I tried to install this package with"pip install pyqt5" or with "py -3 -m pip install pyqt5", it brings lots of error messages (long long) as the lines below (they are only the beginning of the messages):
> >
> > make sure you're getting the right Python by doing
> >
> > py -3.10 -m pip install pyqt5
> >
> > (the fact you're getting the build error below indicates you _are_ getting the right one, but it's good to be explicit anyway, just so you're sure).
> >
> >> ==================================================
> >> C:\Users\Mohsen>py -3 -m pip install pyqt5
> >> Collecting pyqt5
> >> Using cached PyQt5-5.15.4.tar.gz (3.3 MB)
> >> Installing build dependencies ... done
> >> Getting requirements to build wheel ... done
> >> Preparing wheel metadata ... error
> >> ERROR: Command errored out with exit status 1:
> >> command: 'C:\Users\Mohsen\AppData\Local\Programs\Python\Python310\python.exe' 'C:\Users\Mohsen\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\Mohsen\AppData\Local\Temp\tmprax0esmt'
> >> cwd: C:\Users\Mohsen\AppData\Local\Temp\pip-install-wl_b58e9\pyqt5_1cbd1bab46fa4abaad34b55514561ce6
> >> Complete output (33 lines):
> >> Querying qmake about your Qt installation...
> >> C:\Qt\4.7.4\bin\qmake.exe -query
> >> Traceback (most recent call last):
> >> File "C:\Users\Mohsen\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 143, in prepare_metadata_for_build_wheel
> >> hook = backend.prepare_metadata_for_build_wheel
> >> AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
> >
> > Your problem here is that there's no released binary wheel for PyQt5, since Py 3.10 isn't released (there's been some recent chatter about encouraging projects to make builds for new Python versions available early, e.g. once a Python version hits release candidate state, but that's just that - chatter - for now).
> >
> > In theory your system should be able to build it, but my experience is that unless you're an active Python developer on Windows and already have the right working setup, it pretty much always fails. These are the perils of trying to use a pre-release...
> >
> > That error suggests there's something different going on than usual (which has to do with the MSVC compiler suite not being set up the way the package expects): there looks like a version mismatch - it looks like it's finding qmake for Qt4, not Qt5. Maybe you can make some progress by adjusting some paths?
> Only trivial C code extensions can be built on windows.
> And then only if you have the right MSVC tools installed.
> Most interesting extensions have dependencies only other software.
> Which means that you need to know how to build all the dependencies as well.
>
> For something as complex as PyQt5 you need to be a developer with reasonable experience to build it.
>
> Check on PyPI for the available versions and install one of them.
>
> Barry
> >
> > Many people go here to get early-access, albeit unofficial, binary wheels:
> >
> > https://www.lfd.uci.edu/~gohlke/pythonlibs
> >
> > Unfortunately, PyQt5 is not available from there (as listed in the section at the very bottom)
> >
> >
> > --
> > https://mail.python.org/mailman/listinfo/python-list
> >
Thanks a lot for your answers.
That's true. I had a project which used Qt4.7, and I have still on my laptop.
I have not so big knowledge about compiling and building stuff, so I have to get rid of 3.10 version.
OK, then I try to remove Python 3.10 and to install 3.9.6.
Best regards
Mohsen

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor