Re: OperationalError: unable to open database file

2013-08-30 Thread Dan Gentry
When using sqlite3, one has to provide a full path to the database file. For my projects I use something like this on my development machines (for a database file named 'db'): import os PROJECT_DIR = os.path.dirname(__file__) DATABASES = { 'default': { 'ENGINE': 'django.db.backen

Re: OperationalError: unable to open database file

2013-08-30 Thread jumpmanlane
make sure you don't have another instance of django running already. -J On Monday, July 22, 2013 1:48:43 PM UTC-4, Stian Sjøli wrote: > > i get this error while going throught the tutorial from the django > website. I am a mac user, and have modified my settings-file to use sqlite3 > and the na

OperationalError: unable to open database file

2013-07-22 Thread Stian Sjøli
i get this error while going throught the tutorial from the django website. I am a mac user, and have modified my settings-file to use sqlite3 and the name variable to say "./mysite". Any suggestions why I get this error? -- You received this message because you are subscribed to the Google Gro

Re: "Error: unable to open database file" when trying out the Django tutorial

2012-10-20 Thread Amyth Arora
ango" page. >> But when it came to database setup I am having the following problem. >> >> I have modified the settings.py file with the following entries: >> >> 'ENGINE': 'django.db.backends.sqlite3', >> 'NAME': &

Re: "Error: unable to open database file" when trying out the Django tutorial

2012-10-19 Thread Hamed Tohidloo
I have modified the settings.py file with the following entries: > > 'ENGINE': 'django.db.backends.sqlite3', > 'NAME': 'E:/Users/python/mysite/ > mysite.db', > > Now when I run > python manage.py syncdb > I

Re: Unable to open database file ( Asking graphite and django forum )

2012-04-06 Thread Ejah
#x27;db' directory to create/ > > write/read? > > HTH > > Ernst > > > On Apr 6, 7:25 am, KriRad wrote: > > > > Hi, > > > > I have read previous mail in many forums and tried the suggestions. > > > The error is "pysqlite2.dbapi

Re: Unable to open database file ( Asking graphite and django forum )

2012-04-06 Thread KriRad
kends.sqllite3' > Two: Do you have the proper rights in the 'db' directory to create/ > write/read? > HTH > Ernst > > On Apr 6, 7:25 am, KriRad wrote: > > > > > Hi, > > > I have read previous mail in many forums and tried the suggest

Re: Unable to open database file ( Asking graphite and django forum )

2012-04-06 Thread Ejah
read previous mail in many forums and tried the suggestions. > The error is "pysqlite2.dbapi2.OperationalError: unable to open > database file" > > Read/Write permissions are given > > Command run is > > sudo /usr/bin/python manage.py sy

Unable to open database file ( Asking graphite and django forum )

2012-04-05 Thread KriRad
Hi, I have read previous mail in many forums and tried the suggestions. The error is "pysqlite2.dbapi2.OperationalError: unable to open database file" Read/Write permissions are given Command run is sudo /usr/bin/python manage.py syncdb settings.py is DATABASES = {

Unable to open database file

2012-04-05 Thread KriRad
There were so many posts like this and I have looked at them both in the graphite forum as well as this. I see three 'settings.py' files. usr/lib/pymodules/python2.7/django/conf/project_template/ settings.py:DATABASES = { /usr/lib/pymodules/python2.6/django/conf/project_template/ settings.py:DATA

Re: Unable to open database file

2012-03-02 Thread Brian Schott
selected_choice.save(). The error message from debug is listed > below. Any guidance would be greatly appeciated. Thanks. > > John > > DatabaseError at /polls/1/vote/ > > unable to open database file > > Request Method: POST > Request URL: http://jsdey.com/pol

Re: Unable to open database file

2012-02-18 Thread akaariai
On Feb 18, 11:24 pm, "j...@jsdey.com" wrote: > I'm another newbe and need you patient consideration. > > I've worked my way through the polls tutorial.  Thinks seem to be > working with django server.  When I use Django/Wsgi I vote from an > external site but django is unable to open database from

Unable to open database file

2012-02-18 Thread j...@jsdey.com
or message from debug is listed below. Any guidance would be greatly appeciated. Thanks. John DatabaseError at /polls/1/vote/ unable to open database file Request Method: POST Request URL:http://jsdey.com/polls/1/vote/ Django Version: 1.3.1 Exception Type: Dat

"Error: unable to open database file" when trying out the Django tutorial

2011-03-25 Thread kpk
e/ mysite.db', Now when I run python manage.py syncdb I get an error DatabaseError: unable to open database file But the file mysite.db is created in the folder. The file and folder has write permission for all users. The full output of the command is as follows: E:\Users\python\mys

Re: newbie: unable to open database file

2009-11-28 Thread Karen Tracey
On Sat, Nov 28, 2009 at 10:46 PM, ccl4r wrote: > I'm tryin out the tutorial and am very new to this...I have my > settings.py as: > > DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', > 'postgresql', 'mysql', 'sqlite3' or 'oracle'. > DATABASE_NAME = 'C:\Users\Student\Desktop\mysite'

newbie: unable to open database file

2009-11-28 Thread ccl4r
sktop\mysite' and when I run the command: python manage.py syncdb I get a the error: self.connection = Database.connect(**kwargs) sqlite3.OparationalError: unable to open database file I saw related posts but can't find a way to resolve. -- You received this message because you are su

Re: Trouble on Apache: unable to open database file

2009-10-27 Thread John D Giotta
It worked, but I also discovered a relative path to the database file in the settings.py was a bad move. Changing it to absolute was the second part of the solution. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

Re: python manage.py syncdb error: sqlite3.OperationalError: unable to open database file

2009-10-20 Thread David Paccoud
the >> > > "python manage.py syncdb" >> > > it returns this error: >> >> > > Traceback (most recent call last): >> > >  File "manage.py", line 11, in >> > >    execute_manager(settings) >> > >  Fi

Re: python manage.py syncdb error: sqlite3.OperationalError: unable to open database file

2009-10-19 Thread selena
ango/core/management/ > > > __init__.py", line 3 > > >    utility.execute() > > >  File "/usr/local/lib/python2.6/dist-packages/django/core/management/ > > > __init__.py", line 3 > > >    self.fetch_command(subcommand).run_from_argv(self.arg

Re: python manage.py syncdb error: sqlite3.OperationalError: unable to open database file

2009-10-19 Thread selena
st-packages/django/core/management/ > > base.py", line 195, > >    self.execute(*args, **options.__dict__) > >  File "/usr/local/lib/python2.6/dist-packages/django/core/management/ > > base.py", line 222, > >    output = self.handle(*args, **options) > &g

Re: python manage.py syncdb error: sqlite3.OperationalError: unable to open database file

2009-10-18 Thread Ovnicraft
r/local/lib/python2.6/dist-packages/django/core/management/ > commands/syncdb.py", >cursor = connection.cursor() > File "/usr/local/lib/python2.6/dist-packages/django/db/backends/ > __init__.py", line 81, i >cursor = self._cursor() > File "/usr/local

python manage.py syncdb error: sqlite3.OperationalError: unable to open database file

2009-10-18 Thread selena
kages/django/db/backends/ __init__.py", line 81, i cursor = self._cursor() File "/usr/local/lib/python2.6/dist-packages/django/db/backends/ sqlite3/base.py", line 1 self.connection = Database.connect(**kwargs) sqlite3.OperationalError: unable to open database file i have l

Re: Trouble on Apache: unable to open database file

2009-10-17 Thread John D Giotta
ng up a server. Among the problems, when I navigate to the > > address I receive an OperationalError "unable to open database file." > > > I can't help but think my vhosts.conf is done wrong. --~--~-~--~~~---~--~~ You received this message because

Re: Trouble on Apache: unable to open database file

2009-10-17 Thread Sid
ell to test it out. -Sid On Oct 17, 12:48 am, John D Giotta wrote: > I'm running django with mod_python/Apache and its my first time > setting up a server. Among the problems, when I navigate to the > address I receive an OperationalError "unable to open database file.&q

Trouble on Apache: unable to open database file

2009-10-16 Thread John D Giotta
I'm running django with mod_python/Apache and its my first time setting up a server. Among the problems, when I navigate to the address I receive an OperationalError "unable to open database file." I can't help but think my vhost

Re: OperationalError: unable to open database file, when saving existing object

2009-10-04 Thread pigmalione
For what it's worth, I found some kind of solution. Apparently, running under a user administrator account in Windows causes this kind of permissioning issue. If I enable the windows hidden administrator and work under that account, this issue disappears. A bit annoying. --~--~-~--~~-

Re: OperationalError: unable to open database file, when saving existing object

2009-10-01 Thread pigmalione
more symptoms: - when I issue "python manage.py createsuperuser" to create a superuser I get an "unable to open database file" error again, still the user is created on the db. However, it's created with attribute is_superuser set to false. - I can import objects from the db,

Re: OperationalError: unable to open database file, when saving existing object

2009-09-27 Thread Wim Feijen
gt; query.py", line 23 > 69, in execute_sql >     cursor.execute(sql, params) >   File "/usr/lib/python2.5/site-packages/django/db/backends/util.py", > line 19, i > n execute >     return self.cursor.execute(sql, params) >   File "/usr/lib/python2.5/site-packages

OperationalError: unable to open database file, when saving existing object

2009-09-27 Thread pigmalione
File "/usr/lib/python2.5/site-packages/django/db/backends/util.py", line 19, i n execute return self.cursor.execute(sql, params) File "/usr/lib/python2.5/site-packages/django/db/backends/sqlite3/ base.py", li ne 193, in execute return Database.Cursor.execute(self, quer

Re: i've looked at other discussions regarding the error ?unable to open database file?

2009-05-04 Thread Mike Ramirez
On Monday 04 May 2009 10:17:09 am Phil Mocek wrote: > On Mon, May 04, 2009 at 08:31:34AM -0700, Mike Ramirez wrote: > > I forgot to mention that sqlite3 expects a file to be there, it > > can't create one on it's own, using ./manage.py syncdb. > > I think you are mistaken. Can you site some docume

Re: i've looked at other discussions regarding the error ?unable to open database file?

2009-05-04 Thread Phil Mocek
On Mon, May 04, 2009 at 08:31:34AM -0700, Mike Ramirez wrote: > I forgot to mention that sqlite3 expects a file to be there, it > can't create one on it's own, using ./manage.py syncdb. I think you are mistaken. Can you site some documentation to back this claim? I'm using Django 1.0, python-sq

Re: i've looked at other discussions regarding the error ?unable to open database file?

2009-05-04 Thread bconnors
touch worked for me. thanks On May 4, 11:31 am, Mike Ramirez wrote: > I forgot to mention that sqlite3 expects a file to be there, it can't create > one on it's own, using ./manage.py syncdb.  To do so I use touch, tho you can > also do the same thing with vi, if you save it as an empty file (

Re: i've looked at other discussions regarding the error ?unable to open database file?

2009-05-04 Thread Mike Ramirez
I forgot to mention that sqlite3 expects a file to be there, it can't create one on it's own, using ./manage.py syncdb. To do so I use touch, tho you can also do the same thing with vi, if you save it as an empty file (just tested it). echo "" > testing.db might work also. [gufym...@sylia tes

Re: i've looked at other discussions regarding the error ?unable to open database file?

2009-05-04 Thread Mike Ramirez
On Monday 04 May 2009 08:16:58 am bconnors wrote: > I deleted the file and > When I do python manage.py syncdb and the message ends up with: You should be using touch, vi might work, if you save it as an empty file, but touch is the best. example: [gufym...@sylia testing]$ ls __init__.py __

Re: i've looked at other discussions regarding the error ?unable to open database file?

2009-05-04 Thread bconnors
python2.5/site-packages/django/db/backends/ __init__.py", line 8 1, in cursor cursor = self._cursor() File "/usr/lib/python2.5/site-packages/django/db/backends/sqlite3/ base.py", li ne 170, in _cursor self.connection = Database.connect(**kwargs) sqlite3.OperationalError: unable

Re: i've looked at other discussions regarding the error ?unable to open database file?

2009-05-04 Thread Phil Mocek
On Mon, May 04, 2009 at 05:33:05AM -0700, bconnors wrote: > I created a mysite.db in my directory by vi. It's highly unlikely that you will be able to create a valid SQLite database using a text editor. You should delete that file, then expect it to be created when you run the 'syncdb' command.

Re: i've looked at other discussions regarding the error “unable to open database file”

2009-05-04 Thread bconnors
e3/ base.py", li ne 170, in _cursor self.connection = Database.connect(**kwargs) sqlite3.OperationalError: unable to open database file On May 4, 8:08 am, bconnors wrote: > I’m getting the error “unable to open database file” > > I have sqlite3: > > pubu...@pubuntu:~/dj

i've looked at other discussions regarding the error “unable to open database file”

2009-05-04 Thread bconnors
I’m getting the error “unable to open database file” I have sqlite3: pubu...@pubuntu:~/django-trunk/build/lib/django/bin/mysite$ python Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type "help", "copyright", "credi

Re: unable to open database file

2008-12-04 Thread bruno desthuilliers
On 4 déc, 09:49, gaz <[EMAIL PROTECTED]> wrote: > Hi I am trying to run Django Questionaire (http://djangoquest.aperte- > it.com/) on Apache with mod_python using SQlite on Windows 2003. > > When I try to log in I get the unable to open database file error. I > saw a number

unable to open database file

2008-12-04 Thread gaz
Hi I am trying to run Django Questionaire (http://djangoquest.aperte- it.com/) on Apache with mod_python using SQlite on Windows 2003. When I try to log in I get the unable to open database file error. I saw a number of posts mention that the parent directory should be writable and it is. Here

Re: unable to open database file - sqlite3/apache problem - help?

2008-10-29 Thread Jason Sidabras
this solution doesn't fix it for me. i have my db in /var/www/myproject/databasefile and i've just simply `chmod 777` the parent directory On Oct 17, 1:22 pm, Emilio <[EMAIL PROTECTED]> wrote: > I found the solution: > > http://django.freelancernepal.com/errors/django-says-unable-to-open-d... >

Re: unable to open database file - sqlite3/apache problem - help?

2008-10-17 Thread Emilio
I found the solution: http://django.freelancernepal.com/errors/django-says-unable-to-open-database-file-when-using-sqlite3/ Regards, Emilio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: unable to open database file - sqlite3/apache problem - help?

2008-10-17 Thread Emilio
Same exact problem in Debian Lenny. I've tried debugging it but I'm out of ideas. --~--~-~--~~~---~--~~ 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.c

Re: unable to open database file - sqlite3/apache problem - help?

2008-10-14 Thread Leaf
y django > > > project, but I'm running into a little problem. When I go to my URL, I > > > get this error: > > > > Exception Type: OperationalError at /admin/ > > > Exception Value: unable to open database file > > > > I'm using sqlite3 an

Re: unable to open database file - sqlite3/apache problem - help?

2008-10-14 Thread Odie
'm running into a little problem. When I go to my URL, I > > get this error: > > > Exception Type: OperationalError at /admin/ > > Exception Value: unable to open database file > > > I'm using sqlite3 and apache, and I've been looking around the > >

Re: unable to open database file - sqlite3/apache problem - help?

2008-10-10 Thread Karen Tracey
ption Type: OperationalError at /admin/ > Exception Value: unable to open database file > > I'm using sqlite3 and apache, and I've been looking around the > interwebs and I know that this is a problem where apache can't write/ > read that particular file. This is

unable to open database file - sqlite3/apache problem - help?

2008-10-10 Thread shawn
Hey guys, So I want to be able to use mod_python and apache to host my django project, but I'm running into a little problem. When I go to my URL, I get this error: Exception Type: OperationalError at /admin/ Exception Value: unable to open database file I'm using sqlite3 and apache

Re: unable to open database file

2008-04-28 Thread Kenneth Gonsalves
On 29-Apr-08, at 1:52 AM, [EMAIL PROTECTED] wrote: > I get a operational error when i try to access the sqlite3 database > file. This doesn't happen with Django built in server only with > apache. The file has 660 permission so i dont know why it cant be > opened everything else works fine

Re: unable to open database file

2008-04-28 Thread [EMAIL PROTECTED]
What are the permissions of the enclosing folder? See http://code.djangoproject.com/wiki/NewbieMistakes#DjangosaysUnabletoOpenDatabaseFilewhenusingSQLite3 On Apr 28, 4:22 pm, [EMAIL PROTECTED] wrote: > hello all, > > I get a operational error when i try to access the sqlite3 database file. > Thi

unable to open database file

2008-04-28 Thread jorgehugoma
hello all, I get a operational error when i try to access the sqlite3 database file. This doesn't happen with Django built in server only with apache. The file has 660 permission so i dont know why it cant be opened everything else works fine. OS is openSUSE 10.3. Regards, Jorge Hugo Muril

Re: Newbie error: sqlite3.OperationalError: unable to open database file

2007-10-21 Thread Hugh Bien
> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/site-packages/django/db/backends/__init__.py", line 33, in > cursor > cursor = self._cursor(settings) > File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/site-pa

Re: Newbie error: sqlite3.OperationalError: unable to open database file

2007-10-21 Thread James Bennett
On 10/21/07, SSK <[EMAIL PROTECTED]> wrote: > Hmm. Changing ~/... to /Users/Myname/... solved the problem. Django does not expand shell abbreviations or variables, like "~" or "$HOME", when opening files. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~-

Re: Newbie error: sqlite3.OperationalError: unable to open database file

2007-10-21 Thread SSK
Hmm. Changing ~/... to /Users/Myname/... solved the problem. --~--~-~--~~~---~--~~ 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 unsubscrib

Newbie error: sqlite3.OperationalError: unable to open database file

2007-10-21 Thread SSK
, line 33, in cursor cursor = self._cursor(settings) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/django/db/backends/sqlite3/base.py", line 110, in _cursor self.connection = Database.connect(**kwargs) sqlite3.OperationalError: unable to