Help! ... ImportError: No module named simplejson (messed up post... sorry)

386 views
Skip to first unread message

dkaplan73

unread,
Jan 25, 2010, 8:57:36 PM1/25/10
to Bespin
Hello--

I'm on a CentOS VPS trying to install Bespin. Been rough going. When I
try to "paver create_db" and/or "paver start" I get:

Captured Task Output:
---------------------

---> pavement.start
Traceback (most recent call last):
File "/bespinclient/lib/python2.6/site-packages/Paver-1.0.1-
py2.6.egg/paver/tasks.py", line 164, in _run_task
return do_task()
File "/bespinclient/lib/python2.6/site-packages/Paver-1.0.1-
py2.6.egg/paver/tasks.py", line 161, in do_task
return func(**kw)
File "pavement.py", line 127, in start
from bespin import config, controllers
File "/bespinserver/bespin/controllers.py", line 52, in <module>
import simplejson
ImportError: No module named simplejson


I've scoured this and other groups. Anyone have a clue?

Thanks,

David

Joe Developer

unread,
Jan 26, 2010, 5:00:50 AM1/26/10
to bes...@googlegroups.com
did you install the python module 'simplejson' ? is it in your path? 
--
You received this message because you are subscribed to the Google Groups "Bespin" group.
To post to this group, send email to bes...@googlegroups.com.
To unsubscribe from this group, send email to bespin+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bespin?hl=en.


Kevin Dangoor

unread,
Jan 26, 2010, 9:56:07 AM1/26/10
to bes...@googlegroups.com
It looks like your Bespin is not fully set up.

After running bootstrap.py, you should have had instructions on-screen that included:

source bin/activate
paver install_server

paver install_server, I believe, should get you simplejson.

Kevin

--
You received this message because you are subscribed to the Google Groups "Bespin" group.
To post to this group, send email to bes...@googlegroups.com.
To unsubscribe from this group, send email to bespin+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bespin?hl=en.




--
Kevin Dangoor

work: http://labs.mozilla.com/
email: k...@blazingthings.com
blog: http://www.BlueSkyOnMars.com

dkaplan73

unread,
Jan 26, 2010, 11:30:48 AM1/26/10
to Bespin
Hey Kevin,

Yes, I tried all that. I've also installed simplejson in a variety of
different ways and paver just can't seem to find it. Here's the output
from my latest try of "paver install_server", "paver create_db" and
"paver start":

