Hi Susan -

Try running:

python manage.py packages -o setup_db

That should create your database if it's missing.

Cheers,

Cyrus


On Fri, Apr 7, 2017 at 3:41 PM, Susan Penacho <[email protected]> wrote:

> Hi,
> I am working on installing Arches v4 on Windows 10 using the same
> instructions under the Arches installation v4 for Windows 7 with Scott. We
> have run into two problems:
> 1. When running the script Adam provided, no ENV folder was appearing
> within the ArchesProjects directory. We worked around this by creating a
> virtual environment using the virtualenv ENV command and then ran the
> script again and that seemed to work with no obvious errors. However,
> 2. When trying to run the Django server I get the following error:
> django.db.utils.OperationalError: FATAL:  database "arches" does not exist
> Here's the full text:
>
> (ENV) C:\ArchesProjects\arches>python manage.py runserver
>
> Performing system checks...
>
>
>
> System check identified no issues (0 silenced).
>
> Unhandled exception in thread started by <function wrapper at
> 0x0000000003F3E6D8>
>
> Traceback (most recent call last):
>
>   File "C:\ArchesProjects\ENV\lib\site-packages\django\utils\autoreload.py",
> line 226, in wrapper
>
>     fn(*args, **kwargs)
>
>   File "C:\ArchesProjects\ENV\lib\site-packages\django\core\
> management\commands\runserver.py", line 117, in inner_run
>
>     self.check_migrations()
>
>   File "C:\ArchesProjects\ENV\lib\site-packages\django\core\
> management\commands\runserver.py", line 163, in check_migrations
>
>     executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
>
>   File 
> "C:\ArchesProjects\ENV\lib\site-packages\django\db\migrations\executor.py",
> line 20, in __init__
>
>     self.loader = MigrationLoader(self.connection)
>
>   File 
> "C:\ArchesProjects\ENV\lib\site-packages\django\db\migrations\loader.py",
> line 49, in __init__
>
>     self.build_graph()
>
>   File 
> "C:\ArchesProjects\ENV\lib\site-packages\django\db\migrations\loader.py",
> line 176, in build_graph
>
>     self.applied_migrations = recorder.applied_migrations()
>
>   File 
> "C:\ArchesProjects\ENV\lib\site-packages\django\db\migrations\recorder.py",
> line 65, in applied_migrations
>
>     self.ensure_schema()
>
>   File 
> "C:\ArchesProjects\ENV\lib\site-packages\django\db\migrations\recorder.py",
> line 52, in ensure_schema
>
>     if self.Migration._meta.db_table in self.connection.introspection.
> table_names(self.connection.cursor()):
>
>   File 
> "C:\ArchesProjects\ENV\lib\site-packages\django\db\backends\base\base.py",
> line 231, in cursor
>
>     cursor = self.make_debug_cursor(self._cursor())
>
>   File 
> "C:\ArchesProjects\ENV\lib\site-packages\django\db\backends\base\base.py",
> line 204, in _cursor
>
>     self.ensure_connection()
>
>   File 
> "C:\ArchesProjects\ENV\lib\site-packages\django\db\backends\base\base.py",
> line 199, in ensure_connection
>
>     self.connect()
>
>   File "C:\ArchesProjects\ENV\lib\site-packages\django\db\utils.py", line
> 95, in __exit__
>
>     six.reraise(dj_exc_type, dj_exc_value, traceback)
>
>   File 
> "C:\ArchesProjects\ENV\lib\site-packages\django\db\backends\base\base.py",
> line 199, in ensure_connection
>
>     self.connect()
>
>   File 
> "C:\ArchesProjects\ENV\lib\site-packages\django\db\backends\base\base.py",
> line 171, in connect
>
>     self.connection = self.get_new_connection(conn_params)
>
>   File 
> "C:\ArchesProjects\ENV\lib\site-packages\django\db\backends\postgresql\base.py",
> line 175, in get_new_connection
>
>     connection = Database.connect(**conn_params)
>
>   File "C:\ArchesProjects\ENV\lib\site-packages\psycopg2\__init__.py",
> line 164, in connect
>
>     conn = _connect(dsn, connection_factory=connection_factory,
> async=async)
>
> django.db.utils.OperationalError: FATAL:  database "arches" does not exist
>
>
> Can you take a look and see if there is an issue with the script or have
> you run into a similar problem on Arches v4 with Windows 10.
>
>
> Thank you,
>
> Susan ASOR CHI
>
> --
> -- To post, send email to [email protected]. To unsubscribe,
> send email to [email protected]. For more
> information, visit https://groups.google.com/d/forum/archesproject?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Arches Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- To post, send email to [email protected]. To unsubscribe, send 
email to [email protected]. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to