Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 588992 - dev-python/nltk-3.2.1 need dev-lang/python with USE "sqlite" support
Summary: dev-python/nltk-3.2.1 need dev-lang/python with USE "sqlite" support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LABBE Corentin
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-17 13:00 UTC by Chen Meng
Modified: 2017-07-28 14:11 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chen Meng 2016-07-17 13:00:41 UTC
Python 3.4.3 (default, Jul 14 2016, 12:43:27) 
[GCC 4.9.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import nltk
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python3.4/site-packages/nltk/__init__.py", line 137, in <module>
    from nltk.stem import *
  File "/usr/lib64/python3.4/site-packages/nltk/stem/__init__.py", line 29, in <module>
    from nltk.stem.snowball import SnowballStemmer
  File "/usr/lib64/python3.4/site-packages/nltk/stem/snowball.py", line 24, in <module>
    from nltk.corpus import stopwords
  File "/usr/lib64/python3.4/site-packages/nltk/corpus/__init__.py", line 66, in <module>
    from nltk.corpus.reader import *
  File "/usr/lib64/python3.4/site-packages/nltk/corpus/reader/__init__.py", line 105, in <module>
    from nltk.corpus.reader.panlex_lite import *
  File "/usr/lib64/python3.4/site-packages/nltk/corpus/reader/panlex_lite.py", line 15, in <module>
    import sqlite3
ImportError: No module named 'sqlite3'
>>> 

After rebuild python 3.4.3 with "sqlite" support, seems fine:


Python 3.4.3 (default, Jul 17 2016, 20:53:11) 
[GCC 4.9.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import nltk
>>> 


ps: I Didn't test other version of python or nltk.
Comment 1 Matthias Maier gentoo-dev 2017-07-28 14:11:18 UTC
commit 377565c1a18987990816397b373c2b7145e63ee6 (HEAD -> master, origin/master, origin/HEAD)
Author: Labbe Corentin <clabbe.montjoie@gmail.com>
Date:   Thu Jul 27 14:33:34 2017 +0200

    dev-python/nltk: need dev-lang/python with USE "sqlite" support
    
    Gentoo-Bug: 588992
    
    Package-Manager: Portage-2.3.6, Repoman-2.3.1
    Signed-off-by: Matthias Maier <tamiko@gentoo.org>