building 'Crypto.Hash.SHA256' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -fPIC -Isrc/ -I/usr/local/include/python2.6 -c src/
SHA256.c -o build/temp.linux-x86_64-2.6/src/SHA256.o
src/SHA256.c: In function âhash_digestâ:
src/SHA256.c:197: warning: pointer targets in passing argument 1
of âPyString_FromStringAndSizeâ differ in signedness
In file included from src/SHA256.c:200:
src/hash_template.c: In function âALG_hexdigestâ:
src/hash_template.c:108: warning: pointer targets in assignment
differ in signedness
src/hash_template.c:112: warning: pointer targets in assignment
differ in signedness
gcc -pthread -shared build/temp.linux-x86_64-2.6/src/SHA256.o -o
build/lib.linux-x86_64-2.6/Crypto/Hash/SHA256.so
building 'Crypto.Cipher.AES' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -fPIC -Isrc/ -I/usr/local/include/python2.6 -c src/
AES.c -o build/temp.linux-x86_64-2.6/src/AES.o
In file included from src/AES.c:1459:
src/block_template.c: In function âALG_Encryptâ:
src/block_template.c:371: warning: pointer targets in passing
argument 2 of âblock_encryptâ differ in signedness
src/block_template.c:388: warning: pointer targets in passing
argument 1 of âPyString_FromStringAndSizeâ differ in signedness
src/block_template.c: In function âALG_Decryptâ:
src/block_template.c:561: warning: pointer targets in passing
argument 2 of âblock_encryptâ differ in signedness
src/block_template.c:578: warning: pointer targets in passing
argument 1 of âPyString_FromStringAndSizeâ differ in signedness
src/block_template.c: In function âALGgetattrâ:
src/block_template.c:680: warning: pointer targets in passing
argument 1 of âPyString_FromStringAndSizeâ differ in signedness
gcc -pthread -shared build/temp.linux-x86_64-2.6/src/AES.o -o
build/lib.linux-x86_64-2.6/Crypto/Cipher/AES.so
building 'Crypto.Cipher.ARC2' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -fPIC -Isrc/ -I/usr/local/include/python2.6 -c src/
ARC2.c -o build/temp.linux-x86_64-2.6/src/ARC2.o
In file included from src/ARC2.c:185:
src/block_template.c: In function âALG_Encryptâ:
src/block_template.c:371: warning: pointer targets in passing
argument 2 of âblock_encryptâ differ in signedness
src/block_template.c:388: warning: pointer targets in passing
argument 1 of âPyString_FromStringAndSizeâ differ in signedness
src/block_template.c: In function âALG_Decryptâ:
src/block_template.c:561: warning: pointer targets in passing
argument 2 of âblock_encryptâ differ in signedness
src/block_template.c:578: warning: pointer targets in passing
argument 1 of âPyString_FromStringAndSizeâ differ in signedness
src/block_template.c: In function âALGgetattrâ:
src/block_template.c:680: warning: pointer targets in passing
argument 1 of âPyString_FromStringAndSizeâ differ in signedness
gcc -pthread -shared build/temp.linux-x86_64-2.6/src/ARC2.o -o
build/lib.linux-x86_64-2.6/Crypto/Cipher/ARC2.so
building 'Crypto.Cipher.Blowfish' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -fPIC -Isrc/ -I/usr/local/include/python2.6 -c src/
Blowfish.c -o build/temp.linux-x86_64-2.6/src/Blowfish.o
In file included from src/Blowfish.c:499:
src/block_template.c: In function âALG_Encryptâ:
src/block_template.c:371: warning: pointer targets in passing
argument 2 of âblock_encryptâ differ in signedness
src/block_template.c:388: warning: pointer targets in passing
argument 1 of âPyString_FromStringAndSizeâ differ in signedness
src/block_template.c: In function âALG_Decryptâ:
src/block_template.c:561: warning: pointer targets in passing
argument 2 of âblock_encryptâ differ in signedness
src/block_template.c:578: warning: pointer targets in passing
argument 1 of âPyString_FromStringAndSizeâ differ in signedness
src/block_template.c: In function âALGgetattrâ:
src/block_template.c:680: warning: pointer targets in passing
argument 1 of âPyString_FromStringAndSizeâ differ in signedness
gcc -pthread -shared build/temp.linux-x86_64-2.6/src/Blowfish.o -o
build/lib.linux-x86_64-2.6/Crypto/Cipher/Blowfish.so
building 'Crypto.Cipher.CAST' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -fPIC -Isrc/ -I/usr/local/include/python2.6 -c src/
CAST.c -o build/temp.linux-x86_64-2.6/src/CAST.o
In file included from src/CAST.c:436:
src/block_template.c: In function âALG_Encryptâ:
src/block_template.c:371: warning: pointer targets in passing
argument 2 of âblock_encryptâ differ in signedness
src/block_template.c:388: warning: pointer targets in passing
argument 1 of âPyString_FromStringAndSizeâ differ in signedness
src/block_template.c: In function âALG_Decryptâ:
src/block_template.c:561: warning: pointer targets in passing
argument 2 of âblock_encryptâ differ in signedness
src/block_template.c:578: warning: pointer targets in passing
argument 1 of âPyString_FromStringAndSizeâ differ in signedness
src/block_template.c: In function âALGgetattrâ:
src/block_template.c:680: warning: pointer targets in passing
argument 1 of âPyString_FromStringAndSizeâ differ in signedness
gcc -pthread -shared build/temp.linux-x86_64-2.6/src/CAST.o -o
build/lib.linux-x86_64-2.6/Crypto/Cipher/CAST.so
building 'Crypto.Cipher.DES' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -fPIC -Isrc/ -I/usr/local/include/python2.6 -c src/
DES.c -o build/temp.linux-x86_64-2.6/src/DES.o
In file included from src/DES.c:665:
src/block_template.c: In function âALG_Encryptâ:
src/block_template.c:371: warning: pointer targets in passing
argument 2 of âblock_encryptâ differ in signedness
src/block_template.c:388: warning: pointer targets in passing
argument 1 of âPyString_FromStringAndSizeâ differ in signedness
src/block_template.c: In function âALG_Decryptâ:
src/block_template.c:561: warning: pointer targets in passing
argument 2 of âblock_encryptâ differ in signedness
src/block_template.c:578: warning: pointer targets in passing
argument 1 of âPyString_FromStringAndSizeâ differ in signedness
src/block_template.c: In function âALGgetattrâ:
src/block_template.c:680: warning: pointer targets in passing
argument 1 of âPyString_FromStringAndSizeâ differ in signedness
gcc -pthread -shared build/temp.linux-x86_64-2.6/src/DES.o -o
build/lib.linux-x86_64-2.6/Crypto/Cipher/DES.so
building 'Crypto.Cipher.DES3' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -fPIC -Isrc/ -I/usr/local/include/python2.6 -c src/
DES3.c -o build/temp.linux-x86_64-2.6/src/DES3.o
In file included from src/DES3.c:688:
src/block_template.c: In function âALG_Encryptâ:
src/block_template.c:371: warning: pointer targets in passing
argument 2 of âblock_encryptâ differ in signedness
src/block_template.c:388: warning: pointer targets in passing
argument 1 of âPyString_FromStringAndSizeâ differ in signedness
src/block_template.c: In function âALG_Decryptâ:
src/block_template.c:561: warning: pointer targets in passing
argument 2 of âblock_encryptâ differ in signedness
src/block_template.c:578: warning: pointer targets in passing
argument 1 of âPyString_FromStringAndSizeâ differ in signedness
src/block_template.c: In function âALGgetattrâ:
src/block_template.c:680: warning: pointer targets in passing
argument 1 of âPyString_FromStringAndSizeâ differ in signedness
gcc -pthread -shared build/temp.linux-x86_64-2.6/src/DES3.o -o
build/lib.linux-x86_64-2.6/Crypto/Cipher/DES3.so
building 'Crypto.Cipher.IDEA' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -fPIC -Isrc/ -I/usr/local/include/python2.6 -c src/
IDEA.c -o build/temp.linux-x86_64-2.6/src/IDEA.o
In file included from src/IDEA.c:196:
src/block_template.c: In function âALG_Encryptâ:
src/block_template.c:371: warning: pointer targets in passing
argument 2 of âblock_encryptâ differ in signedness
src/block_template.c:388: warning: pointer targets in passing
argument 1 of âPyString_FromStringAndSizeâ differ in signedness
src/block_template.c: In function âALG_Decryptâ:
src/block_template.c:561: warning: pointer targets in passing
argument 2 of âblock_encryptâ differ in signedness
src/block_template.c:578: warning: pointer targets in passing
argument 1 of âPyString_FromStringAndSizeâ differ in signedness
src/block_template.c: In function âALGgetattrâ:
src/block_template.c:680: warning: pointer targets in passing
argument 1 of âPyString_FromStringAndSizeâ differ in signedness
gcc -pthread -shared build/temp.linux-x86_64-2.6/src/IDEA.o -o
build/lib.linux-x86_64-2.6/Crypto/Cipher/IDEA.so
building 'Crypto.Cipher.RC5' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -fPIC -Isrc/ -I/usr/local/include/python2.6 -c src/
RC5.c -o build/temp.linux-x86_64-2.6/src/RC5.o
In file included from src/RC5.c:212:
src/block_template.c: In function âALG_Encryptâ:
src/block_template.c:371: warning: pointer targets in passing
argument 2 of âblock_encryptâ differ in signedness
src/block_template.c:388: warning: pointer targets in passing
argument 1 of âPyString_FromStringAndSizeâ differ in signedness
src/block_template.c: In function âALG_Decryptâ:
src/block_template.c:561: warning: pointer targets in passing
argument 2 of âblock_encryptâ differ in signedness
src/block_template.c:578: warning: pointer targets in passing
argument 1 of âPyString_FromStringAndSizeâ differ in signedness
src/block_template.c: In function âALGgetattrâ:
src/block_template.c:680: warning: pointer targets in passing
argument 1 of âPyString_FromStringAndSizeâ differ in signedness
gcc -pthread -shared build/temp.linux-x86_64-2.6/src/RC5.o -o
build/lib.linux-x86_64-2.6/Crypto/Cipher/RC5.so
building 'Crypto.Cipher.ARC4' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -fPIC -Isrc/ -I/usr/local/include/python2.6 -c src/
ARC4.c -o build/temp.linux-x86_64-2.6/src/ARC4.o
In file included from src/ARC4.c:70:
src/stream_template.c: In function âALG_Encryptâ:
src/stream_template.c:135: warning: pointer targets in passing
argument 1 of âPyString_FromStringAndSizeâ differ in signedness
src/stream_template.c: In function âALG_Decryptâ:
src/stream_template.c:164: warning: pointer targets in passing
argument 2 of âstream_encryptâ differ in signedness
gcc -pthread -shared build/temp.linux-x86_64-2.6/src/ARC4.o -o
build/lib.linux-x86_64-2.6/Crypto/Cipher/ARC4.so
building 'Crypto.Cipher.XOR' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -fPIC -Isrc/ -I/usr/local/include/python2.6 -c src/
XOR.c -o build/temp.linux-x86_64-2.6/src/XOR.o
In file included from src/XOR.c:52:
src/stream_template.c: In function âALG_Encryptâ:
src/stream_template.c:135: warning: pointer targets in passing
argument 1 of âPyString_FromStringAndSizeâ differ in signedness
src/stream_template.c: In function âALG_Decryptâ:
src/stream_template.c:164: warning: pointer targets in passing
argument 2 of âstream_encryptâ differ in signedness
gcc -pthread -shared build/temp.linux-x86_64-2.6/src/XOR.o -o
build/lib.linux-x86_64-2.6/Crypto/Cipher/XOR.so
Running setup.py install for Paste
Skipping installation of /bespinclient/lib/python2.6/site-packages/
paste/__init__.py (namespace package)
Installing /bespinclient/lib/python2.6/site-packages/
Paste-1.7.3dev_r7791-py2.6-nspkg.pth
Running setup.py install for path
Running setup.py install for omnisync
changing mode of build/scripts-2.6/omnisync from 644 to 755
changing mode of /bespinclient/bin/omnisync to 755
Running setup.py install for httplib2
Successfully installed
The software is now installed. If this is your first time, you will
probably
also want to create your development database with this command:

