Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [jalal@submit-5 ~]$ pip install pysqlite
- Collecting pysqlite
- Downloading pysqlite-2.8.3.tar.gz (80kB)
- 100% |████████████████████████████████| 81kB 320kB/s
- Building wheels for collected packages: pysqlite
- Running setup.py bdist_wheel for pysqlite ... error
- Complete output from command /home/jalal/python/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-dZ9ODj/pysqlite/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmp3IJ1MApip-wheel- --python-tag cp27:
- running bdist_wheel
- running build
- running build_py
- creating build
- creating build/lib.linux-x86_64-2.7
- creating build/lib.linux-x86_64-2.7/pysqlite2
- copying lib/dbapi2.py -> build/lib.linux-x86_64-2.7/pysqlite2
- copying lib/__init__.py -> build/lib.linux-x86_64-2.7/pysqlite2
- copying lib/dump.py -> build/lib.linux-x86_64-2.7/pysqlite2
- creating build/lib.linux-x86_64-2.7/pysqlite2/test
- copying lib/test/dbapi.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
- copying lib/test/transactions.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
- copying lib/test/types.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
- copying lib/test/regression.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
- copying lib/test/hooks.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
- copying lib/test/__init__.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
- copying lib/test/userfunctions.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
- copying lib/test/dump.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
- copying lib/test/factory.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
- running build_ext
- building 'pysqlite2._sqlite' extension
- creating build/temp.linux-x86_64-2.7
- creating build/temp.linux-x86_64-2.7/src
- gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMODULE_NAME="pysqlite2.dbapi2" -IPackage -Isqlite3 -Iwas -Inot -Ifound -Iin -Ithe -Ipkg-config -Isearch -Ipath. -IPerhaps -Iyou -Ishould -Iadd -Ithe -Idirectory -Icontaining -I`sqlite3.pc' -Ito -Ithe -IPKG_CONFIG_PATH -Ienvironment -Ivariable -INo -Ipackage -I'sqlite3' -Ifound -I/home/jalal/python/include/python2.7 -c src/module.c -o build/temp.linux-x86_64-2.7/src/module.o
- In file included from src/module.c:24:
- src/connection.h:33:21: error: sqlite3.h: No such file or directory
- In file included from src/module.c:24:
- src/connection.h:38: error: expected specifier-qualifier-list before ‘sqlite3’
- In file included from src/module.c:25:
- src/statement.h:37: error: expected specifier-qualifier-list before ‘sqlite3’
- src/module.c: In function ‘module_connect’:
- src/module.c:63: error: ‘SQLITE_OPEN_READWRITE’ undeclared (first use in this function)
- src/module.c:63: error: (Each undeclared identifier is reported only once
- src/module.c:63: error: for each function it appears in.)
- src/module.c:63: error: ‘SQLITE_OPEN_CREATE’ undeclared (first use in this function)
- src/module.c: In function ‘module_complete’:
- src/module.c:102: warning: implicit declaration of function ‘sqlite3_complete’
- src/module.c: In function ‘init_sqlite’:
- src/module.c:401: warning: implicit declaration of function ‘sqlite3_libversion’
- src/module.c:401: warning: passing argument 1 of ‘PyString_FromString’ makes pointer from integer without a cast
- /home/jalal/python/include/python2.7/stringobject.h:63: note: expected ‘const char *’ but argument is of type ‘int’
- error: command 'gcc' failed with exit status 1
- ----------------------------------------
- Failed building wheel for pysqlite
- Running setup.py clean for pysqlite
- Failed to build pysqlite
- Installing collected packages: pysqlite
- Running setup.py install for pysqlite ... error
- Complete output from command /home/jalal/python/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-dZ9ODj/pysqlite/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-xqLHmI-record/install-record.txt --single-version-externally-managed --compile:
- running install
- running build
- running build_py
- creating build
- creating build/lib.linux-x86_64-2.7
- creating build/lib.linux-x86_64-2.7/pysqlite2
- copying lib/dbapi2.py -> build/lib.linux-x86_64-2.7/pysqlite2
- copying lib/__init__.py -> build/lib.linux-x86_64-2.7/pysqlite2
- copying lib/dump.py -> build/lib.linux-x86_64-2.7/pysqlite2
- creating build/lib.linux-x86_64-2.7/pysqlite2/test
- copying lib/test/dbapi.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
- copying lib/test/transactions.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
- copying lib/test/types.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
- copying lib/test/regression.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
- copying lib/test/hooks.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
- copying lib/test/__init__.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
- copying lib/test/userfunctions.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
- copying lib/test/dump.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
- copying lib/test/factory.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
- running build_ext
- building 'pysqlite2._sqlite' extension
- creating build/temp.linux-x86_64-2.7
- creating build/temp.linux-x86_64-2.7/src
- gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMODULE_NAME="pysqlite2.dbapi2" -IPackage -Isqlite3 -Iwas -Inot -Ifound -Iin -Ithe -Ipkg-config -Isearch -Ipath. -IPerhaps -Iyou -Ishould -Iadd -Ithe -Idirectory -Icontaining -I`sqlite3.pc' -Ito -Ithe -IPKG_CONFIG_PATH -Ienvironment -Ivariable -INo -Ipackage -I'sqlite3' -Ifound -I/home/jalal/python/include/python2.7 -c src/module.c -o build/temp.linux-x86_64-2.7/src/module.o
- In file included from src/module.c:24:
- src/connection.h:33:21: error: sqlite3.h: No such file or directory
- In file included from src/module.c:24:
- src/connection.h:38: error: expected specifier-qualifier-list before ‘sqlite3’
- In file included from src/module.c:25:
- src/statement.h:37: error: expected specifier-qualifier-list before ‘sqlite3’
- src/module.c: In function ‘module_connect’:
- src/module.c:63: error: ‘SQLITE_OPEN_READWRITE’ undeclared (first use in this function)
- src/module.c:63: error: (Each undeclared identifier is reported only once
- src/module.c:63: error: for each function it appears in.)
- src/module.c:63: error: ‘SQLITE_OPEN_CREATE’ undeclared (first use in this function)
- src/module.c: In function ‘module_complete’:
- src/module.c:102: warning: implicit declaration of function ‘sqlite3_complete’
- src/module.c: In function ‘init_sqlite’:
- src/module.c:401: warning: implicit declaration of function ‘sqlite3_libversion’
- src/module.c:401: warning: passing argument 1 of ‘PyString_FromString’ makes pointer from integer without a cast
- /home/jalal/python/include/python2.7/stringobject.h:63: note: expected ‘const char *’ but argument is of type ‘int’
- error: command 'gcc' failed with exit status 1
- ----------------------------------------
- Command "/home/jalal/python/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-dZ9ODj/pysqlite/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-xqLHmI-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-dZ9ODj/pysqlite/
- [jalal@submit-5 ~]$ python
- Python 2.7.12 (default, Nov 1 2016, 21:05:50)
- [GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2
- Type "help", "copyright", "credits" or "license" for more information.
- >>> import sqlite3
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- File "/home/jalal/python/lib/python2.7/sqlite3/__init__.py", line 24, in <module>
- from dbapi2 import *
- File "/home/jalal/python/lib/python2.7/sqlite3/dbapi2.py", line 28, in <module>
- from _sqlite3 import *
- ImportError: No module named _sqlite3
- >>> import nltk
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- File "/home/jalal/python/lib/python2.7/site-packages/nltk/__init__.py", line 137, in <module>
- from nltk.stem import *
- File "/home/jalal/python/lib/python2.7/site-packages/nltk/stem/__init__.py", line 29, in <module>
- from nltk.stem.snowball import SnowballStemmer
- File "/home/jalal/python/lib/python2.7/site-packages/nltk/stem/snowball.py", line 24, in <module>
- from nltk.corpus import stopwords
- File "/home/jalal/python/lib/python2.7/site-packages/nltk/corpus/__init__.py", line 66, in <module>
- from nltk.corpus.reader import *
- File "/home/jalal/python/lib/python2.7/site-packages/nltk/corpus/reader/__init__.py", line 105, in <module>
- from nltk.corpus.reader.panlex_lite import *
- File "/home/jalal/python/lib/python2.7/site-packages/nltk/corpus/reader/panlex_lite.py", line 15, in <module>
- import sqlite3
- File "/home/jalal/python/lib/python2.7/sqlite3/__init__.py", line 24, in <module>
- from dbapi2 import *
- File "/home/jalal/python/lib/python2.7/sqlite3/dbapi2.py", line 28, in <module>
- from _sqlite3 import *
- ImportError: No module named _sqlite3
- >>> quit()
- [jalal@submit-5 ~]$ /usr/bin/python
- Python 2.6.6 (r266:84292, Nov 21 2013, 12:39:37)
- [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2
- Type "help", "copyright", "credits" or "license" for more information.
- >>> import sqlite3
- >>> import nltk
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- ImportError: No module named nltk
- >>> quit
- Use quit() or Ctrl-D (i.e. EOF) to exit
- >>> quit()
- [jalal@submit-5 ~]$ which python
- ~/python/bin/python
Advertisement
Add Comment
Please, Sign In to add comment