Re: [Arches] Arches Installation Unable to run Django Server

2017-04-25 Thread Susan Penacho
Hi Adam,
No, that was an issue. I couldn't create my_project. I feel like its me not 
understanding the directions (I only made it this far since Scott Branting, 
my supervisor for Arches walked me through it step by step). I entered "
python C:\ArchesProjects\ENV\Scripts\arches-project create my_project"
into my command prompt and got the following:

C:\>python C:\ArchesProjects\ENV\Scripts\arches-project create my_project

Traceback (most recent call last):

  File "C:\ArchesProjects\ENV\Scripts\arches-project", line 6, in 

exec(compile(open(__file__).read(), __file__, 'exec'))

  File "C:\ArchesProjects\arches\arches\install\arches-project", line 12, 
in 

from django.utils.crypto import get_random_string

  File "C:\Python27\lib\site-packages\django\utils\crypto.py", line 8, in 


import hmac

  File "C:\Python27\Lib\hmac.py", line 8, in 

from operator import _compare_digest as compare_digest

ImportError: cannot import name _compare_digest

On Tuesday, April 25, 2017 at 3:47:58 PM UTC-7, Adam Cox wrote:
>
> Hi Susan, ok, sounds like it's an issue with using the new project. Can 
> you confirm you had entered the new project and that's where you were 
> running manage.py from?
>
> On Tue, Apr 25, 2017 at 5:10 PM, Susan Penacho <spen...@gmail.com 
> > wrote:
>
>> Hi Alexei,
>> Thank you for getting back to me quickly. I am not totally sure what 
>> changed. I was finishing working through the arches install steps to try 
>> and fix the greyed out issue once I had logged on. Using the website steps, 
>> I tried to create an arches project since I didn't have the project 
>> directory. 
>>
>> Alex is right that I was using the repo. I have not tried running that 
>> again.
>>
>> Thanks for the help. I am just a humble archaeologist and all this is a 
>> little past my computer skills. 
>>  
>>
>> On Tuesday, April 25, 2017 at 2:40:07 PM UTC-7, Alexei Peters wrote:
>>>
>>> Hi Susan,
>>> What changed between last week and this?  Have you pip installed Arches, 
>>> or are you running directly from the repository?
>>> Obviously something changed.  It just a matter of pip pointing what.
>>> Cheers,
>>> Alexei
>>>
>>>
>>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>>>
>>> On Tue, Apr 25, 2017 at 12:09 PM, Susan Penacho <spen...@gmail.com> 
>>> wrote:
>>>
>>>> Hi,
>>>> Last week I had Arches up and running where I could log in and see the 
>>>> main arches interface through the localhost. However, this week, I can no 
>>>> longer run the Django server to launch arches. I am working on a local 
>>>> computer with Windows 10 which I am using to build our graphs before it 
>>>> goes live on a remote server. Any help would be much appreciated.
>>>>
>>>> After activating the virtual environment and starting elastic search, 
>>>> when I try to run the Django server I get the following error:
>>>>
>>>>  
>>>>
>>>> (ENV) C:\ArchesProjects\arches>python manage.py runserver
>>>>
>>>> Traceback (most recent call last):
>>>>
>>>>   File "manage.py", line 22, in 
>>>>
>>>> from django.core.management import execute_from_command_line
>>>>
>>>>   File 
>>>> "C:\Python27\lib\site-packages\django\core\management\__init__.py", line 
>>>> 13, in 
>>>>
>>>> from django.core.management.base import (
>>>>
>>>>   File "C:\Python27\lib\site-packages\django\core\management\base.py", 
>>>> line 17, in 
>>>>
>>>> from django.db.migrations.exceptions import MigrationSchemaMissing
>>>>
>>>>   File 
>>>> "C:\Python27\lib\site-packages\django\db\migrations\__init__.py", line 2, 
>>>> in 
>>>>
>>>> from .operations import *  # NOQA
>>>>
>>>>   File 
>>>> "C:\Python27\lib\site-packages\django\db\migrations\operations\__init__.py",
>>>>  
>>>> line 1, in 
>>>>
>>>> from .fields import AddField, AlterField, RemoveField, RenameField
>>>>
>>>>   File 
>>>> "C:\Python27\lib\site-packages\django\db\migrations\operations\fields.py", 
>>>> line 3, in 
>>>>
>>>> from django.db.models.fields import NOT_PROVIDED
>>>>
>>>> 

Re: [Arches] Arches Installation Unable to run Django Server

2017-04-25 Thread Susan Penacho
Hi Alexei,
Thank you for getting back to me quickly. I am not totally sure what 
changed. I was finishing working through the arches install steps to try 
and fix the greyed out issue once I had logged on. Using the website steps, 
I tried to create an arches project since I didn't have the project 
directory. 

Alex is right that I was using the repo. I have not tried running that 
again.

Thanks for the help. I am just a humble archaeologist and all this is a 
little past my computer skills. 
 

On Tuesday, April 25, 2017 at 2:40:07 PM UTC-7, Alexei Peters wrote:
>
> Hi Susan,
> What changed between last week and this?  Have you pip installed Arches, 
> or are you running directly from the repository?
> Obviously something changed.  It just a matter of pip pointing what.
> Cheers,
> Alexei
>
>
> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>
> On Tue, Apr 25, 2017 at 12:09 PM, Susan Penacho <spen...@gmail.com 
> > wrote:
>
>> Hi,
>> Last week I had Arches up and running where I could log in and see the 
>> main arches interface through the localhost. However, this week, I can no 
>> longer run the Django server to launch arches. I am working on a local 
>> computer with Windows 10 which I am using to build our graphs before it 
>> goes live on a remote server. Any help would be much appreciated.
>>
>> After activating the virtual environment and starting elastic search, 
>> when I try to run the Django server I get the following error:
>>
>>  
>>
>> (ENV) C:\ArchesProjects\arches>python manage.py runserver
>>
>> Traceback (most recent call last):
>>
>>   File "manage.py", line 22, in 
>>
>> from django.core.management import execute_from_command_line
>>
>>   File 
>> "C:\Python27\lib\site-packages\django\core\management\__init__.py", line 
>> 13, in 
>>
>> from django.core.management.base import (
>>
>>   File "C:\Python27\lib\site-packages\django\core\management\base.py", 
>> line 17, in 
>>
>> from django.db.migrations.exceptions import MigrationSchemaMissing
>>
>>   File "C:\Python27\lib\site-packages\django\db\migrations\__init__.py", 
>> line 2, in 
>>
>> from .operations import *  # NOQA
>>
>>   File 
>> "C:\Python27\lib\site-packages\django\db\migrations\operations\__init__.py", 
>> line 1, in 
>>
>> from .fields import AddField, AlterField, RemoveField, RenameField
>>
>>   File 
>> "C:\Python27\lib\site-packages\django\db\migrations\operations\fields.py", 
>> line 3, in 
>>
>> from django.db.models.fields import NOT_PROVIDED
>>
>>   File "C:\Python27\lib\site-packages\django\db\models\__init__.py", line 
>> 14, in 
>>
>> from django.db.models.fields.files import FileField, ImageField
>>
>>   File "C:\Python27\lib\site-packages\django\db\models\fields\files.py", 
>> line 10, in 
>>
>> from django.core.files.storage import default_storage
>>
>>   File "C:\Python27\lib\site-packages\django\core\files\storage.py", line 
>> 13, in 
>>
>> from django.utils.crypto import get_random_string
>>
>>   File "C:\Python27\lib\site-packages\django\utils\crypto.py", line 8, in 
>> 
>>
>> import hmac
>>
>>   File "C:\Python27\Lib\hmac.py", line 8, in 
>>
>> from operator import _compare_digest as compare_digest
>>
>> ImportError: cannot import name _compare_digest
>>
>> -- 
>> -- To post, send email to arches...@googlegroups.com . To 
>> unsubscribe, send email to archesprojec...@googlegroups.com . 
>> 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 archesprojec...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. 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 archesproject+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Arches] Arches Installation Unable to run Django Server

2017-04-25 Thread Susan Penacho
Hi,
Last week I had Arches up and running where I could log in and see the main 
arches interface through the localhost. However, this week, I can no longer 
run the Django server to launch arches. I am working on a local computer 
with Windows 10 which I am using to build our graphs before it goes live on 
a remote server. Any help would be much appreciated.

After activating the virtual environment and starting elastic search, when 
I try to run the Django server I get the following error:

 

(ENV) C:\ArchesProjects\arches>python manage.py runserver

Traceback (most recent call last):

  File "manage.py", line 22, in 

from django.core.management import execute_from_command_line

  File "C:\Python27\lib\site-packages\django\core\management\__init__.py", 
line 13, in 

from django.core.management.base import (

  File "C:\Python27\lib\site-packages\django\core\management\base.py", line 
17, in 

from django.db.migrations.exceptions import MigrationSchemaMissing

  File "C:\Python27\lib\site-packages\django\db\migrations\__init__.py", 
line 2, in 

from .operations import *  # NOQA

  File 
"C:\Python27\lib\site-packages\django\db\migrations\operations\__init__.py", 
line 1, in 

from .fields import AddField, AlterField, RemoveField, RenameField

  File 
"C:\Python27\lib\site-packages\django\db\migrations\operations\fields.py", 
line 3, in 

from django.db.models.fields import NOT_PROVIDED

  File "C:\Python27\lib\site-packages\django\db\models\__init__.py", line 
14, in 

from django.db.models.fields.files import FileField, ImageField

  File "C:\Python27\lib\site-packages\django\db\models\fields\files.py", 
line 10, in 

from django.core.files.storage import default_storage

  File "C:\Python27\lib\site-packages\django\core\files\storage.py", line 
13, in 

from django.utils.crypto import get_random_string

  File "C:\Python27\lib\site-packages\django\utils\crypto.py", line 8, in 


import hmac

  File "C:\Python27\Lib\hmac.py", line 8, in 

from operator import _compare_digest as compare_digest

ImportError: cannot import name _compare_digest

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. 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 archesproject+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Arches] Arches v4 Installation Windows 10

2017-04-24 Thread Susan Penacho
Here's the info on the ENV

Ran script from Adam and created ArchesProject folder without ENV./

So we went to ~/ArchesProjects/ pip install virtualenv==15.1.0  (It said it 
was already there)

Then created the virtual environment with ~/ArchesProjects/ virtualenv ENV

This added in the ENV directory

We then ran the script again and it made it all the way through

On Tuesday, April 11, 2017 at 8:59:11 AM UTC-7, Adam Cox wrote:
>
> Hi Susan, yes, as you found out (I hope I didn't promise otherwise 
> earlier), that installation script stops short of setting up the database. 
> The main reason for that is that the user must have elasticsearch running 
> in order to run that command, and I thought it would be easier to 
> distribute the script without that requirement. However, it would be nice 
> to add a y/n prompt at the end that would allow the user a chance to choose 
> whether to setup the db, and likewise provide a chance to start 
> elasticsearch if it is not running already.
>
> The other issue you had is more significant though, that ENV wasn't being 
> created. If you have any more info about that, I'd be interested in hearing 
> it.
>
> Thanks!
> Adam
>
> On Fri, Apr 7, 2017 at 7:31 PM, Susan Penacho <spen...@gmail.com 
> > wrote:
>
>> Dear Cyrus,
>> Thank you so much. That did the trick. 
>>
>> Thanks,
>> Susan
>>
>> On Friday, April 7, 2017 at 4:36:10 PM UTC-7, Cyrus Hiatt wrote:
>>>
>>> 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 <spen...@gmail.com> 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 >>> 0x03F3E6D8>
>>>>
>>>> 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\recor