* about add python3 modules
@ 2017-10-30 20:36 Lai Y.C.
2017-10-30 23:02 ` Burton, Ross
0 siblings, 1 reply; 3+ messages in thread
From: Lai Y.C. @ 2017-10-30 20:36 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 669 bytes --]
Hi,
I need to include python3 and some modules on my board. We are using yocto
1.7.1 .
I have included python3 and python3-modules into the image.
Python3 is able to run but there are problems with the modules.
1. when I import "subprocess" module, it gives errors that the module
"_posixsubprocess" is not found. How should I include _posixsubprocess ?
2. There are couple of modules that are installed but they are found when I
used it. i.e. I have the argparse.py in /usr/lib/python3.3. However, the
module is not found when I try to import it. (tested with python3 -c
"import argparse"). Any clue what hasn't be set-up properly?
Thanks
//Ying
[-- Attachment #2: Type: text/html, Size: 908 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: about add python3 modules
2017-10-30 20:36 about add python3 modules Lai Y.C.
@ 2017-10-30 23:02 ` Burton, Ross
2017-10-31 20:21 ` Lai Y.C.
0 siblings, 1 reply; 3+ messages in thread
From: Burton, Ross @ 2017-10-30 23:02 UTC (permalink / raw)
To: Lai Y.C.; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 1218 bytes --]
Hi,
1.7.1 is pretty old, there were some packaging problems. Try adding
python3-misc to the image too.
If that doesn't work, use 'oe-pkgdata-util list-pkg-files -r python3' to
list all the files built by the python3 recipe and to find out what files
are missing.
Ross
On 30 October 2017 at 20:36, Lai Y.C. <yclai017@gmail.com> wrote:
> Hi,
>
> I need to include python3 and some modules on my board. We are using yocto
> 1.7.1 .
> I have included python3 and python3-modules into the image.
> Python3 is able to run but there are problems with the modules.
>
> 1. when I import "subprocess" module, it gives errors that the module
> "_posixsubprocess" is not found. How should I include _posixsubprocess ?
> 2. There are couple of modules that are installed but they are found when
> I used it. i.e. I have the argparse.py in /usr/lib/python3.3. However, the
> module is not found when I try to import it. (tested with python3 -c
> "import argparse"). Any clue what hasn't be set-up properly?
>
> Thanks
>
> //Ying
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>
[-- Attachment #2: Type: text/html, Size: 1945 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: about add python3 modules
2017-10-30 23:02 ` Burton, Ross
@ 2017-10-31 20:21 ` Lai Y.C.
0 siblings, 0 replies; 3+ messages in thread
From: Lai Y.C. @ 2017-10-31 20:21 UTC (permalink / raw)
To: Burton, Ross; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 1410 bytes --]
Hi Ross,
Thanks! It works well after I added python3-misc.
//Ying
2017-10-31 0:02 GMT+01:00 Burton, Ross <ross.burton@intel.com>:
> Hi,
>
> 1.7.1 is pretty old, there were some packaging problems. Try adding
> python3-misc to the image too.
>
> If that doesn't work, use 'oe-pkgdata-util list-pkg-files -r python3' to
> list all the files built by the python3 recipe and to find out what files
> are missing.
>
> Ross
>
> On 30 October 2017 at 20:36, Lai Y.C. <yclai017@gmail.com> wrote:
>
>> Hi,
>>
>> I need to include python3 and some modules on my board. We are using
>> yocto 1.7.1 .
>> I have included python3 and python3-modules into the image.
>> Python3 is able to run but there are problems with the modules.
>>
>> 1. when I import "subprocess" module, it gives errors that the module
>> "_posixsubprocess" is not found. How should I include _posixsubprocess ?
>> 2. There are couple of modules that are installed but they are found when
>> I used it. i.e. I have the argparse.py in /usr/lib/python3.3. However, the
>> module is not found when I try to import it. (tested with python3 -c
>> "import argparse"). Any clue what hasn't be set-up properly?
>>
>> Thanks
>>
>> //Ying
>>
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>
>
[-- Attachment #2: Type: text/html, Size: 2554 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-10-31 20:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-30 20:36 about add python3 modules Lai Y.C.
2017-10-30 23:02 ` Burton, Ross
2017-10-31 20:21 ` Lai Y.C.
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.