All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [sumo][python3] Generated SDK missing sqlite3
@ 2018-04-16 18:18 Davis, Michael
  2018-04-17  1:07 ` Alejandro Enedino Hernandez Samaniego
  0 siblings, 1 reply; 9+ messages in thread
From: Davis, Michael @ 2018-04-16 18:18 UTC (permalink / raw)
  To: Davis, Michael, openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1605 bytes --]

Adding python3-misc to the SDK seems to have solved the issue.
I saw some commits about separating the two so perhaps this is a side effect?

From: Davis, Michael
Sent: Monday, April 16, 2018 11:04 AM
To: 'openembedded-core@lists.openembedded.org'
Subject: [OE-CORE][sumo][python3] Generated SDK missing sqlite3

Testing out the upcoming sumo release and ran into an issue.  Whenever I attempt to generate an sdk-ext with sumo I get a failure about missing sqlite3.
Traceback (most recent call last):
 File "/home/mdavis/core_sdk/sysroots/x86_64-pokysdk-linux/usr/bin/devtool", line 344, in <module>
   ret = main()
 File "/home/mdavis/core_sdk/sysroots/x86_64-pokysdk-linux/usr/bin/devtool", line 285, in main
   scriptutils.logger_setup_color(logger, global_args.color)
 File "/home/mdavis/core_sdk/layers/core/scripts/lib/scriptutils.py", line 38, in logger_setup_color
   from bb.msg import BBLogFormatter
 File "/home/mdavis/core_sdk/layers/core/bitbake/lib/bb/__init__.py", line 79, in <module>
   from bb import fetch2 as fetch
 File "/home/mdavis/core_sdk/layers/core/bitbake/lib/bb/fetch2/__init__.py", line 39, in <module>
   import bb.persist_data, bb.utils
 File "/home/mdavis/core_sdk/layers/core/bitbake/lib/bb/persist_data.py", line 33, in <module>
   sqlversion = sqlite3.sqlite_version_info
AttributeError: module 'sqlite3' has no attribute 'sqlite_version_info'

The issue seems to be isolated only to python3. The sdk partially installs and I am able to source it.  I created a small python sqlite app and was able to run it properly with python2, but not 3.


[-- Attachment #2: Type: text/html, Size: 4763 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [sumo][python3] Generated SDK missing sqlite3
  2018-04-16 18:18 [sumo][python3] Generated SDK missing sqlite3 Davis, Michael
@ 2018-04-17  1:07 ` Alejandro Enedino Hernandez Samaniego
  2018-04-17 13:50   ` Davis, Michael
  0 siblings, 1 reply; 9+ messages in thread
From: Alejandro Enedino Hernandez Samaniego @ 2018-04-17  1:07 UTC (permalink / raw)
  To: Davis, Michael, openembedded-core

[-- Attachment #1: Type: text/plain, Size: 2150 bytes --]

Which commit are you using?

https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=4379b29e7eede727993ee68c9eba2bdebace5108

In any case, that one should've solved it.

Alejandro

From: openembedded-core-bounces@lists.openembedded.org [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf Of Davis, Michael
Sent: Monday, April 16, 2018 11:19 AM
To: Davis, Michael <michael.davis@essvote.com>; openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [OE-CORE][sumo][python3] Generated SDK missing sqlite3

Adding python3-misc to the SDK seems to have solved the issue.
I saw some commits about separating the two so perhaps this is a side effect?

From: Davis, Michael
Sent: Monday, April 16, 2018 11:04 AM
To: 'openembedded-core@lists.openembedded.org'
Subject: [OE-CORE][sumo][python3] Generated SDK missing sqlite3

Testing out the upcoming sumo release and ran into an issue.  Whenever I attempt to generate an sdk-ext with sumo I get a failure about missing sqlite3.
Traceback (most recent call last):
 File "/home/mdavis/core_sdk/sysroots/x86_64-pokysdk-linux/usr/bin/devtool", line 344, in <module>
   ret = main()
 File "/home/mdavis/core_sdk/sysroots/x86_64-pokysdk-linux/usr/bin/devtool", line 285, in main
   scriptutils.logger_setup_color(logger, global_args.color)
 File "/home/mdavis/core_sdk/layers/core/scripts/lib/scriptutils.py", line 38, in logger_setup_color
   from bb.msg import BBLogFormatter
 File "/home/mdavis/core_sdk/layers/core/bitbake/lib/bb/__init__.py", line 79, in <module>
   from bb import fetch2 as fetch
 File "/home/mdavis/core_sdk/layers/core/bitbake/lib/bb/fetch2/__init__.py", line 39, in <module>
   import bb.persist_data, bb.utils
 File "/home/mdavis/core_sdk/layers/core/bitbake/lib/bb/persist_data.py", line 33, in <module>
   sqlversion = sqlite3.sqlite_version_info
AttributeError: module 'sqlite3' has no attribute 'sqlite_version_info'

The issue seems to be isolated only to python3. The sdk partially installs and I am able to source it.  I created a small python sqlite app and was able to run it properly with python2, but not 3.


[-- Attachment #2: Type: text/html, Size: 6362 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [sumo][python3] Generated SDK missing sqlite3
  2018-04-17  1:07 ` Alejandro Enedino Hernandez Samaniego
