On 11/16/20 12:06 AM, Manuel McLure wrote:


On Sun, Nov 15, 2020 at 2:59 PM n952162 <[email protected]
<mailto:[email protected]>> wrote:

    I'm trying to convert python2 scripts to python3.  A script which
    works under python2 gives me this under python3:

        ModuleNotFoundError: No module named 'sqlite3'

    Any ideas?

You might need to add "sqlite" to the USE flags for dev-lang/python
and reinstall.

--
Manuel A. McLure WW1FA <[email protected] <mailto:[email protected]>>
<http://www.mclure.org <http://www.mclure.org>>
...for in Ulthar, according to an ancient and significant law,
no man may kill a cat.                       -- H.P. Lovecraft

$ equery uses python
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for dev-lang/python-3.8.5:
 U I
 - - bluetooth : Build Bluetooth protocol support in socket module
 - - build     : !!internal use only!! DO NOT SET THIS FLAG YOURSELF!,
used for creating build images and the first half of bootstrapping [make
stage1]
 - - examples  : Install examples, usually source code
 + + gdbm      : Add support for sys-libs/gdbm (GNU database libraries)
 - - hardened  : Activate default security enhancements for toolchain
(gcc, glibc, binutils)
 + + ipv6      : Add support for IP version 6
 - - libressl  : Use dev-libs/libressl instead of dev-libs/openssl when
applicable (see also the ssl useflag)
 + + ncurses   : Add ncurses support (console display library)
 + + readline  : Enable support for libreadline, a GNU line-editing
library that almost everyone wants
* + + sqlite    : Add support for sqlite - embedded sql database*
 + + ssl       : Add support for SSL/TLS connections (Secure Socket
Layer / Transport Layer Security)
 - - test      : Enable dependencies and/or preparations necessary to
run tests (usually controlled by FEATURES=test but can be toggled
independently)
 - - tk        : Add support for Tk GUI toolkit
 - - wininst   : Install Windows executables required to create an
executable installer for MS Windows.
 + + xml       : Add support for XML files


Reply via email to