paver create_db


Look for error messages in the output above. If everything looks
good, you can start the server by running:

paver start

(bespinclient)[root@202010-1 bespinclient]# paver create_db
---> pavement.create_db
Calling create_db in bespinserver
---> pavement.create_db
/bespinclient/lib/python2.6/site-packages/path.py:32:
DeprecationWarning: the md5 module is deprecated; use hashlib instead
import sys, warnings, os, fnmatch, glob, shutil, codecs, md5


Captured Task Output:
---------------------

---> pavement.create_db


Traceback (most recent call last):
File "/bespinclient/lib/python2.6/site-packages/Paver-1.0.1-
py2.6.egg/paver/tasks.py", line 164, in _run_task
return do_task()
File "/bespinclient/lib/python2.6/site-packages/Paver-1.0.1-
py2.6.egg/paver/tasks.py", line 161, in do_task
return func(**kw)

File "pavement.py", line 80, in create_db
from bespin import config, database, db_versions
File "/bespinserver/bespin/database.py", line 42, in <module>


import simplejson
ImportError: No module named simplejson


(bespinclient)[root@202010-1 bespinclient]# paver start
---> pavement.start
rmtree tmp/static () {}
makedirs tmp/static (mode 511)
copy sproutcore/sproutcore.css tmp/static
copy sproutcore/core_test.js tmp/static
copy sproutcore/core_test.css tmp/static
copy sproutcore/sproutcore.js tmp/static
copytree sproutcore/images tmp/static/images
mkdir tmp/static/editor (mode 511)
---> pavement.start
/bespinclient/lib/python2.6/site-packages/path.py:32:
DeprecationWarning: the md5 module is deprecated; use hashlib instead
import sys, warnings, os, fnmatch, glob, shutil, codecs, md5
/bespinclient/lib/python2.6/site-packages/httplib2/__init__.py:44:
DeprecationWarning: the sha module is deprecated; use the hashlib
module instead
import sha


