Re: Newbie question: setup problems

2009-01-28 Thread Paulo Eduardo Neves

Nice!

I've edited
C:\Python25\Lib\site-packages\reviewboard-1.0alpha2.dev-py2.5.egg
\reviewboard\contrib\tools\rb-site
and in the line just before.

self.run_manage_command("syncdb", ["--noinput"])

I've put
import pdb;pdb.set_trace()

run the instalation command and when the install process stopped, I've
edited settings_local.py and put double slashs int the database_name
parameter:


DATABASE_NAME = 'd:\\codereview\\db\\reviewboard.db'

pressed 'c' in the hanged install prompt and it finished with success.


thanks!

On Jan 27, 8:29 pm, Christian Hammond  wrote:
> There's a bug right now with Windows that I'm going to fix tonight. Make
> sure that in your conf/settings_local.py your path to the database looks
> like:
>
> D:\\mypath\\db\\reviewboard.db.
>
> The "\" needs to be escaped.
>
> Christian
>
> --
> Christian Hammond - chip...@chipx86.com
> VMware, Inc.
>
> On Tue, Jan 27, 2009 at 2:25 PM, Paulo Eduardo Neves
> wrote:
>
>
>
> > I had  the same error trying to install reviewboard in windows as
> > administrator.
>
> > The dir  D:\mypath\db\ is empty.
>
> > I'm also using sqlite, file as cache, and apache.
>
> > On Jan 8, 3:04 pm, Phil  wrote:
>
> > > * Installing the site...
> > > Building site directories ... OK
> > > Building site configuration files ... OK
> > > Creatingdatabase... Traceback (most recent call last):
> > >  File"C:\Python25\Lib\site-packages\ReviewBoard-0.9.dev_20090108-
> > > py2.5.egg\EGG-INFO\scripts\rb-site", line 1186, in 
> > >     main(sys.argv[1:])
> > >  File"C:\Python25\Lib\site-packages\ReviewBoard-0.9.dev_20090108-
> > > py2.5.egg\EGG-INFO\scripts\rb-site", line 1181, in main
> > >     command.run()
> > >  File"C:\Python25\Lib\site-packages\ReviewBoard-0.9.dev_20090108-
> > > py2.5.egg\EGG-INFO\scripts\rb-site", line 822, in run
> > >     self.show_install_status()
> > >  File"C:\Python25\Lib\site-packages\ReviewBoard-0.9.dev_20090108-
> > > py2.5.egg\EGG-INFO\scripts\rb-site", line 1043, in show_install_status
> > >     site.sync_database)
> > >  File"C:\Python25\Lib\site-packages\ReviewBoard-0.9.dev_20090108-
> > > py2.5.egg\EGG-INFO\scripts\rb-site", line 469, in step
> > >     func()
> > >  File"C:\Python25\Lib\site-packages\ReviewBoard-0.9.dev_20090108-
> > > py2.5.egg\EGG-INFO\scripts\rb-site", line 181, in sync_database
> > >     self.run_manage_command("syncdb", ["--noinput"])
> > >  File"C:\Python25\Lib\site-packages\ReviewBoard-0.9.dev_20090108-
> > > py2.5.egg\EGG-INFO\scripts\rb-site", line 219, in run_manage_command
> > >     execute_manager(reviewboard.settings, [__file__, cmd] + params)
> > >  File"c:\python25\lib\site-packages\django-1.0.2_final-py2.5.egg
> > > \django\core\management\__init__.py", line 340, in execute_manager
> > >     utility.execute()
> > >  File"c:\python25\lib\site-packages\django-1.0.2_final-py2.5.egg
> > > \django\core\management\__init__.py", line 295, in execute
> > >     self.fetch_command(subcommand).run_from_argv(self.argv)
> > >  File"c:\python25\lib\site-packages\django-1.0.2_final-py2.5.egg
> > > \django\core\management\base.py", line 192, in run_from_argv
> > >     self.execute(*args, **options.__dict__)
> > >  File"c:\python25\lib\site-packages\django-1.0.2_final-py2.5.egg
> > > \django\core\management\base.py", line 219, in execute
> > >     output = self.handle(*args, **options)
> > >  File"c:\python25\lib\site-packages\django-1.0.2_final-py2.5.egg
> > > \django\core\management\base.py", line 348, in handle
> > >     return self.handle_noargs(**options)
> > >  File"c:\python25\lib\site-packages\django-1.0.2_final-py2.5.egg
> > > \django\core\management\commands\syncdb.py", line 51, in handle_noargs
> > >     cursor = connection.cursor()
> > >  File"c:\python25\lib\site-packages\django-1.0.2_final-py2.5.egg
> > > \django\db\backends\__init__.py", line 56, in cursor
> > >     cursor = self._cursor(settings)
> > >  File"c:\python25\lib\site-packages\django-1.0.2_final-py2.5.egg
> > > \django\db\backends\sqlite3\base.py", line 145, in _cursor
> > >     self.connection
> > =Database.connect(**kwargs)sqlite3.OperationalError:unabletoopendatabasefile
>
> > > 11:53:16 C:\Python25\Lib\site-packages\ReviewBoard-0.9.dev_20090108-
> > > py2.5.egg\EGG-INFO\scripts >
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~--~~~~--~~--~--~---



