Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1928 by Jan.Koprowski: contrib\internal\prepare-dev.py doesn't work under Windows
http://code.google.com/p/reviewboard/issues/detail?id=1928

What version are you running?
ReviewBoard 1.5


What steps will reproduce the problem?
1. Run contrib\internal\prepare-dev.py

What is the expected output? What do you see instead?
Error message:
C:\Users\johny\reviewboard>contrib\internal\prepare-dev.py
Creating a settings_local.py in the current directory.
This can be modified with custom settings.
running egg_info
writing requirements to ReviewBoard.egg-info\requires.txt
writing ReviewBoard.egg-info\PKG-INFO
writing top-level names to ReviewBoard.egg-info\top_level.txt
writing dependency_links to ReviewBoard.egg-info\dependency_links.txt
writing entry points to ReviewBoard.egg-info\entry_points.txt
reading manifest file 'ReviewBoard.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'Makefile' under directory 'docs'
warning: no files found matching '*' under directory 'locale'
no previously-included directories found matching 'docs\*\_build'
no previously-included directories found matching 'reviewboard\htdocs\media\uploaded\images'
writing manifest file 'ReviewBoard.egg-info\SOURCES.txt'
Rebuilding media paths...
Using Djblets media from C:\Python27\lib\site-packages\djblets-0.6.6-py2.7.egg\djblets\media
Synchronizing database...
Traceback (most recent call last):
File "C:\Users\jkoprows\reviewboard\contrib\internal\prepare-dev.py", line 95, in <module>
    main()
File "C:\Users\jkoprows\reviewboard\contrib\internal\prepare-dev.py", line 87, in main
    site.sync_database(allow_input=True)
File "C:\Users\jkoprows\reviewboard\reviewboard\cmdline\rbsite.py", line 332, in sync_database
    self.run_manage_command("syncdb", params)
File "C:\Users\jkoprows\reviewboard\reviewboard\cmdline\rbsite.py", line 390, in run_manage_command
    execute_manager(reviewboard.settings, [__file__, cmd] + params)
File "C:\Python27\lib\site-packages\django-1.2.4-py2.7.egg\django\core\management\__init__.py", line 438, in execute_manager
    utility.execute()
File "C:\Python27\lib\site-packages\django-1.2.4-py2.7.egg\django\core\management\__init__.py", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Python27\lib\site-packages\django-1.2.4-py2.7.egg\django\core\management\base.py", line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
File "C:\Python27\lib\site-packages\django-1.2.4-py2.7.egg\django\core\management\base.py", line 220, in execute
    output = self.handle(*args, **options)
File "C:\Python27\lib\site-packages\django-1.2.4-py2.7.egg\django\core\management\base.py", line 351, in handle
    return self.handle_noargs(**options)
File "C:\Python27\lib\site-packages\django-1.2.4-py2.7.egg\django\core\management\commands\syncdb.py", line 52, in handle_noargs
    cursor = connection.cursor()
File "C:\Python27\lib\site-packages\django-1.2.4-py2.7.egg\django\db\backends\__init__.py", line 75, in cursor
    cursor = self._cursor()
File "C:\Python27\lib\site-packages\django-1.2.4-py2.7.egg\django\db\backends\sqlite3\base.py", line 174, in _cursor
    self.connection = Database.connect(**kwargs)
sqlite3.OperationalError: unable to open database file

Please provide any additional information below.
This is problem with settings_local.py.

Changing:  DATABASE_NAME = "C:\Users\johny\reviewboard\reviewboard.db"
To      :  DATABASE_NAME = "C:/Users/johny/reviewboard/reviewboard.db"

and running script one more time helps.

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

Reply via email to