Captured Task Output:
---------------------

---> pavement.start
Traceback (most recent call last):
File "/bespinclient/lib/python2.6/site-packages/Paver-1.0.1-
py2.6.egg/paver/tasks.py", line 164, in _run_task
return do_task()
File "/bespinclient/lib/python2.6/site-packages/Paver-1.0.1-
py2.6.egg/paver/tasks.py", line 161, in do_task
return func(**kw)
File "pavement.py", line 127, in start
from bespin import config, controllers
File "/bespinserver/bespin/controllers.py", line 52, in <module>
import simplejson
ImportError: No module named simplejson

> > bespin+un...@googlegroups.com<bespin%2Bunsu...@googlegroups.com>

dkaplan73

unread,
Jan 26, 2010, 11:32:45 AM1/26/10
to Bespin
Joe,

I definately installed simplejson and did so multiple times. Also, the
"paver install_server" command installed it on its own. However, it's
still not being found. I'm not sure if it's in the "path". How would I
check?

David

On Jan 26, 5:00 am, Joe Developer <joe.d.develo...@gmail.com> wrote:

> > bespin+un...@googlegroups.com<bespin%2Bunsu...@googlegroups.com>

Joe Developer

unread,
Jan 26, 2010, 11:46:35 AM1/26/10
to bes...@googlegroups.com
To check your python paths you could do: 
$python
>>>import sys
>>>sys.path