Re: Newbie question: setup problems

2009-01-27 Thread Christian Hammond
There's a bug right now with Windows that I'm going to fix tonight. Make
sure that in your conf/settings_local.py your path to the database looks
like:

D:\\mypath\\db\\reviewboard.db.

The "\" needs to be escaped.

Christian

-- 
Christian Hammond - chip...@chipx86.com
VMware, Inc.


On Tue, Jan 27, 2009 at 2:25 PM, Paulo Eduardo Neves
wrote:

>
> I had  the same error trying to install reviewboard in windows as
> administrator.
>
> The dir  D:\mypath\db\ is empty.
>
> I'm also using sqlite, file as cache, and apache.
>
>
>
> On Jan 8, 3:04 pm, Phil  wrote:
> >
> > * Installing the site...
> > Building site directories ... OK
> > Building site configuration files ... OK
> > Creatingdatabase... Traceback (most recent call last):
> >  File"C:\Python25\Lib\site-packages\ReviewBoard-0.9.dev_20090108-
> > py2.5.egg\EGG-INFO\scripts\rb-site", line 1186, in 
> > main(sys.argv[1:])
> >  File"C:\Python25\Lib\site-packages\ReviewBoard-0.9.dev_20090108-
> > py2.5.egg\EGG-INFO\scripts\rb-site", line 1181, in main
> > command.run()
> >  File"C:\Python25\Lib\site-packages\ReviewBoard-0.9.dev_20090108-
> > py2.5.egg\EGG-INFO\scripts\rb-site", line 822, in run
> > self.show_install_status()
> >  File"C:\Python25\Lib\site-packages\ReviewBoard-0.9.dev_20090108-
> > py2.5.egg\EGG-INFO\scripts\rb-site", line 1043, in show_install_status
> > site.sync_database)
> >  File"C:\Python25\Lib\site-packages\ReviewBoard-0.9.dev_20090108-
> > py2.5.egg\EGG-INFO\scripts\rb-site", line 469, in step
> > func()
> >  File"C:\Python25\Lib\site-packages\ReviewBoard-0.9.dev_20090108-
> > py2.5.egg\EGG-INFO\scripts\rb-site", line 181, in sync_database
> > self.run_manage_command("syncdb", ["--noinput"])
> >  File"C:\Python25\Lib\site-packages\ReviewBoard-0.9.dev_20090108-
> > py2.5.egg\EGG-INFO\scripts\rb-site", line 219, in run_manage_command
> > execute_manager(reviewboard.settings, [__file__, cmd] + params)
> >  File"c:\python25\lib\site-packages\django-1.0.2_final-py2.5.egg
> > \django\core\management\__init__.py", line 340, in execute_manager
> > utility.execute()
> >  File"c:\python25\lib\site-packages\django-1.0.2_final-py2.5.egg
> > \django\core\management\__init__.py", line 295, in execute
> > self.fetch_command(subcommand).run_from_argv(self.argv)
> >  File"c:\python25\lib\site-packages\django-1.0.2_final-py2.5.egg
> > \django\core\management\base.py", line 192, in run_from_argv
> > self.execute(*args, **options.__dict__)
> >  File"c:\python25\lib\site-packages\django-1.0.2_final-py2.5.egg
> > \django\core\management\base.py", line 219, in execute
> > output = self.handle(*args, **options)
> >  File"c:\python25\lib\site-packages\django-1.0.2_final-py2.5.egg
> > \django\core\management\base.py", line 348, in handle
> > return self.handle_noargs(**options)
> >  File"c:\python25\lib\site-packages\django-1.0.2_final-py2.5.egg
> > \django\core\management\commands\syncdb.py", line 51, in handle_noargs
> > cursor = connection.cursor()
> >  File"c:\python25\lib\site-packages\django-1.0.2_final-py2.5.egg
> > \django\db\backends\__init__.py", line 56, in cursor
> > cursor = self._cursor(settings)
> >  File"c:\python25\lib\site-packages\django-1.0.2_final-py2.5.egg
> > \django\db\backends\sqlite3\base.py", line 145, in _cursor
> > self.connection
> =Database.connect(**kwargs)sqlite3.OperationalError:unabletoopendatabasefile
> >
> > 11:53:16 C:\Python25\Lib\site-packages\ReviewBoard-0.9.dev_20090108-
> > py2.5.egg\EGG-INFO\scripts >
> >
>

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



Re: Newbie question: setup problems

2009-01-27 Thread Paulo Eduardo Neves

I had  the same error trying to install reviewboard in windows as
administrator.

The dir  D:\mypath\db\ is empty.

I'm also using sqlite, file as cache, and apache.



