Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » Problem with getting Sqlite running [RSS Feed]

#1 Jan. 13, 2011 16:34:15

Chen X.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Problem with getting Sqlite running


Hi: Django users:
This is my first time to install Django on my unix system, and trying to get
my Sqlite running.
After I downloaded pysqlite-2.6.0, and run this command:

python setup.py build_static install

It gives me:

running build_static
running build_py
running build_ext
running install
running build
running install_lib
running install_data
creating
/System/Library/Frameworks/Python.framework/Versions/2.6/pysqlite2-doc
error: could not create
'/System/Library/Frameworks/Python.framework/Versions/2.6/pysqlite2-doc':
Permission denied

How should I solve this problem?

Thanks everyone

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Jan. 13, 2011 17:25:56

Daniel R.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Problem with getting Sqlite running


On Thursday, January 13, 2011 4:30:44 PM UTC, Chen Xu wrote:
>
> Hi: Django users:
> This is my first time to install Django on my unix system, and trying to
> get my Sqlite running.
> After I downloaded pysqlite-2.6.0, and run this command:
>
> python setup.py build_static install
>
> It gives me:
>
> running build_static
> running build_py
> running build_ext
> running install
> running build
> running install_lib
> running install_data
> creating
> /System/Library/Frameworks/Python.framework/Versions/2.6/pysqlite2-doc
> error: could not create
> '/System/Library/Frameworks/Python.framework/Versions/2.6/pysqlite2-doc':
> Permission denied
>
> How should I solve this problem?
>
> Thanks everyone
>
> You don't need to install py-sqlite, it comes included in Python versions
2.5 upwards.
--
DR.

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#3 Jan. 13, 2011 18:37:40

Karsten S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Problem with getting Sqlite running


Hi Chen,

Am 13.01.2011 um 18:25 schrieb Daniel Roseman:
> creating
> /System/Library/Frameworks/Python.framework/Versions/2.6/pysqlite2-doc
> error: could not create
> '/System/Library/Frameworks/Python.framework/Versions/2.6/pysqlite2-doc':
> Permission denied

sound like it's an OS X Unix?

To install in the path /System/... you need root access. I don't know, how your
system is configured. But maybe you can use the command 'su' to switch to root,
or use 'sudo python setup.py build_static install' (for details regarding 'root
under OS X' seehttp://hints.macworld.com/article.php?story=20090909081659323please.)

But as Daniel said, sqlite support is included in recent python versions of OS
X, so you don't need pysqlite.

Karsten

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#4 Jan. 14, 2011 07:29:04

Chen X.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Problem with getting Sqlite running


but when I do the following to check the version of my sqlite:

>>> import sqlite
>>> sqlite.version
'1.0.1'

the terminal returns me:
>>> import sqlite
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named sqlite

I dont know what is going on, could you please help?

Thanks

On Thu, Jan 13, 2011 at 9:25 AM, Daniel Roseman <dan...@roseman.org.uk>wrote:

> On Thursday, January 13, 2011 4:30:44 PM UTC, Chen Xu wrote:
>>
>> Hi: Django users:
>> This is my first time to install Django on my unix system, and trying to
>> get my Sqlite running.
>> After I downloaded pysqlite-2.6.0, and run this command:
>>
>> python setup.py build_static install
>>
>> It gives me:
>>
>> running build_static
>> running build_py
>> running build_ext
>> running install
>> running build
>> running install_lib
>> running install_data
>> creating
>> /System/Library/Frameworks/Python.framework/Versions/2.6/pysqlite2-doc
>> error: could not create
>> '/System/Library/Frameworks/Python.framework/Versions/2.6/pysqlite2-doc':
>> Permission denied
>>
>> How should I solve this problem?
>>
>> Thanks everyone
>>
>> You don't need to install py-sqlite, it comes included in Python versions
> 2.5 upwards.
> --
> DR.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
>http://groups.google.com/group/django-users?hl=en.
>

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#5 Jan. 14, 2011 07:40:42

Chen X.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Problem with getting Sqlite running


sorry, everyone, I just figured I made a really stupid question,
I should type import sqlite3 instead of import sqlite

Thanks everyone

On Thu, Jan 13, 2011 at 9:46 AM, Karsten Schulz <dja...@t800.ping.de> wrote:

> Hi Chen,
>
> Am 13.01.2011 um 18:25 schrieb Daniel Roseman:
> > creating
> /System/Library/Frameworks/Python.framework/Versions/2.6/pysqlite2-doc
> > error: could not create
> '/System/Library/Frameworks/Python.framework/Versions/2.6/pysqlite2-doc':
> Permission denied
>
> sound like it's an OS X Unix?
>
> To install in the path /System/... you need root access. I don't know, how
> your system is configured. But maybe you can use the command 'su' to switch
> to root, or use 'sudo python setup.py build_static install' (for details
> regarding 'root under OS X' see
>http://hints.macworld.com/article.php?story=20090909081659323please.)
>
> But as Daniel said, sqlite support is included in recent python versions of
> OS X, so you don't need pysqlite.
>
> Karsten
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
>http://groups.google.com/group/django-users?hl=en.
>
>

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#6 Jan. 14, 2011 07:41:46

R.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Problem with getting Sqlite running


the terminal returns me:


>>> import sqlite

Update your version of sqlite to 3.
Run sqlite independently from the python command line to create a
databases.

sqlite3 example.db

Simples


--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

Board footer

Moderator control

Enjoy the 19th of August
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support