Try doing:
$python
>>>import simplejson

If you get an error its not in your path.

Then do: 
$sudo easy_install simplejson

$python
>>>import simplejson

If you don't get an error on the import, then it is in your path. 


Caveat, I don't really know how bespin is packaged atm, so it might actually be 'in there' even if you can't import it from $python

To unsubscribe from this group, send email to bespin+un...@googlegroups.com.

Kevin Dangoor

unread,
Jan 26, 2010, 12:16:53 PM1/26/10
to bes...@googlegroups.com
On Tue, Jan 26, 2010 at 11:30 AM, dkaplan73 <davida...@gmail.com> wrote:

(bespinclient)[root@202010-1 bespinclient]# paver create_db
---> pavement.create_db
Calling create_db in bespinserver
---> pavement.create_db
/bespinclient/lib/python2.6/site-packages/path.py:32:
DeprecationWarning: the md5 module is deprecated; use hashlib instead
 import sys, warnings, os, fnmatch, glob, shutil, codecs, md5


Captured Task Output:
---------------------

---> pavement.create_db
Traceback (most recent call last):
 File "/bespinclient/lib/python2.6/site-packages/Paver-1.0.1-
py2.6.egg/paver/tasks.py", line 164, in _run_task
   return do_task()
 File "/bespinclient/lib/python2.6/site-packages/Paver-1.0.1-
py2.6.egg/paver/tasks.py", line 161, in do_task
   return func(**kw)
 File "pavement.py", line 80, in create_db
   from bespin import config, database, db_versions
 File "/bespinserver/bespin/database.py", line 42, in <module>
   import simplejson
ImportError: No module named simplejson


From all of your command output, it looks like you're in the bespinclient virtualenv, which is good. I assume that if you type

python

(and then at python prompt):

import simplejson

You get the same error?

How about

bin/easy_install simplejson

? will that work?

Kevin

David Kaplan

unread,
Jan 26, 2010, 12:23:59 PM1/26/10
to bes...@googlegroups.com
Okay, got past that. Thanks both of you! But, now a new error:


---> pavement.create_db
Traceback (most recent call last):
  File "/bespinclient/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py", line 164, in _run_task
    return do_task()
  File "/bespinclient/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py", line 161, in do_task

    return func(**kw)
  File "pavement.py", line 80, in create_db
    from bespin import config, database, db_versions
  File "/bespinserver/bespin/database.py", line 56, in <module>
    from bespin import config, filesystem
  File "/bespinserver/bespin/filesystem.py", line 49, in <module>
    import sqlite3
  File "/usr/local/lib/python2.6/sqlite3/__init__.py", line 24, in <module>
    from dbapi2 import *
  File "/usr/local/lib/python2.6/sqlite3/dbapi2.py", line 27, in <module>
    from _sqlite3 import *
ImportError: No module named _sqlite3



You received this message because you are subscribed to the Google Groups "Bespin" group.
To post to this group, send email to bes...@googlegroups.com.
To unsubscribe from this group, send email to bespin+un...@googlegroups.com.

Joe Developer