On Jan 8, 3:04 pm, Phil  wrote:
>
> * Installing the site...
> Building site directories ... OK
> Building site configuration files ... OK
> Creatingdatabase... Traceback (most recent call last):
>  File"C:\Python25\Lib\site-packages\ReviewBoard-0.9.dev_20090108-
> py2.5.egg\EGG-INFO\scripts\rb-site", line 1186, in 
>     main(sys.argv[1:])
>  File"C:\Python25\Lib\site-packages\ReviewBoard-0.9.dev_20090108-
> py2.5.egg\EGG-INFO\scripts\rb-site", line 1181, in main
>     command.run()
>  File"C:\Python25\Lib\site-packages\ReviewBoard-0.9.dev_20090108-
> py2.5.egg\EGG-INFO\scripts\rb-site", line 822, in run
>     self.show_install_status()
>  File"C:\Python25\Lib\site-packages\ReviewBoard-0.9.dev_20090108-
> py2.5.egg\EGG-INFO\scripts\rb-site", line 1043, in show_install_status
>     site.sync_database)
>  File"C:\Python25\Lib\site-packages\ReviewBoard-0.9.dev_20090108-
> py2.5.egg\EGG-INFO\scripts\rb-site", line 469, in step
>     func()
>  File"C:\Python25\Lib\site-packages\ReviewBoard-0.9.dev_20090108-
> py2.5.egg\EGG-INFO\scripts\rb-site", line 181, in sync_database
>     self.run_manage_command("syncdb", ["--noinput"])
>  File"C:\Python25\Lib\site-packages\ReviewBoard-0.9.dev_20090108-
> py2.5.egg\EGG-INFO\scripts\rb-site", line 219, in run_manage_command
>     execute_manager(reviewboard.settings, [__file__, cmd] + params)
>  File"c:\python25\lib\site-packages\django-1.0.2_final-py2.5.egg
> \django\core\management\__init__.py", line 340, in execute_manager
>     utility.execute()
>  File"c:\python25\lib\site-packages\django-1.0.2_final-py2.5.egg
> \django\core\management\__init__.py", line 295, in execute
>     self.fetch_command(subcommand).run_from_argv(self.argv)
>  File"c:\python25\lib\site-packages\django-1.0.2_final-py2.5.egg
> \django\core\management\base.py", line 192, in run_from_argv
>     self.execute(*args, **options.__dict__)
>  File"c:\python25\lib\site-packages\django-1.0.2_final-py2.5.egg
> \django\core\management\base.py", line 219, in execute
>     output = self.handle(*args, **options)
>  File"c:\python25\lib\site-packages\django-1.0.2_final-py2.5.egg
> \django\core\management\base.py", line 348, in handle
>     return self.handle_noargs(**options)
>  File"c:\python25\lib\site-packages\django-1.0.2_final-py2.5.egg
> \django\core\management\commands\syncdb.py", line 51, in handle_noargs
>     cursor = connection.cursor()
>  File"c:\python25\lib\site-packages\django-1.0.2_final-py2.5.egg
> \django\db\backends\__init__.py", line 56, in cursor
>     cursor = self._cursor(settings)
>  File"c:\python25\lib\site-packages\django-1.0.2_final-py2.5.egg
> \django\db\backends\sqlite3\base.py", line 145, in _cursor
>     self.connection 
> =Database.connect(**kwargs)sqlite3.OperationalError:unabletoopendatabasefile
>
> 11:53:16 C:\Python25\Lib\site-packages\ReviewBoard-0.9.dev_20090108-
> py2.5.egg\EGG-INFO\scripts >
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~--~~~~--~~--~--~---



Re: Newbie question: setup problems

2009-01-08 Thread Jeff Andros
I had this problem too... make sure your web user has permissions not only
on the sqlite file, but on the directory it resides in as well.
Jeff
O|||O


2009/1/8 Chris Clark 

>
> Phil wrote:
> > .Sqlite3 is complaining that it cannot open the database file.
> > (sqlite3.OperationalError: unable to open database file)
> >
> > Has anyone else had this problem? My understanding is that Python 2.5
> > includes sqlite & thus I wouldn't have to install it again -- is this
> > incorrect? Have I missed installing something?
> >
>
> If you are getting the sqlite error, this proves (py) sqlite is
> installed :-)
>
> You _probably_ have a file/path permission problem as sqlite databases
> are files. I suspect when you ran manage you did it as a different user
> than the one who runs the web server.
>
> Chris
>
>
> >
>

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



Re: Newbie question: setup problems

2009-01-08 Thread Chris Clark

Phil wrote:
> .Sqlite3 is complaining that it cannot open the database file.
> (sqlite3.OperationalError: unable to open database file)
>
> Has anyone else had this problem? My understanding is that Python 2.5
> includes sqlite & thus I wouldn't have to install it again -- is this
> incorrect? Have I missed installing something?
>   

If you are getting the sqlite error, this proves (py) sqlite is 
installed :-)

You _probably_ have a file/path permission problem as sqlite databases 
are files. I suspect when you ran manage you did it as a different user 
than the one who runs the web server.

Chris


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