Hi Rob,

Me neither! I believe it is connected to Win10 environment, yet I'm not 
quite sure. Still, following the documentation as it is on my machine was a 
troublesome path to a dead end. In my case only a manual installation of 
django saved the day.

In any case, MANY thanks for your advice! Now it's working :)

Have a great time,
Mark.

вторник, 10 ноября 2015 г., 23:37:29 UTC+2 пользователь Rob Gaston написал:
>
> Hi Mark,
>
> The django install isn't documented as the correct version of django is 
> automatically installed to your virtual environment when you use pip to 
> install arches or arches-hip.
>
> I'm not certain how you arrived at having the incorrect version installed, 
> but that should not happen when the installation steps are followed as 
> documented, and you should not have to manually install django.
>
> The team will be reviewing the documentation to ensure that the 
> installation steps are accurate and up to date.
>
> Thanks,
> - Rob
>
>
> On Tuesday, November 10, 2015 at 12:30:13 PM UTC-8, Mark Gondelman wrote:
>>
>> THANK YOU!!!
>>
>> That really helped. 
>>
>> But this is a *major *problem of documentation. I couldn't know that 
>> specifically this version of django is needed and that I have to install it 
>> before running "pip install arches" command. It would save me about 15 
>> hours of work.
>>
>> Because without this I started to struggle this all modules which "pip 
>> install arches" installs (psycopg2, rdflib and many others). Under django 
>> 1.8.6 it displays some errors but eventually writes "successfully installed 
>> arches". Than you discover that you will have to install all of these 
>> modules and eventually you arrive to the state where you have a server, but 
>> its database is not set correctly. 
>>
>> Another improvement to the documentation should be about setting up the 
>> psql. Before you can use "psql" from the command line (this applies both to 
>> Win and NIX!), you will have to create a role for the system user in psql 
>> server, following these steps:
>> 1) open PATH\TO\PostgreSQL\9.3.\data\pg_hba.conf 
>> and edit it so that user could log w\o passwords locally:
>> host    all             all             127.0.0.1/32            trust
>> host    all             all             ::1/128                 trust
>>
>> save. 
>> 2) than, in command line enter:
>> psql -U postgres 
>>
>> 3) in sql:
>> CREATE ROLE "%your_system_username%" SUPERUSER
>> CREATE DATABASE "%your_system_username%" 
>>
>> then exit and enjoy. 
>>
>> Maybe, these steps are transparent to Postgres users but people who never 
>> used this sql server will have to find this out by themselves. 
>>
>> Hope, my comment will help to future users of arches...
>>
>>
>> Thanks again,
>> Mark.
>>
>> воскресенье, 8 ноября 2015 г., 3:03:57 UTC+2 пользователь Mark Gondelman 
>> написал:
>>>
>>> Dear friends,
>>>
>>> after many exhausting hours of fighting with python, django and other 
>>> monsters, I finally managed to get arches-hip installed without errors. 
>>> Yet, I was unable to run the server. 
>>>
>>> Here are the details of my failure, I hope that someone could help me. 
>>> Sorry, if I have posted this in an incorrect place; if so please delete 
>>> this message. 
>>>
>>> First, problems start with "*python manage.py packages -o install*" 
>>> command. Everything goes well, untill the word 'VACUUM' is displayed. Then 
>>> is shows an error: 
>>>
>>>     self.create_users()
>>>   File "D:\webworks\for 
>>> arches\arches\ENV\lib\site-packages\arches\management\commands\packages.py",
>>>  
>>> line 262, in create_users
>>>     anonymous_user = User.objects.create_user('anonymous', '', '')
>>>   File "D:\webworks\for 
>>> arches\arches\ENV\lib\site-packages\django\contrib\auth\models.py", line 
>>> 187, in create_user    **extra_fields)
>>>   File "D:\webworks\for 
>>> arches\arches\ENV\lib\site-packages\django\contrib\auth\models.py", line 
>>> 182, in _create_user    user.save(using=self._db)
>>>   File "D:\webworks\for 
>>> arches\arches\ENV\lib\site-packages\django\db\models\base.py", line 734, in 
>>> save    force_update=force_update, update_fields=update_fields)
>>>   File "D:\webworks\for 
>>> arches\arches\ENV\lib\site-packages\django\db\models\base.py", line 762, in 
>>> save_base    updated = self._save_table(raw, cls, force_insert, 
>>> force_update, using, update_fields)
>>>   File "D:\webworks\for 
>>> arches\arches\ENV\lib\site-packages\django\db\models\base.py", line 846, in 
>>> _save_table    result = self._do_insert(cls._base_manager, using, fields, 
>>> update_pk, raw)
>>>   File "D:\webworks\for 
>>> arches\arches\ENV\lib\site-packages\django\db\models\base.py", line 885, in 
>>> _do_insert    using=using, raw=raw)
>>>   File "D:\webworks\for 
>>> arches\arches\ENV\lib\site-packages\django\db\models\manager.py", line 127, 
>>> in manager_method    return getattr(self.get_queryset(), name)(*args, 
>>> **kwargs)
>>>   File "D:\webworks\for 
>>> arches\arches\ENV\lib\site-packages\django\db\models\query.py", line 920, 
>>> in _insert    return query.get_compiler(using=using).execute_sql(return_id)
>>>   File "D:\webworks\for 
>>> arches\arches\ENV\lib\site-packages\django\db\models\sql\compiler.py", line 
>>> 974, in execute_sql    cursor.execute(sql, params)
>>>   File "D:\webworks\for 
>>> arches\arches\ENV\lib\site-packages\django\db\backends\utils.py", line 79, 
>>> in execute    return super(CursorDebugWrapper, self).execute(sql, params)
>>>   File "D:\webworks\for 
>>> arches\arches\ENV\lib\site-packages\django\db\backends\utils.py", line 64, 
>>> in execute    return self.cursor.execute(sql, params)
>>>   File "D:\webworks\for 
>>> arches\arches\ENV\lib\site-packages\django\db\utils.py", line 98, in 
>>> __exit__    six.reraise(dj_exc_type, dj_exc_value, traceback)
>>>   File "D:\webworks\for 
>>> arches\arches\ENV\lib\site-packages\django\db\backends\utils.py", line 64, 
>>> in execute    return self.cursor.execute(sql, params)
>>> django.db.utils.IntegrityError: null value in column "last_login" 
>>> violates not-null constraint
>>> DETAIL:  Failing row contains (2, anonymous, , , , 
>>> pbkdf2_sha256$20000$fhiCsiue4j4L$4iGKzLXegAhpAzTvHNcPLZdMLmh16a4...,f, t, 
>>> f, null, 2015-11-08 02:54:39.697-06).
>>>
>>>
>>> When I try to run the server (with the command "*python manage.py 
>>> runserver 8001*";elasticsearch already is running), I get a message: 
>>>
>>> You have unapplied migrations; your app may not work properly until they 
>>> are applied.
>>> Run '*python manage.py migrate*' to apply them.
>>> November 08, 2015 - 02:57:37
>>> Django version 1.8.6, using settings 'my_hip_app.settings'
>>> Starting development server at http://127.0.0.1:8001/
>>> Quit the server with CTRL-BREAK.
>>>
>>>
>>> And whenever I try to load "localhost:8001" I get a 500 error.
>>>
>>> When I try to run the suggested "*python manage.py migrate*" command I 
>>> run into another error: 
>>>
>>> Traceback (most recent call last):
>>>   File "manage.py", line 28, in <module>   
>>>  execute_from_command_line(sys.argv)
>>>   File "D:\webworks\for 
>>> arches\arches\ENV\lib\site-packages\django\core\management\__init__.py", 
>>> line 354, in execute_from_command_line    utility.execute()
>>>   File "D:\webworks\for 
>>> arches\arches\ENV\lib\site-packages\django\core\management\__init__.py", 
>>> line 346, in execute   
>>>  self.fetch_command(subcommand).run_from_argv(self.argv)
>>>   File "D:\webworks\for 
>>> arches\arches\ENV\lib\site-packages\django\core\management\base.py", line 
>>> 394, in run_from_argv    self.execute(*args, **cmd_options)
>>>   File "D:\webworks\for 
>>> arches\arches\ENV\lib\site-packages\django\core\management\base.py", line 
>>> 445, in execute    output = self.handle(*args, **options)
>>>   File "D:\webworks\for 
>>> arches\arches\ENV\lib\site-packages\django\core\management\commands\migrate.py",
>>>  
>>> line 179, in handle    created_models = self.sync_apps(connection, 
>>> executor.loader.unmigrated_apps)
>>>   File "D:\webworks\for 
>>> arches\arches\ENV\lib\site-packages\django\core\management\commands\migrate.py",
>>>  
>>> line 310, in sync_apps    editor.create_model(model)
>>>   File "D:\webworks\for 
>>> arches\arches\ENV\lib\site-packages\django\contrib\gis\db\backends\postgis\schema.py",
>>>  
>>> line 81,in create_model    super(PostGISSchemaEditor, 
>>> self).create_model(model)
>>>   File "D:\webworks\for 
>>> arches\arches\ENV\lib\site-packages\django\db\backends\base\schema.py", 
>>> line 286, in create_model    self.execute(sql, params or None)
>>>   File "D:\webworks\for 
>>> arches\arches\ENV\lib\site-packages\django\db\backends\base\schema.py", 
>>> line 111, in execute    cursor.execute(sql, params)
>>>   File "D:\webworks\for 
>>> arches\arches\ENV\lib\site-packages\django\db\backends\utils.py", line 79, 
>>> in execute    return super(CursorDebugWrapper, self).execute(sql, params)
>>>   File "D:\webworks\for 
>>> arches\arches\ENV\lib\site-packages\django\db\backends\utils.py", line 64, 
>>> in execute    return self.cursor.execute(sql, params)
>>>   File "D:\webworks\for 
>>> arches\arches\ENV\lib\site-packages\django\db\utils.py", line 98, in 
>>> __exit__    six.reraise(dj_exc_type, dj_exc_value, traceback)
>>>   File "D:\webworks\for 
>>> arches\arches\ENV\lib\site-packages\django\db\backends\utils.py", line 62, 
>>> in execute    return self.cursor.execute(sql) 
>>> django.db.utils.ProgrammingError: relation "geography_columns" already 
>>> exists
>>>
>>>
>>>  So... help's needed! 
>>>
>>> All the best,
>>> Mark. 
>>>
>>

-- 
-- 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