unread,
Jan 26, 2010, 12:33:28 PM1/26/10
to bes...@googlegroups.com
On Wed, Jan 27, 2010 at 12:23 AM, David Kaplan <da...@davidkaplandesign.com> wrote:
Okay, got past that. Thanks both of you! But, now a new error:
ImportError: No module named _sqlite3


Same deal but now with sqlite3 I reckon. 
Although, there may be some underlying problems that it would save time to address properly. 

David Kaplan

unread,
Jan 26, 2010, 1:38:00 PM1/26/10
to bes...@googlegroups.com
I tried "bin/easy_install sqlite3" and got this:

[root@202010-1 bespinclient]# bin/easy_install sqlite3
Searching for sqlite3
Reading http://pypi.python.org/simple/sqlite3/
Couldn't find index page for 'sqlite3' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for sqlite3
Best match: None

Traceback (most recent call last):
  File "bin/easy_install", line 8, in <module>
    load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')()
  File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 1712, in main
  File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 1700, in with_ei_usage
  File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 1716, in <lambda>
  File "/usr/local/lib/python2.6/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/local/lib/python2.6/distutils/dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "/usr/local/lib/python2.6/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 211, in run
  File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 434, in easy_install
  File "build/bdist.linux-i686/egg/setuptools/package_index.py", line 475, in fetch_distribution
AttributeError: 'NoneType' object has no attribute 'clone'


--

Joe Developer

unread,
Jan 26, 2010, 1:54:07 PM1/26/10
to bes...@googlegroups.com
On Wed, Jan 27, 2010 at 1:38 AM, David Kaplan <da...@davidkaplandesign.com> wrote:
I tried "bin/easy_install sqlite3" and got this:

[root@202010-1 bespinclient]# bin/easy_install sqlite3
Searching for sqlite3
Reading http://pypi.python.org/simple/sqlite3/
Couldn't find index page for 'sqlite3' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for sqlite3
Best match: None

Try pysqlite

David Kaplan

unread,
Jan 26, 2010, 2:20:58 PM1/26/10
to bes...@googlegroups.com
Ok, did that, got major errors. At the end it said there was a "gcc" error. So I tried to install gcc and it said it was already. Here's the errors:

