lamiastella

sqlite3

Nov 1st, 2016
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.88 KB | None | 0 0
  1. [jalal@submit-5 ~]$ pip install pysqlite
  2. Collecting pysqlite
  3. Downloading pysqlite-2.8.3.tar.gz (80kB)
  4. 100% |████████████████████████████████| 81kB 320kB/s
  5. Building wheels for collected packages: pysqlite
  6. Running setup.py bdist_wheel for pysqlite ... error
  7. 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:
  8. running bdist_wheel
  9. running build
  10. running build_py
  11. creating build
  12. creating build/lib.linux-x86_64-2.7
  13. creating build/lib.linux-x86_64-2.7/pysqlite2
  14. copying lib/dbapi2.py -> build/lib.linux-x86_64-2.7/pysqlite2
  15. copying lib/__init__.py -> build/lib.linux-x86_64-2.7/pysqlite2
  16. copying lib/dump.py -> build/lib.linux-x86_64-2.7/pysqlite2
  17. creating build/lib.linux-x86_64-2.7/pysqlite2/test
  18. copying lib/test/dbapi.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
  19. copying lib/test/transactions.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
  20. copying lib/test/types.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
  21. copying lib/test/regression.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
  22. copying lib/test/hooks.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
  23. copying lib/test/__init__.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
  24. copying lib/test/userfunctions.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
  25. copying lib/test/dump.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
  26. copying lib/test/factory.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
  27. running build_ext
  28. building 'pysqlite2._sqlite' extension
  29. creating build/temp.linux-x86_64-2.7
  30. creating build/temp.linux-x86_64-2.7/src
  31. 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
  32. In file included from src/module.c:24:
  33. src/connection.h:33:21: error: sqlite3.h: No such file or directory
  34. In file included from src/module.c:24:
  35. src/connection.h:38: error: expected specifier-qualifier-list before ‘sqlite3’
  36. In file included from src/module.c:25:
  37. src/statement.h:37: error: expected specifier-qualifier-list before ‘sqlite3’
  38. src/module.c: In function ‘module_connect’:
  39. src/module.c:63: error: ‘SQLITE_OPEN_READWRITE’ undeclared (first use in this function)
  40. src/module.c:63: error: (Each undeclared identifier is reported only once
  41. src/module.c:63: error: for each function it appears in.)
  42. src/module.c:63: error: ‘SQLITE_OPEN_CREATE’ undeclared (first use in this function)
  43. src/module.c: In function ‘module_complete’:
  44. src/module.c:102: warning: implicit declaration of function ‘sqlite3_complete’
  45. src/module.c: In function ‘init_sqlite’:
  46. src/module.c:401: warning: implicit declaration of function ‘sqlite3_libversion’
  47. src/module.c:401: warning: passing argument 1 of ‘PyString_FromString’ makes pointer from integer without a cast
  48. /home/jalal/python/include/python2.7/stringobject.h:63: note: expected ‘const char *’ but argument is of type ‘int’
  49. error: command 'gcc' failed with exit status 1
  50.  
  51. ----------------------------------------
  52. Failed building wheel for pysqlite
  53. Running setup.py clean for pysqlite
  54. Failed to build pysqlite
  55. Installing collected packages: pysqlite
  56. Running setup.py install for pysqlite ... error
  57. 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:
  58. running install
  59. running build
  60. running build_py
  61. creating build
  62. creating build/lib.linux-x86_64-2.7
  63. creating build/lib.linux-x86_64-2.7/pysqlite2
  64. copying lib/dbapi2.py -> build/lib.linux-x86_64-2.7/pysqlite2
  65. copying lib/__init__.py -> build/lib.linux-x86_64-2.7/pysqlite2
  66. copying lib/dump.py -> build/lib.linux-x86_64-2.7/pysqlite2
  67. creating build/lib.linux-x86_64-2.7/pysqlite2/test
  68. copying lib/test/dbapi.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
  69. copying lib/test/transactions.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
  70. copying lib/test/types.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
  71. copying lib/test/regression.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
  72. copying lib/test/hooks.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
  73. copying lib/test/__init__.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
  74. copying lib/test/userfunctions.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
  75. copying lib/test/dump.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
  76. copying lib/test/factory.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
  77. running build_ext
  78. building 'pysqlite2._sqlite' extension
  79. creating build/temp.linux-x86_64-2.7
  80. creating build/temp.linux-x86_64-2.7/src
  81. 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
  82. In file included from src/module.c:24:
  83. src/connection.h:33:21: error: sqlite3.h: No such file or directory
  84. In file included from src/module.c:24:
  85. src/connection.h:38: error: expected specifier-qualifier-list before ‘sqlite3’
  86. In file included from src/module.c:25:
  87. src/statement.h:37: error: expected specifier-qualifier-list before ‘sqlite3’
  88. src/module.c: In function ‘module_connect’:
  89. src/module.c:63: error: ‘SQLITE_OPEN_READWRITE’ undeclared (first use in this function)
  90. src/module.c:63: error: (Each undeclared identifier is reported only once
  91. src/module.c:63: error: for each function it appears in.)
  92. src/module.c:63: error: ‘SQLITE_OPEN_CREATE’ undeclared (first use in this function)
  93. src/module.c: In function ‘module_complete’:
  94. src/module.c:102: warning: implicit declaration of function ‘sqlite3_complete’
  95. src/module.c: In function ‘init_sqlite’:
  96. src/module.c:401: warning: implicit declaration of function ‘sqlite3_libversion’
  97. src/module.c:401: warning: passing argument 1 of ‘PyString_FromString’ makes pointer from integer without a cast
  98. /home/jalal/python/include/python2.7/stringobject.h:63: note: expected ‘const char *’ but argument is of type ‘int’
  99. error: command 'gcc' failed with exit status 1
  100.  
  101. ----------------------------------------
  102. 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/
  103. [jalal@submit-5 ~]$ python
  104. Python 2.7.12 (default, Nov 1 2016, 21:05:50)
  105. [GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2
  106. Type "help", "copyright", "credits" or "license" for more information.
  107. >>> import sqlite3
  108. Traceback (most recent call last):
  109. File "<stdin>", line 1, in <module>
  110. File "/home/jalal/python/lib/python2.7/sqlite3/__init__.py", line 24, in <module>
  111. from dbapi2 import *
  112. File "/home/jalal/python/lib/python2.7/sqlite3/dbapi2.py", line 28, in <module>
  113. from _sqlite3 import *
  114. ImportError: No module named _sqlite3
  115. >>> import nltk
  116. Traceback (most recent call last):
  117. File "<stdin>", line 1, in <module>
  118. File "/home/jalal/python/lib/python2.7/site-packages/nltk/__init__.py", line 137, in <module>
  119. from nltk.stem import *
  120. File "/home/jalal/python/lib/python2.7/site-packages/nltk/stem/__init__.py", line 29, in <module>
  121. from nltk.stem.snowball import SnowballStemmer
  122. File "/home/jalal/python/lib/python2.7/site-packages/nltk/stem/snowball.py", line 24, in <module>
  123. from nltk.corpus import stopwords
  124. File "/home/jalal/python/lib/python2.7/site-packages/nltk/corpus/__init__.py", line 66, in <module>
  125. from nltk.corpus.reader import *
  126. File "/home/jalal/python/lib/python2.7/site-packages/nltk/corpus/reader/__init__.py", line 105, in <module>
  127. from nltk.corpus.reader.panlex_lite import *
  128. File "/home/jalal/python/lib/python2.7/site-packages/nltk/corpus/reader/panlex_lite.py", line 15, in <module>
  129. import sqlite3
  130. File "/home/jalal/python/lib/python2.7/sqlite3/__init__.py", line 24, in <module>
  131. from dbapi2 import *
  132. File "/home/jalal/python/lib/python2.7/sqlite3/dbapi2.py", line 28, in <module>
  133. from _sqlite3 import *
  134. ImportError: No module named _sqlite3
  135. >>> quit()
  136. [jalal@submit-5 ~]$ /usr/bin/python
  137. Python 2.6.6 (r266:84292, Nov 21 2013, 12:39:37)
  138. [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2
  139. Type "help", "copyright", "credits" or "license" for more information.
  140. >>> import sqlite3
  141. >>> import nltk
  142. Traceback (most recent call last):
  143. File "<stdin>", line 1, in <module>
  144. ImportError: No module named nltk
  145. >>> quit
  146. Use quit() or Ctrl-D (i.e. EOF) to exit
  147. >>> quit()
  148. [jalal@submit-5 ~]$ which python
  149. ~/python/bin/python
Advertisement
Add Comment
Please, Sign In to add comment