Hi George,
It seems to me that Arches didn't install properly in the first place.
I would try a pip uninstall and then a pip install of Arches to see if this
fixes the issues you are seeing.
Cheers,
Alexei

On Jun 11, 2017 1:40 PM, "George Leventis" <[email protected]> wrote:

> *Hello Adam again!*
>
> *I run in the end the "pip install django-guardian"the guardian was
> installed successfully:*
>
> *C:\Projects\my_project>pip install django-guardian*
> *Collecting django-guardian*
> *  Using cached django_guardian-1.4.8-py2.py3-none-any.whl*
> *Collecting six (from django-guardian)*
> *  Using cached six-1.10.0-py2.py3-none-any.whl*
> *Installing collected packages: six, django-guardian*
> *Successfully installed django-guardian-1.4.8 six-1.10.0 *
>
> *So i thought to give a try the command for elasticsearch "python
> manage.py es install -d C:\Projects" inside my virtual env. but i got a
> message regarding psycopg2 that cannot be found as you may see below:*
>
> *(ENV) C:\Projects\my_project>python manage.py es install -d C:\Projects*
> *Traceback (most recent call last):*
> *  File "manage.py", line 29, in <module>*
> *    execute_from_command_line(sys.argv)*
> *  File
> "C:\Projects\ENV\lib\site-packages\django\core\management\__init__.py",
> line 363, in execute_from_command_line*
> *    utility.execute()*
> *  File
> "C:\Projects\ENV\lib\site-packages\django\core\management\__init__.py",
> line 337, in execute*
> *    django.setup()*
> *  File "C:\Projects\ENV\lib\site-packages\django\__init__.py", line 27,
> in setup*
> *    apps.populate(settings.INSTALLED_APPS)*
> *  File "C:\Projects\ENV\lib\site-packages\django\apps\registry.py", line
> 108, in populate*
> *    app_config.import_models()*
> *  File "C:\Projects\ENV\lib\site-packages\django\apps\config.py", line
> 202, in import_models*
> *    self.models_module = import_module(models_module_name)*
> *  File "c:\python27\Lib\importlib\__init__.py", line 37, in import_module*
> *    __import__(name)*
> *  File "C:\Projects\ENV\lib\site-packages\django\contrib\auth\models.py",
> line 4, in <module>*
> *    from django.contrib.auth.base_user import AbstractBaseUser,
> BaseUserManager*
> *  File
> "C:\Projects\ENV\lib\site-packages\django\contrib\auth\base_user.py", line
> 52, in <module>*
> *    class AbstractBaseUser(models.Model):*
> *  File "C:\Projects\ENV\lib\site-packages\django\db\models\base.py", line
> 124, in __new__*
> *    new_class.add_to_class('_meta', Options(meta, app_label))*
> *  File "C:\Projects\ENV\lib\site-packages\django\db\models\base.py", line
> 330, in add_to_class*
> *    value.contribute_to_class(cls, name)*
> *  File "C:\Projects\ENV\lib\site-packages\django\db\models\options.py",
> line 214, in contribute_to_class*
> *    self.db_table = truncate_name(self.db_table,
> connection.ops.max_name_length())*
> *  File "C:\Projects\ENV\lib\site-packages\django\db\__init__.py", line
> 33, in __getattr__*
> *    return getattr(connections[DEFAULT_DB_ALIAS], item)*
> *  File "C:\Projects\ENV\lib\site-packages\django\db\utils.py", line 211,
> in __getitem__*
> *    backend = load_backend(db['ENGINE'])*
> *  File "C:\Projects\ENV\lib\site-packages\django\db\utils.py", line 115,
> in load_backend*
> *    return import_module('%s.base' % backend_name)*
> *  File "c:\python27\Lib\importlib\__init__.py", line 37, in import_module*
> *    __import__(name)*
> *  File
> "C:\Projects\ENV\lib\site-packages\django\contrib\gis\db\backends\postgis\base.py",
> line 2, in <module>*
> *    from django.db.backends.postgresql.base import \*
> *  File
> "C:\Projects\ENV\lib\site-packages\django\db\backends\postgresql\base.py",
> line 25, in <module>*
> *    raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e)*
> *django.core.exceptions.ImproperlyConfigured: Error loading psycopg2
> module: No module named psycopg2*
>
> *Then i tried to install the missing module both as an .exe from here
> (http://www.stickpeople.com/projects/python/win-psycopg/
> <http://www.stickpeople.com/projects/python/win-psycopg/>) but also through
> a command for python27 (win 64bits) from here
> (https://github.com/nwcell/psycopg2-windows
> <https://github.com/nwcell/psycopg2-windows>) but still i got the same
> error as above.*
>
> *So i do not know what should i do next for the elasticsearch to get
> installed so to continue with setting the db etc. Maybe should i try
> installing it outside Arches as is described here
> (https://github.com/archesproject/arches/wiki/Installing-Elasticsearch
> <https://github.com/archesproject/arches/wiki/Installing-Elasticsearch>) or
> should i do another work around?*
>
> *Thank you very much in advance for your guidance!*
> *George.*
>
> Τη Κυριακή, 11 Ιουνίου 2017 - 1:24:21 μ.μ. UTC+3, ο χρήστης George
> Leventis έγραψε:
>>
>> I have corrected the previous error...seems django was not installed
>> after all so i installed it at the virtual environment folder...run the
>> command to create New Arches Project and indeed the folder was created
>> outside the ENV folder (as indicated in the documentation), i've also added
>> the github commit to arches file regarding the sub process ,got a message
>> about bower.json (as Viktor had) but i ignored it since it was not
>> necessary as you have stated to him and so i continued on the ElasticSearch
>> installation but i receive the following message:
>>
>> (ENV) C:\Projects\my_project>python manage.py es install -d C:\Projects
>>
>> Traceback (most recent call last):
>>   File "manage.py", line 29, in <module>
>>     execute_from_command_line(sys.argv)
>>   File 
>> "C:\Projects\ENV\lib\site-packages\django\core\management\__init__.py",
>> line 363, in execute_from_command_line
>>     utility.execute()
>>   File 
>> "C:\Projects\ENV\lib\site-packages\django\core\management\__init__.py",
>> line 337, in execute
>>     django.setup()
>>   File "C:\Projects\ENV\lib\site-packages\django\__init__.py", line 27,
>> in setup
>>     apps.populate(settings.INSTALLED_APPS)
>>   File "C:\Projects\ENV\lib\site-packages\django\apps\registry.py", line
>> 85, in populate
>>     app_config = AppConfig.create(entry)
>>   File "C:\Projects\ENV\lib\site-packages\django\apps\config.py", line
>> 94, in create
>>     module = import_module(entry)
>>   File "c:\python27\Lib\importlib\__init__.py", line 37, in import_module
>>     __import__(name)
>> ImportError: No module named guardian
>>
>>
>> Maybe should i run pip install django-guardian within the my_project
>> folder to overcome this or is there any other workaround?
>> Thank you Adam!
>> George.
>>
>> Τη Κυριακή, 11 Ιουνίου 2017 - 12:01:32 μ.μ. UTC+3, ο χρήστης George
>> Leventis έγραψε:
>>>
>>> Thank you Adam for correcting this!
>>>
>>> I am trying to run the *python C:\Projects\ENV\Scripts\arches-project
>>> create my_project\my_project *inside my virtual environment but i get
>>> the below message:
>>>
>>> *(ENV) C:\Projects>python C:\Projects\ENV\Scripts\arches-project create
>>> my_project*
>>> *Traceback (most recent call last):*
>>> *  File "C:\Projects\ENV\Scripts\arches-project", line 11, in <module>*
>>> *    import django*
>>> *ImportError: No module named django*
>>>
>>> By this step Django should not be already installed? So what should i do
>>> now?
>>>
>>> I am also checking this previous topic where you've answered to Viktor (
>>> https://groups.google.com/forum/#!topic/archesproject/EGxoNJJMu0o) and
>>> i am wondering whether (after passing django message) should i add the
>>> github commit regarding the subprocess and run "bower install"  (which i
>>> assume is the same with the note indicated at step5 of documentation -
>>> below) or should i skip to the database step as you suggested to Viktor?
>>>
>>> Thank you!
>>> George.
>>>
>>> *Windows*:
>>>
>>> python C:\Projects\ENV\Scripts\arches-project create my_project
>>>
>>> Note
>>>
>>> On Windows, with the current Arches beta release, v4.0b3, the above
>>> command will end in an error on the last step of the command. The
>>> workaround for this is to enter my_project\my_project\ (the directory
>>> that contains bower.json) and run this command: bower install.
>>>
>>>
>>>
>>>
>>>
>>> Τη Παρασκευή, 9 Ιουνίου 2017 - 7:28:13 μ.μ. UTC+3, ο χρήστης Adam Cox
>>> έγραψε:
>>>>
>>>> Ah! You have found an error in the documentation, I will correct that
>>>> asap. The elasticsearch installation should happen after step 5, not after
>>>> step 4. Thank you for your patience on that. You do not need elasticsearch
>>>> running to create the project, only to setup the database after you have
>>>> created it.
>>>>
>>>> So, create the project, *then* install elasticsearch, then do step 6.
>>>>
>>>> Again, thanks for your patience. There are a lot of pieces to the
>>>> installation process, so keeping it all straight can be tricky :)
>>>>
>>>> Adam
>>>>
>>>> On Fri, Jun 9, 2017 at 11:22 AM, George Leventis <[email protected]>
>>>> wrote:
>>>>
>>>>> Adam thank you very much for replying back!
>>>>>
>>>>> So all that i need to do is proceed on the step 5 and skip the "Arches
>>>>> is now installed! At this point you should install ElasticSearch
>>>>> <https://github.com/archesproject/arches/wiki/Installing-Elasticsearch> 
>>>>> (unless
>>>>> you have done so already), and then continue with the next steps to guide
>>>>> you through the creation of an Arches “project”." paragraph?
>>>>>
>>>>> I think that ElasticSearch is essential for the Arches but cannot be
>>>>> installed (due to the previous python message).
>>>>>
>>>>> Thank you very much!
>>>>> George
>>>>>
>>>>>
>>>>> Τη Παρασκευή, 9 Ιουνίου 2017 - 7:14:21 μ.μ. UTC+3, ο χρήστης Adam Cox
>>>>> έγραψε:
>>>>>>
>>>>>> Hi George, it sounds to me like you are at step 4 of these
>>>>>> instructions, and just need to proceed to step 5
>>>>>> https://arches4.readthedocs.io/en/latest/installation/#ins
>>>>>> talling-arches.
>>>>>>
>>>>>> When you use pip to install Arches, you need to continue by creating
>>>>>> a "project". This will be your Arches app that sits outside of the 
>>>>>> virtual
>>>>>> environment and it will hold the manage.py file that you need to use to 
>>>>>> run
>>>>>> these commands.
>>>>>>
>>>>>> Adam
>>>>>>
>>>>>> On Wed, Jun 7, 2017 at 2:45 AM, George Leventis <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>>> Hello Adam again!
>>>>>>>
>>>>>>> Python is installed on a different directory than that of Arches
>>>>>>> (incl. its virtual environment), as supposedly python is installed on
>>>>>>> default path C:Python27 (this version the tutorial recommends). Arches 
>>>>>>> is
>>>>>>> installed under C:\Users\user\Projects\ENV (my virtual env name) and 
>>>>>>> there
>>>>>>> the folders named "include" "lib" "scripts" etc can be found.
>>>>>>>
>>>>>>> I think so too ...that manage.py is on different path than Arches'
>>>>>>> however I cannot find it anywhere inside so I cannot proceed with the
>>>>>>> ElasticSearch (except I install it manually from zip and follow the 
>>>>>>> steps
>>>>>>> indicated with the command additions but still don't know where its the
>>>>>>> best path to install it). The only file I can found is "manage.py-tpl" 
>>>>>>> and
>>>>>>> located under C:\Users\user\Projects\ENV\Lib
>>>>>>> \site-packages\arches\install\arches-templates so I am not sure its
>>>>>>> the same file with the manage.py.
>>>>>>>
>>>>>>> Thank you for clarifying the instructions but still I run at the
>>>>>>> same issue (= python: cant open file 'manage.py': [errno2] No such file 
>>>>>>> or
>>>>>>> directory) under the Arches path.
>>>>>>>
>>>>>>> How do you suggest me to continue?
>>>>>>>
>>>>>>> Thank you very much again!
>>>>>>> George
>>>>>>>
>>>>>>>
>>>>>>> Τη Τρίτη, 6 Ιουνίου 2017 - 8:08:15 μ.μ. UTC+3, ο χρήστης Adam Cox
>>>>>>> έγραψε:
>>>>>>>
>>>>>>>> Hi George, can you confirm that you are running that command from
>>>>>>>> within the directory that contains the file named manage.py? I have a
>>>>>>>> feeling you may be running it from within a different directory.
>>>>>>>>
>>>>>>>> I hadn't been explicit about that detail in the documentation you
>>>>>>>> linked to, so I've added clarification there. Hope that helps.
>>>>>>>>
>>>>>>>> I don't believe it's a Python path issue because your error
>>>>>>>> indicates that python is being used, it just can't find the file. If 
>>>>>>>> your
>>>>>>>> system was having trouble finding python, you would see an error like 
>>>>>>>> this:
>>>>>>>> [image: Inline image 1]
>>>>>>>>
>>>>>>>> However, if you have a virtual environment up and running, that
>>>>>>>> means you have all your steps covered already.
>>>>>>>>
>>>>>>>> For a little more background, that command is constructed like so:
>>>>>>>> 1) python means "find an executable file called 'python' in any of
>>>>>>>> the locations currently listed in the system's PATH environment 
>>>>>>>> variable"
>>>>>>>> (when a virtual environment is activated, PATH is modified so the 
>>>>>>>> python
>>>>>>>> located inside of the virtual environment is used)
>>>>>>>> 2) run this file manage.py using that python executable
>>>>>>>> 3) everything that follows, es install in this case, are arguments
>>>>>>>> that are either part of Django or in this case part of Arches.
>>>>>>>>
>>>>>>>> Adam
>>>>>>>>
>>>>>>>> On Tue, Jun 6, 2017 at 5:46 AM, George Leventis <[email protected]>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Thank you very much for your instructions and feedback ! Yes it
>>>>>>>>> all makes sense now...
>>>>>>>>>
>>>>>>>>> Well i managed to continue with the installation of both
>>>>>>>>> dependencies as well as setting & activating the virtual env. However 
>>>>>>>>> i am
>>>>>>>>> now stuck at installing ElasticSearch(https://github.c
>>>>>>>>> om/archesproject/arches/wiki/Installing-Elasticsearch) by typing
>>>>>>>>> the command "python manage.py es install" at the virtual 
>>>>>>>>> env/directory i
>>>>>>>>> get back with the message "python: cant open file 'manage.py': 
>>>>>>>>> [errno2] No
>>>>>>>>> such file or directory.
>>>>>>>>>
>>>>>>>>> After googling i found out that the python installation is not
>>>>>>>>> located at the same path with the one of virtualenv (obviously as it 
>>>>>>>>> needed
>>>>>>>>> to be installed on my computer --> C:Python27. Now i am trying to 
>>>>>>>>> overcome
>>>>>>>>> this so to continue creating new Arches project.
>>>>>>>>>
>>>>>>>>> Could you please help me out?
>>>>>>>>>
>>>>>>>>> I really appreciate your guidance!
>>>>>>>>>
>>>>>>>>> Τη Παρασκευή, 2 Ιουνίου 2017 - 9:42:45 μ.μ. UTC+3, ο χρήστης Adam
>>>>>>>>> Cox έγραψε:
>>>>>>>>>>
>>>>>>>>>> Hi George, just to be clear: bower will be installed after you run
>>>>>>>>>> npm install -g bower
>>>>>>>>>> That's the only command you need to use to install bower itself.
>>>>>>>>>>
>>>>>>>>>> If you are creating a development version of Arches by pulling
>>>>>>>>>> the github repo, you will *use *bower by running
>>>>>>>>>> bower install
>>>>>>>>>> from within the arches directory after you have pulled it from
>>>>>>>>>> github.
>>>>>>>>>>
>>>>>>>>>> If you are using pip to install Arches and making an Arches
>>>>>>>>>> project (as documented on readthedocs
>>>>>>>>>> <https://arches4.readthedocs.io/en/latest/installation/#installing-arches>),
>>>>>>>>>> you won't have to run bower install at all; that is handled by
>>>>>>>>>> the project creation command.
>>>>>>>>>>
>>>>>>>>>> Hope that all makes sense!
>>>>>>>>>>
>>>>>>>>>> Adam
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Fri, Jun 2, 2017 at 11:14 AM, George Leventis <
>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>
>>>>>>>>>>> Well i follow the instructions on Arches 4 documentation where
>>>>>>>>>>> it is stated that is needed to install first the dependancies
>>>>>>>>>>> https://github.com/archesproject/arches/wiki/In
>>>>>>>>>>> stalling-Dependencies-on-Windows so i started installing from
>>>>>>>>>>> up to bottom before continuing to arches...and so i am stucked at 
>>>>>>>>>>> bower.
>>>>>>>>>>> The bower.json file you see on the pic is located undeer
>>>>>>>>>>> c:\users\george\appdata \ ....
>>>>>>>>>>>
>>>>>>>>>>> Τη Παρασκευή, 2 Ιουνίου 2017 - 6:59:38 μ.μ. UTC+3, ο χρήστης
>>>>>>>>>>> Adam Cox έγραψε:
>>>>>>>>>>>>
>>>>>>>>>>>> Can you confirm that you are inside of the arches directory
>>>>>>>>>>>> that holds bower.json when you are trying to run the command?
>>>>>>>>>>>>
>>>>>>>>>>>> On Fri, Jun 2, 2017 at 10:58 AM, George Leventis <
>>>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hello Adam!
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thank you for your reply!
>>>>>>>>>>>>>
>>>>>>>>>>>>> As a matter of fact I tried several times and always I am
>>>>>>>>>>>>> getting the same deprecation message however when typing -bower 
>>>>>>>>>>>>> install- I
>>>>>>>>>>>>> get the following:
>>>>>>>>>>>>>
>>>>>>>>>>>>> C:\Users\user>bower install
>>>>>>>>>>>>> bower                           ENOENT No bower.json present
>>>>>>>>>>>>>
>>>>>>>>>>>>> But as you may see from the image seems that maybe is
>>>>>>>>>>>>> installed on my machine (assuming I've checked the option "show 
>>>>>>>>>>>>> hidden
>>>>>>>>>>>>> folders")...so i am confused what should i do next.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> <https://lh3.googleusercontent.com/-i8_mb2xsMfs/WTGK1Zmw5EI/AAAAAAAANnE/0TaBlgPEqV0Xi_lSE5FNj2Y0QqTTMC0UQCLcB/s1600/Capture.PNG>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> -- To post, send email to [email protected]. To
>>>>>>>>>>>>> unsubscribe, send email to [email protected].
>>>>>>>>>>>>> For more information, visit https://groups.google.com/d/fo
>>>>>>>>>>>>> rum/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/fo
>>>>>>>>>>> rum/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/fo
>>>>>>>>> rum/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/fo
>>>>>>> rum/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.
>>>>>
>>>>
>>>> --
> -- 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