Searching for pysqlite
Reading http://pypi.python.org/simple/pysqlite/
Reading http://pysqlite.sourceforge.net/
Reading http://pysqlite.googlecode.com/
Reading http://code.google.com/p/pysqlite/downloads/list
Reading http://pysqlite.org/
Download error: [Errno -3] Temporary failure in name resolution -- Some packages may not be found!
Reading http://initd.org/tracker/pysqlite/wiki/PysqliteDownloads
Reading http://initd.org/pub/software/pysqlite/releases/2.3/2.3.3/
Reading http://initd.org/pub/software/pysqlite/releases/2.3/2.3.4/
Reading http://oss.itsystementwicklung.de/trac/pysqlite
Reading http://oss.itsystementwicklung.de/download/pysqlite/2.5/2.5.0/
Reading http://oss.itsystementwicklung.de/download/pysqlite/2.4/2.4.1/
Reading http://initd.org/pub/software/pysqlite/releases/2.4/2.4.0/
Reading http://initd.org/pub/software/pysqlite/releases/2.3/2.3.5/
Best match: pysqlite 2.5.6
Downloading http://pysqlite.googlecode.com/files/pysqlite-2.5.6.tar.gz
Processing pysqlite-2.5.6.tar.gz
Running pysqlite-2.5.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-OObU6h/pysqlite-2.5.6/egg-dist-tmp-f9jJ31
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_completeâ:
src/module.c:99: warning: implicit declaration of function âsqlite3_completeâ
src/module.c: At top level:
src/module.c:265: error: âSQLITE_OKâ undeclared here (not in a function)
src/module.c:266: error: âSQLITE_DENYâ undeclared here (not in a function)
src/module.c:267: error: âSQLITE_IGNOREâ undeclared here (not in a function)
src/module.c:268: error: âSQLITE_CREATE_INDEXâ undeclared here (not in a function)
src/module.c:269: error: âSQLITE_CREATE_TABLEâ undeclared here (not in a function)
src/module.c:270: error: âSQLITE_CREATE_TEMP_INDEXâ undeclared here (not in a function)
src/module.c:271: error: âSQLITE_CREATE_TEMP_TABLEâ undeclared here (not in a function)
src/module.c:272: error: âSQLITE_CREATE_TEMP_TRIGGERâ undeclared here (not in a function)
src/module.c:273: error: âSQLITE_CREATE_TEMP_VIEWâ undeclared here (not in a function)
src/module.c:274: error: âSQLITE_CREATE_TRIGGERâ undeclared here (not in a function)
src/module.c:275: error: âSQLITE_CREATE_VIEWâ undeclared here (not in a function)
src/module.c:276: error: âSQLITE_DELETEâ undeclared here (not in a function)
src/module.c:277: error: âSQLITE_DROP_INDEXâ undeclared here (not in a function)
src/module.c:278: error: âSQLITE_DROP_TABLEâ undeclared here (not in a function)
src/module.c:279: error: âSQLITE_DROP_TEMP_INDEXâ undeclared here (not in a function)
src/module.c:280: error: âSQLITE_DROP_TEMP_TABLEâ undeclared here (not in a function)
src/module.c:281: error: âSQLITE_DROP_TEMP_TRIGGERâ undeclared here (not in a function)
src/module.c:282: error: âSQLITE_DROP_TEMP_VIEWâ undeclared here (not in a function)
src/module.c:283: error: âSQLITE_DROP_TRIGGERâ undeclared here (not in a function)
src/module.c:284: error: âSQLITE_DROP_VIEWâ undeclared here (not in a function)
src/module.c:285: error: âSQLITE_INSERTâ undeclared here (not in a function)
src/module.c:286: error: âSQLITE_PRAGMAâ undeclared here (not in a function)
src/module.c:287: error: âSQLITE_READâ undeclared here (not in a function)
src/module.c:288: error: âSQLITE_SELECTâ undeclared here (not in a function)
src/module.c:289: error: âSQLITE_TRANSACTIONâ undeclared here (not in a function)
src/module.c:290: error: âSQLITE_UPDATEâ undeclared here (not in a function)
src/module.c:291: error: âSQLITE_ATTACHâ undeclared here (not in a function)
src/module.c:292: error: âSQLITE_DETACHâ undeclared here (not in a function)
src/module.c: In function âinit_sqliteâ:
src/module.c:419: warning: implicit declaration of function âsqlite3_libversionâ
src/module.c:419: warning: passing argument 1 of âPyString_FromStringâ makes pointer from integer without a cast
error: Setup script exited with error: command 'gcc' failed with exit status 1
[root@202010-1 bespinclient]# yum install gcc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: mirror.rackspace.com
 * base: ftp.lug.udel.edu
 * epel: archive.linux.duke.edu
 * extras: mirror.rackspace.com
 * updates: ftp.lug.udel.edu
Setting up Install Process
Package gcc-4.1.2-46.el5_4.2.x86_64 already installed and latest version
Nothing to do


Kevin Dangoor

unread,
Jan 26, 2010, 9:46:03 PM1/26/10
to bes...@googlegroups.com
On Tue, Jan 26, 2010 at 12:23 PM, David Kaplan <da...@davidkaplandesign.com> wrote:
Okay, got past that. Thanks both of you! But, now a new error:


---> pavement.create_db
Traceback (most recent call last):
  File "/bespinclient/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py", line 164, in _run_task
    return do_task()
  File "/bespinclient/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py", line 161, in do_task
    return func(**kw)
  File "pavement.py", line 80, in create_db
    from bespin import config, database, db_versions
  File "/bespinserver/bespin/database.py", line 56, in <module>
    from bespin import config, filesystem
  File "/bespinserver/bespin/filesystem.py", line 49, in <module>
    import sqlite3
  File "/usr/local/lib/python2.6/sqlite3/__init__.py", line 24, in <module>
    from dbapi2 import *
  File "/usr/local/lib/python2.6/sqlite3/dbapi2.py", line 27, in <module>
    from _sqlite3 import *
ImportError: No module named _sqlite3

Ahh, the joys of CentOS. bespin.mozilla.com runs on CentOS and this brought back memories...

Python, starting with 2.5 I believe, includes the sqlite wrapper... unless, of course, you don't have sqlite or didn't build Python with it. I remember now that I ended up building my own Python after installing sqlite.

So, you'll likely need to yum install sqlite3 or something along those lines. I don't know if there's a way you can avoid rebuilding Python.
Reply all
Reply to author
Forward
0 new messages