@ 2018-04-17 13:50   ` Davis, Michael
  2018-04-17 16:27     ` Burton, Ross
  0 siblings, 1 reply; 9+ messages in thread
From: Davis, Michael @ 2018-04-17 13:50 UTC (permalink / raw)
  To: Alejandro Enedino Hernandez Samaniego, openembedded-core

[-- Attachment #1: Type: text/plain, Size: 2933 bytes --]

I was on the HEAD of sumo(commit d012a9acdc3dce014705224a1261145628e75931) so that commit was already included when I had the issue.  Just generated another test today and the issue was still there.  If I remove native-python3-misc from TOOLCHAIN_HOST_TASK it fails on installing the SDK.  With it there it succeeds.

Mike



From: Alejandro Enedino Hernandez Samaniego [mailto:alejandr@xilinx.com]
Sent: Monday, April 16, 2018 8:07 PM
To: Davis, Michael; openembedded-core@lists.openembedded.org
Subject: RE: [OE-CORE][sumo][python3] Generated SDK missing sqlite3

Which commit are you using?

https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=4379b29e7eede727993ee68c9eba2bdebace5108

In any case, that one should've solved it.

Alejandro

From: openembedded-core-bounces@lists.openembedded.org<mailto:openembedded-core-bounces@lists.openembedded.org> [mailto:openembedded-core-bounces@lists.openembedded.org]<mailto:[mailto:openembedded-core-bounces@lists.openembedded.org]> On Behalf Of Davis, Michael
Sent: Monday, April 16, 2018 11:19 AM
To: Davis, Michael <michael.davis@essvote.com<mailto:michael.davis@essvote.com>>; openembedded-core@lists.openembedded.org<mailto:openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [OE-CORE][sumo][python3] Generated SDK missing sqlite3

Adding python3-misc to the SDK seems to have solved the issue.
I saw some commits about separating the two so perhaps this is a side effect?

From: Davis, Michael
Sent: Monday, April 16, 2018 11:04 AM
To: 'openembedded-core@lists.openembedded.org'
Subject: [OE-CORE][sumo][python3] Generated SDK missing sqlite3

Testing out the upcoming sumo release and ran into an issue.  Whenever I attempt to generate an sdk-ext with sumo I get a failure about missing sqlite3.
Traceback (most recent call last):
 File "/home/mdavis/core_sdk/sysroots/x86_64-pokysdk-linux/usr/bin/devtool", line 344, in <module>
   ret = main()
 File "/home/mdavis/core_sdk/sysroots/x86_64-pokysdk-linux/usr/bin/devtool", line 285, in main
   scriptutils.logger_setup_color(logger, global_args.color)
 File "/home/mdavis/core_sdk/layers/core/scripts/lib/scriptutils.py", line 38, in logger_setup_color
   from bb.msg import BBLogFormatter
 File "/home/mdavis/core_sdk/layers/core/bitbake/lib/bb/__init__.py", line 79, in <module>
   from bb import fetch2 as fetch
 File "/home/mdavis/core_sdk/layers/core/bitbake/lib/bb/fetch2/__init__.py", line 39, in <module>
   import bb.persist_data, bb.utils
 File "/home/mdavis/core_sdk/layers/core/bitbake/lib/bb/persist_data.py", line 33, in <module>
   sqlversion = sqlite3.sqlite_version_info
AttributeError: module 'sqlite3' has no attribute 'sqlite_version_info'

The issue seems to be isolated only to python3. The sdk partially installs and I am able to source it.  I created a small python sqlite app and was able to run it properly with python2, but not 3.


[-- Attachment #2: Type: text/html, Size: 8464 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [sumo][python3] Generated SDK missing sqlite3
  2018-04-17 13:50   ` Davis, Michael
@ 2018-04-17 16:27     ` Burton, Ross
  2018-04-17 19:41       ` Alejandro Enedino Hernandez Samaniego
  0 siblings, 1 reply; 9+ messages in thread
From: Burton, Ross @ 2018-04-17 16:27 UTC (permalink / raw)
  To: Davis, Michael; +Cc: openembedded-core

Work for me with plain oe-core:

$ ./poky-glibc-x86_64-core-image-minimal-corei7-64-toolchain-ext-2.4+snapshot.sh
Poky (Yocto Project Reference Distro) Extensible SDK installer version
2.4+snapshot
===================================================================================
Enter target directory for SDK (default: ~/poky_sdk):
You are about to install the SDK to "/home/ross/poky_sdk". Proceed[Y/n]? y
Extracting SDK.......................................................................done
Setting it up...
Extracting buildtools...
Preparing build system...
Parsing recipes: 100%
|##############################################################################|
Time: 0:00:10
Initialising tasks: 100%
|###########################################################################|
Time: 0:00:07
Checking sstate mirror object availability: 100%
|###################################################| Time: 0:00:00
Loading cache: 100%
|################################################################################|
Time: 0:00:00
Initialising tasks: 100%
|###########################################################################|
Time: 0:00:00
done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to
source the environment setup script e.g.
 $ . /home/ross/poky_sdk/environment-setup-corei7-64-poky-linux

Obviously something is different, how are you reproducing this?

Ross

On 17 April 2018 at 14:50, Davis, Michael <michael.davis@essvote.com> wrote:
> I was on the HEAD of sumo(commit d012a9acdc3dce014705224a1261145628e75931)
> so that commit was already included when I had the issue.  Just generated
> another test today and the issue was still there.  If I remove
> native-python3-misc from TOOLCHAIN_HOST_TASK it fails on installing the SDK.
> With it there it succeeds.
>
>
>
> Mike
>
>
>
>
>
>
>
> From: Alejandro Enedino Hernandez Samaniego [mailto:alejandr@xilinx.com]
> Sent: Monday, April 16, 2018 8:07 PM
> To: Davis, Michael; openembedded-core@lists.openembedded.org
> Subject: RE: [OE-CORE][sumo][python3] Generated SDK missing sqlite3
>
>
>
> Which commit are you using?
>
>
>
> https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=4379b29e7eede727993ee68c9eba2bdebace5108
>
>
>
> In any case, that one should’ve solved it.
>
>
>
> Alejandro
>
>
>
> From: openembedded-core-bounces@lists.openembedded.org
> [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf Of
> Davis, Michael
> Sent: Monday, April 16, 2018 11:19 AM
> To: Davis, Michael <michael.davis@essvote.com>;
> openembedded-core@lists.openembedded.org
> Subject: Re: [OE-core] [OE-CORE][sumo][python3] Generated SDK missing
> sqlite3
>
>
>
> Adding python3-misc to the SDK seems to have solved the issue.
>
> I saw some commits about separating the two so perhaps this is a side
> effect?
>
>
>
> From: Davis, Michael
> Sent: Monday, April 16, 2018 11:04 AM
> To: 'openembedded-core@lists.openembedded.org'
> Subject: [OE-CORE][sumo][python3] Generated SDK missing sqlite3
>
>
>
> Testing out the upcoming sumo release and ran into an issue.  Whenever I
> attempt to generate an sdk-ext with sumo I get a failure about missing
> sqlite3.
>
> Traceback (most recent call last):
>  File "/home/mdavis/core_sdk/sysroots/x86_64-pokysdk-linux/usr/bin/devtool",
> line 344, in <module>
>    ret = main()
>  File "/home/mdavis/core_sdk/sysroots/x86_64-pokysdk-linux/usr/bin/devtool",
> line 285, in main
>    scriptutils.logger_setup_color(logger, global_args.color)
>  File "/home/mdavis/core_sdk/layers/core/scripts/lib/scriptutils.py", line
> 38, in logger_setup_color
>    from bb.msg import BBLogFormatter
>  File "/home/mdavis/core_sdk/layers/core/bitbake/lib/bb/__init__.py", line
> 79, in <module>
>    from bb import fetch2 as fetch
>  File "/home/mdavis/core_sdk/layers/core/bitbake/lib/bb/fetch2/__init__.py",
> line 39, in <module>
>    import bb.persist_data, bb.utils
>  File "/home/mdavis/core_sdk/layers/core/bitbake/lib/bb/persist_data.py",
> line 33, in <module>
>    sqlversion = sqlite3.sqlite_version_info
> AttributeError: module 'sqlite3' has no attribute 'sqlite_version_info'
>
>
>
> The issue seems to be isolated only to python3. The sdk partially installs
> and I am able to source it.  I created a small python sqlite app and was
> able to run it properly with python2, but not 3.
>
>
>
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [sumo][python3] Generated SDK missing sqlite3
  2018-04-17 16:27     ` Burton, Ross
@ 2018-04-17 19:41       ` Alejandro Enedino Hernandez Samaniego
  2018-04-17 20:03         ` Davis, Michael
  0 siblings, 1 reply; 9+ messages in thread
From: Alejandro Enedino Hernandez Samaniego @ 2018-04-17 19:41 UTC (permalink / raw)
  To: Burton, Ross, Davis, Michael; +Cc: openembedded-core

Hey Mike,

It does make a little sense that you're not getting 
"sqlite_version_info" from sqlite3, the python3-sqlite3 is missing the 
__init__.py file (on purpose) for that module, and the only thing that 
does is

from sqlite3.dbapi2 import *

and sqlite_version_info comes from sqilte3.dbapi2, hence why you might 
not be getting it, but I would still like to know the steps you're 
following to reproduce this, since I couldn't do that either.


Alejandro

On 04/17/2018 09:27 AM, Burton, Ross wrote:
> Work for me with plain oe-core:
>
> $ ./poky-glibc-x86_64-core-image-minimal-corei7-64-toolchain-ext-2.4+snapshot.sh
> Poky (Yocto Project Reference Distro) Extensible SDK installer version
> 2.4+snapshot
> ===================================================================================
> Enter target directory for SDK (default: ~/poky_sdk):
> You are about to install the SDK to "/home/ross/poky_sdk". Proceed[Y/n]? y
> Extracting SDK.......................................................................done
> Setting it up...
> Extracting buildtools...
> Preparing build system...
> Parsing recipes: 100%
> |##############################################################################|
> Time: 0:00:10
> Initialising tasks: 100%
> |###########################################################################|
> Time: 0:00:07
> Checking sstate mirror object availability: 100%
> |###################################################| Time: 0:00:00
> Loading cache: 100%
> |################################################################################|
> Time: 0:00:00
> Initialising tasks: 100%
> |###########################################################################|
> Time: 0:00:00
> done
> SDK has been successfully set up and is ready to be used.
> Each time you wish to use the SDK in a new shell session, you need to
> source the environment setup script e.g.
>   $ . /home/ross/poky_sdk/environment-setup-corei7-64-poky-linux
>
> Obviously something is different, how are you reproducing this?
>
> Ross
>
> On 17 April 2018 at 14:50, Davis, Michael <michael.davis@essvote.com> wrote:
>> I was on the HEAD of sumo(commit d012a9acdc3dce014705224a1261145628e75931)
>> so that commit was already included when I had the issue.  Just generated
>> another test today and the issue was still there.  If I remove
>> native-python3-misc from TOOLCHAIN_HOST_TASK it fails on installing the SDK.
>> With it there it succeeds.
>>
>>
>>
>> Mike
>>
>>
>>
>>
>>
>>
>>
>> From: Alejandro Enedino Hernandez Samaniego [mailto:alejandr@xilinx.com]
>> Sent: Monday, April 16, 2018 8:07 PM
>> To: Davis, Michael; openembedded-core@lists.openembedded.org
>> Subject: RE: [OE-CORE][sumo][python3] Generated SDK missing sqlite3
>>
>>
>>
>> Which commit are you using?
>>
>>
>>
>> https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=4379b29e7eede727993ee68c9eba2bdebace5108
>>
>>
>>
>> In any case, that one should’ve solved it.
>>
>>
>>
>> Alejandro
>>
>>
>>
>> From: openembedded-core-bounces@lists.openembedded.org
>> [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf Of
>> Davis, Michael
>> Sent: Monday, April 16, 2018 11:19 AM
>> To: Davis, Michael <michael.davis@essvote.com>;
>> openembedded-core@lists.openembedded.org
>> Subject: Re: [OE-core] [OE-CORE][sumo][python3] Generated SDK missing
>> sqlite3
>>
>>
>>
>> Adding python3-misc to the SDK seems to have solved the issue.
>>
>> I saw some commits about separating the two so perhaps this is a side
>> effect?
>>
>>
>>
>> From: Davis, Michael
>> Sent: Monday, April 16, 2018 11:04 AM
>> To: 'openembedded-core@lists.openembedded.org'
>> Subject: [OE-CORE][sumo][python3] Generated SDK missing sqlite3
>>
>>
>>
>> Testing out the upcoming sumo release and ran into an issue.  Whenever I
>> attempt to generate an sdk-ext with sumo I get a failure about missing
>> sqlite3.
>>
>> Traceback (most recent call last):
>>   File "/home/mdavis/core_sdk/sysroots/x86_64-pokysdk-linux/usr/bin/devtool",
>> line 344, in <module>
>>     ret = main()
>>   File "/home/mdavis/core_sdk/sysroots/x86_64-pokysdk-linux/usr/bin/devtool",
>> line 285, in main
>>     scriptutils.logger_setup_color(logger, global_args.color)
>>   File "/home/mdavis/core_sdk/layers/core/scripts/lib/scriptutils.py", line
>> 38, in logger_setup_color
>>     from bb.msg import BBLogFormatter
>>   File "/home/mdavis/core_sdk/layers/core/bitbake/lib/bb/__init__.py", line
>> 79, in <module>
>>     from bb import fetch2 as fetch
>>   File "/home/mdavis/core_sdk/layers/core/bitbake/lib/bb/fetch2/__init__.py",
>> line 39, in <module>
>>     import bb.persist_data, bb.utils
>>   File "/home/mdavis/core_sdk/layers/core/bitbake/lib/bb/persist_data.py",
>> line 33, in <module>
>>     sqlversion = sqlite3.sqlite_version_info
>> AttributeError: module 'sqlite3' has no attribute 'sqlite_version_info'
>>
>>
>>
>> The issue seems to be isolated only to python3. The sdk partially installs
>> and I am able to source it.  I created a small python sqlite app and was
>> able to run it properly with python2, but not 3.
>>
>>
>>
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>>



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [sumo][python3] Generated SDK missing sqlite3
  2018-04-17 19:41       ` Alejandro Enedino Hernandez Samaniego
@ 2018-04-17 20:03         ` Davis, Michael
  2018-04-17 20:22           ` Paul Eggleton
  0 siblings, 1 reply; 9+ messages in thread
From: Davis, Michael @ 2018-04-17 20:03 UTC (permalink / raw)
  To: Alejandro Enedino Hernandez Samaniego, Burton, Ross; +Cc: openembedded-core

Actually just recreated it without all my custom cruft in there to confuse things.

I had oe-init-build-env generate a new build dir:
"source oe-init-build-env  ~/build/test"

Added the following to the bottom of the local.conf
TOOLCHAIN_HOST_TASK += " nativesdk-cmake \
                         nativesdk-python3"

Create the sdk:
" bitbake core-image-minimal -c do_populate_sdk_ext"

The install of that sdk breaks 
[mdavis@localhost test]$ tmp/deploy/sdk/poky-glibc-x86_64-core-image-minimal-i586-toolchain-ext-2.4+snapshot.sh 
Poky (Yocto Project Reference Distro) Extensible SDK installer version 2.4+snapshot
===================================================================================
Enter target directory for SDK (default: ~/poky_sdk): ~/test
You are about to install the SDK to "/home/mdavis/test". Proceed[Y/n]? y
Extracting SDK................................done
Setting it up...
Extracting buildtools...
Preparing build system...
Traceback (most recent call last):
  File "/home/mdavis/test/layers/core/bitbake/bin/bitbake", line 31, in <module>
    import bb
  File "/home/mdavis/test/layers/core/bitbake/lib/bb/__init__.py", line 79, in <module>
    from bb import fetch2 as fetch
  File "/home/mdavis/test/layers/core/bitbake/lib/bb/fetch2/__init__.py", line 39, in <module>
    import bb.persist_data, bb.utils
  File "/home/mdavis/test/layers/core/bitbake/lib/bb/persist_data.py", line 33, in <module>
    sqlversion = sqlite3.sqlite_version_info
AttributeError: module 'sqlite3' has no attribute 'sqlite_version_info'
ERROR: SDK preparation failed: error log written to /home/mdavis/test/preparing_build_system.log


Mike


-----Original Message-----
From: Alejandro Enedino Hernandez Samaniego [mailto:alejandro.enedino.hernandez-samaniego@xilinx.com] 
Sent: Tuesday, April 17, 2018 2:41 PM
To: Burton, Ross; Davis, Michael
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [OE-CORE][sumo][python3] Generated SDK missing sqlite3

Hey Mike,

It does make a little sense that you're not getting "sqlite_version_info" from sqlite3, the python3-sqlite3 is missing the __init__.py file (on purpose) for that module, and the only thing that does is

from sqlite3.dbapi2 import *

and sqlite_version_info comes from sqilte3.dbapi2, hence why you might not be getting it, but I would still like to know the steps you're following to reproduce this, since I couldn't do that either.


Alejandro

On 04/17/2018 09:27 AM, Burton, Ross wrote:
> Work for me with plain oe-core:
>
> $ 
> ./poky-glibc-x86_64-core-image-minimal-corei7-64-toolchain-ext-2.4+sna
> pshot.sh Poky (Yocto Project Reference Distro) Extensible SDK 
> installer version 2.4+snapshot 
> ======================================================================
> ============= Enter target directory for SDK (default: ~/poky_sdk):
> You are about to install the SDK to "/home/ross/poky_sdk". 
> Proceed[Y/n]? y Extracting 
> SDK...................................................................
> ....done
> Setting it up...
> Extracting buildtools...
> Preparing build system...
> Parsing recipes: 100%
> |#####################################################################
> |#########|
> Time: 0:00:10
> Initialising tasks: 100%
> |#####################################################################
> |######|
> Time: 0:00:07
> Checking sstate mirror object availability: 100%
> |###################################################| Time: 0:00:00
> Loading cache: 100%
> |#####################################################################
> |###########|
> Time: 0:00:00
> Initialising tasks: 100%
> |#####################################################################
> |######|
> Time: 0:00:00
> done
> SDK has been successfully set up and is ready to be used.
> Each time you wish to use the SDK in a new shell session, you need to 
> source the environment setup script e.g.
>   $ . /home/ross/poky_sdk/environment-setup-corei7-64-poky-linux
>
> Obviously something is different, how are you reproducing this?
>
> Ross
>
> On 17 April 2018 at 14:50, Davis, Michael <michael.davis@essvote.com> wrote:
>> I was on the HEAD of sumo(commit 
>> d012a9acdc3dce014705224a1261145628e75931)
>> so that commit was already included when I had the issue.  Just 
>> generated another test today and the issue was still there.  If I 
>> remove native-python3-misc from TOOLCHAIN_HOST_TASK it fails on installing the SDK.
>> With it there it succeeds.
>>
>>
>>
>> Mike
>>
>>
>>
>>
>>
>>
>>
>> From: Alejandro Enedino Hernandez Samaniego 
>> [mailto:alejandr@xilinx.com]
>> Sent: Monday, April 16, 2018 8:07 PM
>> To: Davis, Michael; openembedded-core@lists.openembedded.org
>> Subject: RE: [OE-CORE][sumo][python3] Generated SDK missing sqlite3
>>
>>
>>
>> Which commit are you using?
>>
>>
>>
>> https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=4379b29e7e
>> ede727993ee68c9eba2bdebace5108
>>
>>
>>
>> In any case, that one should’ve solved it.
>>
>>
>>
>> Alejandro
>>
>>
>>
>> From: openembedded-core-bounces@lists.openembedded.org
>> [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf 
>> Of Davis, Michael
>> Sent: Monday, April 16, 2018 11:19 AM
>> To: Davis, Michael <michael.davis@essvote.com>; 
>> openembedded-core@lists.openembedded.org
>> Subject: Re: [OE-core] [OE-CORE][sumo][python3] Generated SDK missing
>> sqlite3
>>
>>
>>
>> Adding python3-misc to the SDK seems to have solved the issue.
>>
>> I saw some commits about separating the two so perhaps this is a side 
>> effect?
>>
>>
>>
>> From: Davis, Michael
>> Sent: Monday, April 16, 2018 11:04 AM
>> To: 'openembedded-core@lists.openembedded.org'
>> Subject: [OE-CORE][sumo][python3] Generated SDK missing sqlite3
>>
>>
>>
>> Testing out the upcoming sumo release and ran into an issue.  
>> Whenever I attempt to generate an sdk-ext with sumo I get a failure 
>> about missing sqlite3.
>>
>> Traceback (most recent call last):
>>   File 
>> "/home/mdavis/core_sdk/sysroots/x86_64-pokysdk-linux/usr/bin/devtool"
>> ,
>> line 344, in <module>
>>     ret = main()
>>   File 
>> "/home/mdavis/core_sdk/sysroots/x86_64-pokysdk-linux/usr/bin/devtool"
>> ,
>> line 285, in main
>>     scriptutils.logger_setup_color(logger, global_args.color)
>>   File 
>> "/home/mdavis/core_sdk/layers/core/scripts/lib/scriptutils.py", line 38, in logger_setup_color
>>     from bb.msg import BBLogFormatter
>>   File 
>> "/home/mdavis/core_sdk/layers/core/bitbake/lib/bb/__init__.py", line 79, in <module>
>>     from bb import fetch2 as fetch
>>   File 
>> "/home/mdavis/core_sdk/layers/core/bitbake/lib/bb/fetch2/__init__.py"
>> ,
>> line 39, in <module>
>>     import bb.persist_data, bb.utils
>>   File 
>> "/home/mdavis/core_sdk/layers/core/bitbake/lib/bb/persist_data.py",
>> line 33, in <module>
>>     sqlversion = sqlite3.sqlite_version_info
>> AttributeError: module 'sqlite3' has no attribute 'sqlite_version_info'
>>
>>
>>
>> The issue seems to be isolated only to python3. The sdk partially 
>> installs and I am able to source it.  I created a small python sqlite 
>> app and was able to run it properly with python2, but not 3.
>>
>>
>>
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>>


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [sumo][python3] Generated SDK missing sqlite3
  2018-04-17 20:03         ` Davis, Michael
@ 2018-04-17 20:22           ` Paul Eggleton
  2018-04-17 21:07             ` Davis, Michael
  0 siblings, 1 reply; 9+ messages in thread
From: Paul Eggleton @ 2018-04-17 20:22 UTC (permalink / raw)
  To: Davis, Michael; +Cc: Alejandro Enedino Hernandez Samaniego, openembedded-core

Hi Michael,

On Wednesday, 18 April 2018 8:03:43 AM NZST Davis, Michael wrote:
> Actually just recreated it without all my custom cruft in there to confuse
> things.
> 
> I had oe-init-build-env generate a new build dir:
> "source oe-init-build-env  ~/build/test"
> 
> Added the following to the bottom of the local.conf
> TOOLCHAIN_HOST_TASK += " nativesdk-cmake \
>                          nativesdk-python3"
> 
> Create the sdk:
> " bitbake core-image-minimal -c do_populate_sdk_ext"

I'm afraid this is not the correct way to add items to the eSDK. See:

  https://bugzilla.yoctoproject.org/show_bug.cgi?id=10600
  https://bugzilla.yoctoproject.org/show_bug.cgi?id=9479

I think at the moment what you need is:

SDK_TARGETS += "cmake-native:do_populate_sysroot \
                           python3-native:do_populate_sysroot"


Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [sumo][python3] Generated SDK missing sqlite3
  2018-04-17 20:22           ` Paul Eggleton
@ 2018-04-17 21:07             ` Davis, Michael
  0 siblings, 0 replies; 9+ messages in thread
From: Davis, Michael @ 2018-04-17 21:07 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: Alejandro Enedino Hernandez Samaniego, openembedded-core

I have a strange luck in hitting those things that work, but aren't the correct way of doing it.
They always seem to last about 1 version update.  I will make the proper changes on my side.

Thanks,
Mike

-----Original Message-----
From: Paul Eggleton [mailto:paul.eggleton@linux.intel.com] 
Sent: Tuesday, April 17, 2018 3:22 PM
To: Davis, Michael
Cc: openembedded-core@lists.openembedded.org; Alejandro Enedino Hernandez Samaniego; Burton, Ross
Subject: Re: [OE-core] [OE-CORE][sumo][python3] Generated SDK missing sqlite3

Hi Michael,

On Wednesday, 18 April 2018 8:03:43 AM NZST Davis, Michael wrote:
> Actually just recreated it without all my custom cruft in there to 
> confuse things.
> 
> I had oe-init-build-env generate a new build dir:
> "source oe-init-build-env  ~/build/test"
> 
> Added the following to the bottom of the local.conf 
> TOOLCHAIN_HOST_TASK += " nativesdk-cmake \
>                          nativesdk-python3"
> 
> Create the sdk:
> " bitbake core-image-minimal -c do_populate_sdk_ext"

I'm afraid this is not the correct way to add items to the eSDK. See:

  https://bugzilla.yoctoproject.org/show_bug.cgi?id=10600
  https://bugzilla.yoctoproject.org/show_bug.cgi?id=9479

I think at the moment what you need is:

SDK_TARGETS += "cmake-native:do_populate_sysroot \
                           python3-native:do_populate_sysroot"


Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre




^ permalink raw reply	[flat|nested] 9+ messages in thread

* [sumo][python3] Generated SDK missing sqlite3
@ 2018-04-16 16:03 Davis, Michael
  0 siblings, 0 replies; 9+ messages in thread
From: Davis, Michael @ 2018-04-16 16:03 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1284 bytes --]

Testing out the upcoming sumo release and ran into an issue.  Whenever I attempt to generate an sdk-ext with sumo I get a failure about missing sqlite3.
Traceback (most recent call last):
 File "/home/mdavis/core_sdk/sysroots/x86_64-pokysdk-linux/usr/bin/devtool", line 344, in <module>
   ret = main()
 File "/home/mdavis/core_sdk/sysroots/x86_64-pokysdk-linux/usr/bin/devtool", line 285, in main
   scriptutils.logger_setup_color(logger, global_args.color)
 File "/home/mdavis/core_sdk/layers/core/scripts/lib/scriptutils.py", line 38, in logger_setup_color
   from bb.msg import BBLogFormatter
 File "/home/mdavis/core_sdk/layers/core/bitbake/lib/bb/__init__.py", line 79, in <module>
   from bb import fetch2 as fetch
 File "/home/mdavis/core_sdk/layers/core/bitbake/lib/bb/fetch2/__init__.py", line 39, in <module>
   import bb.persist_data, bb.utils
 File "/home/mdavis/core_sdk/layers/core/bitbake/lib/bb/persist_data.py", line 33, in <module>
   sqlversion = sqlite3.sqlite_version_info
AttributeError: module 'sqlite3' has no attribute 'sqlite_version_info'

The issue seems to be isolated only to python3. The sdk partially installs and I am able to source it.  I created a small python sqlite app and was able to run it properly with python2, but not 3.


[-- Attachment #2: Type: text/html, Size: 3536 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-04-17 21:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-16 18:18 [sumo][python3] Generated SDK missing sqlite3 Davis, Michael
2018-04-17  1:07 ` Alejandro Enedino Hernandez Samaniego
2018-04-17 13:50   ` Davis, Michael
2018-04-17 16:27     ` Burton, Ross
2018-04-17 19:41       ` Alejandro Enedino Hernandez Samaniego
2018-04-17 20:03         ` Davis, Michael
2018-04-17 20:22           ` Paul Eggleton
2018-04-17 21:07             ` Davis, Michael
  -- strict thread matches above, loose matches on Subject: below --
2018-04-16 16:03 Davis, Michael

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.