Re: Further information re pip and python3 problem

Phil <[email protected]> Fri, 26 Aug 2022 21:13:10 +1000
Newsgroups gmane.comp.python.wxpython
Message-ID <[email protected]>
Thank you Steve and Anders.

The package for Ubuntu is pretty old Steve, older than the previous=20
version of WxPython that I had installed with pip.

On 26/8/22 20:50, Anders Munch wrote:
>
> This is what Python 3.8 has to say about that issue:
>
>      $ py -3.8 -c "from collections import Mapping"
>      <string>:1: DeprecationWarning: Using or importing the ABCs from 'co=
llections' instead of from 'collections.abc' is deprecated since Python 3.3=
, and in 3.10 it will stop working
>
> One of your packages needs an upgrade to be compatible with Python 3.10.
> Which one it is will probably be apparent from the rest of your traceback=
, which you didn't include.
My Internet connection picked up for awhile and I did read something=20
about ABC. Here is the complete error message and I have installed=20
attrdict.

Defaulting to user installation because normal site-packages is not=20
writeable
Collecting wxPython=3D=3D4.2.0
 =C2=A0 Using cached wxPython-4.2.0.tar.gz (71.0 MB)
 =C2=A0 Preparing metadata (setup.py) ... error
 =C2=A0 error: subprocess-exited-with-error

 =C2=A0 =C3=97 python setup.py egg_info did not run successfully.
 =C2=A0 =E2=94=82 exit code: 1
 =C2=A0 =E2=95=B0=E2=94=80> [12 lines of output]
 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Traceback (most recent call last):
 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 File "<string>", line 2, in <mo=
dule>
 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 File "<pip-setuptools-caller>",=
 line 34, in <module>
 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 File=20
"/tmp/pip-install-pni3i4v8/wxpython_f0b58a701727485f89632f386b537e44/setup.=
py",=20
line 27, in <module>
 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from buildtools.con=
fig import Config, msg, opj, runcmd,=20
canGetSOName, getSOName
 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 File=20
"/tmp/pip-install-pni3i4v8/wxpython_f0b58a701727485f89632f386b537e44/buildt=
ools/config.py",=20
line 30, in <module>
 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from attrdict impor=
t AttrDict
 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 File=20
"/home/phil/.local/lib/python3.10/site-packages/attrdict/__init__.py",=20
line 5, in <module>
 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from attrdict.mappi=
ng import AttrMap
 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 File=20
"/home/phil/.local/lib/python3.10/site-packages/attrdict/mapping.py",=20
line 4, in <module>
 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from collections im=
port Mapping
 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ImportError: cannot import name 'Mapping' f=
rom 'collections'=20
(/usr/lib/python3.10/collections/__init__.py)
 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [end of output]

 =C2=A0 note: This error originates from a subprocess, and is likely not a=
=20
problem with pip.
error: metadata-generation-failed

=C3=97 Encountered error while generating package metadata.
=E2=95=B0=E2=94=80> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

--=20

Regards,
Phil

--=20
You received this message because you are subscribed to the Google Groups "=
wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/=
wxpython-users/316df66a-154c-af23-43da-9733cf9778a2%40gmail.com.