* [Buildroot] python 3.10.8 pip module seems to be broken in rc3
@ 2022-12-04 14:17 Indrek Kruusa
2022-12-04 14:23 ` James Hilliard
0 siblings, 1 reply; 7+ messages in thread
From: Indrek Kruusa @ 2022-12-04 14:17 UTC (permalink / raw)
To: Buildroot Mailing List
[-- Attachment #1.1: Type: text/plain, Size: 1854 bytes --]
Hi!
I am unable to resolve this error with pip (installed by selecting
python-pip ):
# pip
Traceback (most recent call last):
File "/usr/bin/pip", line 33, in <module>
sys.exit(load_entry_point('pip==21.2.4', 'console_scripts', 'pip')())
File "/usr/bin/pip", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in
load
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in
import_module
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in
_find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in
_call_with_frames_removed
File "/usr/lib/python3.10/site-packages/pip/_internal/cli/main.py", line
9, in <module>
File
"/usr/lib/python3.10/site-packages/pip/_internal/cli/autocompletion.py",
line 10, in <module>
File
"/usr/lib/python3.10/site-packages/pip/_internal/cli/main_parser.py", line
8, in <module>
File "/usr/lib/python3.10/site-packages/pip/_internal/cli/cmdoptions.py",
line 23, in <module>
File "/usr/lib/python3.10/site-packages/pip/_internal/cli/parser.py",
line 12, in <module>
File "/usr/lib/python3.10/site-packages/pip/_internal/configuration.py",
line 21, in <module>
File "/usr/lib/python3.10/site-packages/pip/_internal/exceptions.py",
line 7, in <module>
File
"/usr/lib/python3.10/site-packages/pip/_vendor/pkg_resources/__init__.py",
line 35, in <module>
File "/usr/lib/python3.10/plistlib.py", line 61, in <module>
ModuleNotFoundError: No module named 'xml'
Is this an known issue?
Best regards,
Indrek
[-- Attachment #1.2: Type: text/html, Size: 2396 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Buildroot] python 3.10.8 pip module seems to be broken in rc3
2022-12-04 14:17 [Buildroot] python 3.10.8 pip module seems to be broken in rc3 Indrek Kruusa
@ 2022-12-04 14:23 ` James Hilliard
2022-12-04 15:05 ` Indrek Kruusa
0 siblings, 1 reply; 7+ messages in thread
From: James Hilliard @ 2022-12-04 14:23 UTC (permalink / raw)
To: Indrek Kruusa; +Cc: Buildroot Mailing List
On Sun, Dec 4, 2022 at 10:17 AM Indrek Kruusa <indrek.kruusa@gmail.com> wrote:
>
> Hi!
>
> I am unable to resolve this error with pip (installed by selecting python-pip ):
>
> # pip
> Traceback (most recent call last):
> File "/usr/bin/pip", line 33, in <module>
> sys.exit(load_entry_point('pip==21.2.4', 'console_scripts', 'pip')())
> File "/usr/bin/pip", line 25, in importlib_load_entry_point
> return next(matches).load()
> File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
> File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
> File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
> File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
> File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
> File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 883, in exec_module
> File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
> File "/usr/lib/python3.10/site-packages/pip/_internal/cli/main.py", line 9, in <module>
> File "/usr/lib/python3.10/site-packages/pip/_internal/cli/autocompletion.py", line 10, in <module>
> File "/usr/lib/python3.10/site-packages/pip/_internal/cli/main_parser.py", line 8, in <module>
> File "/usr/lib/python3.10/site-packages/pip/_internal/cli/cmdoptions.py", line 23, in <module>
> File "/usr/lib/python3.10/site-packages/pip/_internal/cli/parser.py", line 12, in <module>
> File "/usr/lib/python3.10/site-packages/pip/_internal/configuration.py", line 21, in <module>
> File "/usr/lib/python3.10/site-packages/pip/_internal/exceptions.py", line 7, in <module>
> File "/usr/lib/python3.10/site-packages/pip/_vendor/pkg_resources/__init__.py", line 35, in <module>
> File "/usr/lib/python3.10/plistlib.py", line 61, in <module>
> ModuleNotFoundError: No module named 'xml'
Maybe needs to select:
BR2_PACKAGE_PYTHON3_PYEXPAT
>
> Is this an known issue?
The python-pip package in general does not work properly on buildroot
since buildroot doesn't provide compilers and such on the target.
>
> Best regards,
> Indrek
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Buildroot] python 3.10.8 pip module seems to be broken in rc3
2022-12-04 14:23 ` James Hilliard
@ 2022-12-04 15:05 ` Indrek Kruusa
2022-12-04 16:58 ` Peter Korsgaard
0 siblings, 1 reply; 7+ messages in thread
From: Indrek Kruusa @ 2022-12-04 15:05 UTC (permalink / raw)
To: James Hilliard, Buildroot Mailing List
[-- Attachment #1.1: Type: text/plain, Size: 2770 bytes --]
Kontakt James Hilliard (<james.hilliard1@gmail.com>) kirjutas kuupäeval P,
4. detsember 2022 kell 16:23:
> On Sun, Dec 4, 2022 at 10:17 AM Indrek Kruusa <indrek.kruusa@gmail.com>
> wrote:
> >
> > Hi!
> >
> > I am unable to resolve this error with pip (installed by selecting
> python-pip ):
> >
> > # pip
> > Traceback (most recent call last):
> > File "/usr/bin/pip", line 33, in <module>
> > sys.exit(load_entry_point('pip==21.2.4', 'console_scripts', 'pip')())
> > File "/usr/bin/pip", line 25, in importlib_load_entry_point
> > return next(matches).load()
> > File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171,
> in load
> > File "/usr/lib/python3.10/importlib/__init__.py", line 126, in
> import_module
> > File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
> > File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
> > File "<frozen importlib._bootstrap>", line 1006, in
> _find_and_load_unlocked
> > File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
> > File "<frozen importlib._bootstrap_external>", line 883, in exec_module
> > File "<frozen importlib._bootstrap>", line 241, in
> _call_with_frames_removed
> > File "/usr/lib/python3.10/site-packages/pip/_internal/cli/main.py",
> line 9, in <module>
> > File
> "/usr/lib/python3.10/site-packages/pip/_internal/cli/autocompletion.py",
> line 10, in <module>
> > File
> "/usr/lib/python3.10/site-packages/pip/_internal/cli/main_parser.py", line
> 8, in <module>
> > File
> "/usr/lib/python3.10/site-packages/pip/_internal/cli/cmdoptions.py", line
> 23, in <module>
> > File "/usr/lib/python3.10/site-packages/pip/_internal/cli/parser.py",
> line 12, in <module>
> > File
> "/usr/lib/python3.10/site-packages/pip/_internal/configuration.py", line
> 21, in <module>
> > File "/usr/lib/python3.10/site-packages/pip/_internal/exceptions.py",
> line 7, in <module>
> > File
> "/usr/lib/python3.10/site-packages/pip/_vendor/pkg_resources/__init__.py",
> line 35, in <module>
> > File "/usr/lib/python3.10/plistlib.py", line 61, in <module>
> > ModuleNotFoundError: No module named 'xml'
>
> Maybe needs to select:
> BR2_PACKAGE_PYTHON3_PYEXPAT
>
Somehow I missed that option. Yes, it fixes the problem.
> >
> > Is this an known issue?
>
> The python-pip package in general does not work properly on buildroot
> since buildroot doesn't provide compilers and such on the target.
>
It makes sense, indeed.
Thanks,
Indrek
>
> >
> > Best regards,
> > Indrek
> > _______________________________________________
> > buildroot mailing list
> > buildroot@buildroot.org
> > https://lists.buildroot.org/mailman/listinfo/buildroot
>
[-- Attachment #1.2: Type: text/html, Size: 4144 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Buildroot] python 3.10.8 pip module seems to be broken in rc3
2022-12-04 15:05 ` Indrek Kruusa
@ 2022-12-04 16:58 ` Peter Korsgaard
2022-12-04 18:28 ` Indrek Kruusa
0 siblings, 1 reply; 7+ messages in thread
From: Peter Korsgaard @ 2022-12-04 16:58 UTC (permalink / raw)
To: Indrek Kruusa; +Cc: James Hilliard, Buildroot Mailing List
>>>>> "Indrek" == Indrek Kruusa <indrek.kruusa@gmail.com> writes:
Hi,
>> Maybe needs to select:
>> BR2_PACKAGE_PYTHON3_PYEXPAT
>>
> Somehow I missed that option. Yes, it fixes the problem.
How did you end up with pip without python3-pyexpat?
python-pip selects python3-setuptools (and ssl), and python3-setuptools
selects pyexpat (and zlib).
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Buildroot] python 3.10.8 pip module seems to be broken in rc3
2022-12-04 16:58 ` Peter Korsgaard
@ 2022-12-04 18:28 ` Indrek Kruusa
2022-12-04 18:51 ` Indrek Kruusa
2022-12-04 19:59 ` Peter Korsgaard
0 siblings, 2 replies; 7+ messages in thread
From: Indrek Kruusa @ 2022-12-04 18:28 UTC (permalink / raw)
To: Peter Korsgaard; +Cc: James Hilliard, Buildroot Mailing List
[-- Attachment #1.1: Type: text/plain, Size: 669 bytes --]
Kontakt Peter Korsgaard (<peter@korsgaard.com>) kirjutas kuupäeval P, 4.
detsember 2022 kell 18:58:
> >>>>> "Indrek" == Indrek Kruusa <indrek.kruusa@gmail.com> writes:
>
> Hi,
>
> >> Maybe needs to select:
> >> BR2_PACKAGE_PYTHON3_PYEXPAT
> >>
>
> > Somehow I missed that option. Yes, it fixes the problem.
>
> How did you end up with pip without python3-pyexpat?
>
> python-pip selects python3-setuptools (and ssl), and python3-setuptools
> selects pyexpat (and zlib).
>
I think I configured the build for python3, built the whole package and
later added python-pip from menuconfig. I can re-test.
>
> --
> Bye, Peter Korsgaard
>
[-- Attachment #1.2: Type: text/html, Size: 1306 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Buildroot] python 3.10.8 pip module seems to be broken in rc3
2022-12-04 18:28 ` Indrek Kruusa
@ 2022-12-04 18:51 ` Indrek Kruusa
2022-12-04 19:59 ` Peter Korsgaard
1 sibling, 0 replies; 7+ messages in thread
From: Indrek Kruusa @ 2022-12-04 18:51 UTC (permalink / raw)
To: Peter Korsgaard; +Cc: James Hilliard, Buildroot Mailing List
[-- Attachment #1.1: Type: text/plain, Size: 945 bytes --]
Kontakt Indrek Kruusa (<indrek.kruusa@gmail.com>) kirjutas kuupäeval P, 4.
detsember 2022 kell 20:28:
>
>
> Kontakt Peter Korsgaard (<peter@korsgaard.com>) kirjutas kuupäeval P, 4.
> detsember 2022 kell 18:58:
>
>> >>>>> "Indrek" == Indrek Kruusa <indrek.kruusa@gmail.com> writes:
>>
>> Hi,
>>
>> >> Maybe needs to select:
>> >> BR2_PACKAGE_PYTHON3_PYEXPAT
>> >>
>>
>> > Somehow I missed that option. Yes, it fixes the problem.
>>
>> How did you end up with pip without python3-pyexpat?
>>
>> python-pip selects python3-setuptools (and ssl), and python3-setuptools
>> selects pyexpat (and zlib).
>>
>
> I think I configured the build for python3, built the whole package and
> later added python-pip from menuconfig. I can re-test.
>
>
I'm unable to repeat this. The only explanation is that I did something
with my .config manually. Sorry for the noise.
>
>
>>
>> --
>> Bye, Peter Korsgaard
>>
>
[-- Attachment #1.2: Type: text/html, Size: 2046 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Buildroot] python 3.10.8 pip module seems to be broken in rc3
2022-12-04 18:28 ` Indrek Kruusa
2022-12-04 18:51 ` Indrek Kruusa
@ 2022-12-04 19:59 ` Peter Korsgaard
1 sibling, 0 replies; 7+ messages in thread
From: Peter Korsgaard @ 2022-12-04 19:59 UTC (permalink / raw)
To: Indrek Kruusa; +Cc: James Hilliard, Buildroot Mailing List
>>>>> "Indrek" == Indrek Kruusa <indrek.kruusa@gmail.com> writes:
Hi,
> I think I configured the build for python3, built the whole package and
> later added python-pip from menuconfig. I can re-test.
Ahh, that explains it. That is not a supported configuration.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2022-12-04 20:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-04 14:17 [Buildroot] python 3.10.8 pip module seems to be broken in rc3 Indrek Kruusa
2022-12-04 14:23 ` James Hilliard
2022-12-04 15:05 ` Indrek Kruusa
2022-12-04 16:58 ` Peter Korsgaard
2022-12-04 18:28 ` Indrek Kruusa
2022-12-04 18:51 ` Indrek Kruusa
2022-12-04 19:59 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.