[Arches] Re: ElasticSearch

2016-12-01 Thread Mike Wynne
Thanks Adam.

On Thursday, December 1, 2016 at 8:19:18 AM UTC-8, Adam Cox wrote:
>
> Hi Mike, unfortunately, it does sound like the Python version is the 
> issue. Others (and I) have had trouble trying to use 2.7.8, which you can 
> see in this thread 
> 
> .
>
> It may be worth trying to set up a remote server on AWS or Digital Ocean, 
> if you are just trying to make a test installation. If you are stuck with 
> Windows and Python 2.7.8 for your production installation, I think you'll 
> have to wait for the v4 release, because that version of Arches will likely 
> work with 2.7.x.
>
> Good luck,
> Adam
>
> On Wednesday, November 30, 2016 at 5:57:01 PM UTC-6, Mike Wynne wrote:
>>
>> I'm following these instructions 
>> to install 
>> Arches-HIP.  When I get to the ElasticSearch install I get the following 
>> error and my folder structure does not look like the documentation. 
>>  Anybody have any suggestions?  I'm using Windows and Python 2.7.8, I don't 
>> have a server available with 2.7.6, could this be the issue?
>>
>> Also, I added *GDAL_LIBRARY_PATH = "C:\OSGeo4W64\bin\gdal201.dll" *to 
>> the settings.py, there were 4 of these DLLs in the folder so I entered 
>> gdal201.dll which was the most recent.  Does it matter which of these I use?
>>
>> Many thanks!  Mike
>>
>> (ENV) E:\arches-web\CCSFResources>python manage.py packages -o 
>> setup_elasticsearch
>> Traceback (most recent call last):
>>   File "manage.py", line 28, in 
>> execute_from_command_line(sys.argv)
>>   File 
>> "E:\arches-web\ENV\lib\site-packages\django\core\management\__init__.py",
>>  line 399, in execute_from_command_line
>> utility.execute()
>>   File 
>> "E:\arches-web\ENV\lib\site-packages\django\core\management\__init__.py",
>>  line 392, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File 
>> "E:\arches-web\ENV\lib\site-packages\django\core\management\__init__.py",
>>  line 272, in fetch_command
>> klass = load_command_class(app_name, subcommand)
>>   File 
>> "E:\arches-web\ENV\lib\site-packages\django\core\management\__init__.py",
>>  line 75, in load_command_class
>> module = import_module('%s.management.commands.%s' % (app_name, name))
>>   File "E:\arches-web\ENV\lib\site-packages\django\utils\importlib.py", 
>> line 40,
>>  in import_module
>> __import__(name)
>>   File 
>> "E:\arches-web\ENV\lib\site-packages\arches\management\commands\packages.
>> py", line 28, in 
>> from arches.app.utils.data_management.resources.importer import 
>> ResourceLoad
>> er
>>   File 
>> "E:\arches-web\ENV\lib\site-packages\arches\app\utils\data_management\res
>> ources\importer.py", line 8, in 
>> from django.contrib.auth.models import User
>>   File 
>> "E:\arches-web\ENV\lib\site-packages\django\contrib\auth\models.py", line
>>  48, in 
>> class Permission(models.Model):
>>   File "E:\arches-web\ENV\lib\site-packages\django\db\models\base.py", 
>> line 96,
>> in __new__
>> new_class.add_to_class('_meta', Options(meta, **kwargs))
>>   File "E:\arches-web\ENV\lib\site-packages\django\db\models\base.py", 
>> line 264,
>>  in add_to_class
>> value.contribute_to_class(cls, name)
>>   File "E:\arches-web\ENV\lib\site-packages\django\db\models\options.py", 
>> line 1
>> 24, in contribute_to_class
>> self.db_table = truncate_name(self.db_table, 
>> connection.ops.max_name_length(
>> ))
>>   File "E:\arches-web\ENV\lib\site-packages\django\db\__init__.py", line 
>> 34, in
>> __getattr__
>> return getattr(connections[DEFAULT_DB_ALIAS], item)
>>   File "E:\arches-web\ENV\lib\site-packages\django\db\utils.py", line 
>> 198, in __
>> getitem__
>> backend = load_backend(db['ENGINE'])
>>   File "E:\arches-web\ENV\lib\site-packages\django\db\utils.py", line 
>> 113, in lo
>> ad_backend
>> return import_module('%s.base' % backend_name)
>>   File "E:\arches-web\ENV\lib\site-packages\django\utils\importlib.py", 
>> line 40,
>>  in import_module
>> __import__(name)
>>   File 
>> "E:\arches-web\ENV\lib\site-packages\django\contrib\gis\db\backends\postg
>> is\base.py", line 4, in 
>> from django.contrib.gis.db.backends.postgis.introspection import 
>> PostGISIntr
>> ospection
>>   File 
>> "E:\arches-web\ENV\lib\site-packages\django\contrib\gis\db\backends\postg
>> is\introspection.py", line 2, in 
>> from django.contrib.gis.gdal import OGRGeomType
>>   File 
>> "E:\arches-web\ENV\lib\site-packages\django\contrib\gis\gdal\__init__.py"
>> , line 41, in 
>> from django.contrib.gis.gdal.driver import Driver
>>   File 
>> "E:\arches-web\ENV\lib\site-packages\django\contrib\gis\gdal\driver.py",
>> line 5, in 
>> from django.contrib.gis.gdal.prototypes import ds as capi
>>   File 
>> "E:\arches-web\ENV\lib\site-packages\django\contrib\gis\gdal\prototypes\d
>> 

[Arches] Re: Installing Arches-HIP: Creating Database Error: ImportError: No module named resource

2016-12-01 Thread Adam Cox
Hi Pal, does it work if you run the pip command without sudo? I think that 
the inclusion of sudo will attempt to install arches in your global python. 
If you omit sudo and run pip with your virtualenv activated, arches should 
be installed in the virtual environment as intended.

Also, what environment are you using? It looks like you're using Windows, 
so I'm not sure how you're using sudo at all...

Adam

On Sunday, August 16, 2015 at 10:59:07 AM UTC-5, aay...@aucegypt.edu wrote:
>
> Dear All,
>
> I am trying to install Arches-HIP and I am getting an error at the last 
> step before running arches: *(ENV)$ python manage.py packages -o install*
>
> I tried it on Centos 7 and on ubuntu, using the install dependencies 
> script; yet both give me the same error.
>
> *Centos 7*
> VACUUM
> deleting index : concept_labels
> deleting index : term
> Traceback (most recent call last):
>   File "manage.py", line 28, in 
> execute_from_command_line(sys.argv)
>   File 
> "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 
> 399, in execute_from_command_line
> utility.execute()
>   File 
> "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 
> 392, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File "/usr/lib/python2.7/site-packages/django/core/management/base.py", 
> line 242, in run_from_argv
> self.execute(*args, **options.__dict__)
>   File "/usr/lib/python2.7/site-packages/django/core/management/base.py", 
> line 285, in execute
> output = self.handle(*args, **options)
>   File 
> "/usr/lib/python2.7/site-packages/arches/management/commands/packages.py", 
> line 67, in handle
> self.install(package_name)
>   File 
> "/usr/lib/python2.7/site-packages/arches/management/commands/packages.py", 
> line 114, in install
> install()
>   File "/usr/share/sandboxes/Projects/my_hip_app/my_hip_app/setup.py", 
> line 6, in install
> setup.install()
>   File "/usr/lib/python2.7/site-packages/arches_hip/setup.py", line 22, in 
> install
> Resource().prepare_term_index(create=True)
>   File "/usr/lib/python2.7/site-packages/arches/app/models/resource.py", 
> line 53, in __new__
> mod = __import__(modulename, globals(), locals(), [classname], -1)
> ImportError: No module named resource
>
>
> *Ubuntu *
> VACUUM
> deleting index : concept_labels
> deleting index : term
> Traceback (most recent call last):
>   File "manage.py", line 28, in 
> execute_from_command_line(sys.argv)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
> line 338, in execute_from_command_line
> utility.execute()
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
> line 330, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
> line 393, in run_from_argv
> self.execute(*args, **cmd_options)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
> line 444, in execute
> output = self.handle(*args, **options)
>   File 
> "/usr/local/lib/python2.7/dist-packages/arches/management/commands/packages.py",
>  
> line 67, in handle
> self.install(package_name)
>   File 
> "/usr/local/lib/python2.7/dist-packages/arches/management/commands/packages.py",
>  
> line 114, in install
> install()
>   File "/usr/share/sandboxes/Projects/my_hip_app/my_hip_app/setup.py", 
> line 6, in install
> setup.install()
>   File "/usr/local/lib/python2.7/dist-packages/arches_hip/setup.py", line 
> 22, in install
> Resource().prepare_term_index(create=True)
>   File 
> "/usr/local/lib/python2.7/dist-packages/arches/app/models/resource.py", 
> line 53, in __new__
> mod = __import__(modulename, globals(), locals(), [classname], -1)
> ImportError: No module named resource
> (ENV)arches@mediathread:/usr/share/sandboxes/Projects/my_hip_app$
>
>
> and I couldn't find the database arches_my_hip_app
>
> Can you please help me out with that? I will be working on the Centos 
> server.
>
>
> Thanks a lot,
>
> Asmaa
>

-- 
-- 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] Re: ElasticSearch

2016-12-01 Thread Adam Cox
Hi Mike, unfortunately, it does sound like the Python version is the issue. 
Others (and I) have had trouble trying to use 2.7.8, which you can see in this 
thread 

.

It may be worth trying to set up a remote server on AWS or Digital Ocean, 
if you are just trying to make a test installation. If you are stuck with 
Windows and Python 2.7.8 for your production installation, I think you'll 
have to wait for the v4 release, because that version of Arches will likely 
work with 2.7.x.

Good luck,
Adam

On Wednesday, November 30, 2016 at 5:57:01 PM UTC-6, Mike Wynne wrote:
>
> I'm following these instructions 
> to install 
> Arches-HIP.  When I get to the ElasticSearch install I get the following 
> error and my folder structure does not look like the documentation. 
>  Anybody have any suggestions?  I'm using Windows and Python 2.7.8, I don't 
> have a server available with 2.7.6, could this be the issue?
>
> Also, I added *GDAL_LIBRARY_PATH = "C:\OSGeo4W64\bin\gdal201.dll" *to the 
> settings.py, there were 4 of these DLLs in the folder so I entered 
> gdal201.dll which was the most recent.  Does it matter which of these I use?
>
> Many thanks!  Mike
>
> (ENV) E:\arches-web\CCSFResources>python manage.py packages -o 
> setup_elasticsearch
> Traceback (most recent call last):
>   File "manage.py", line 28, in 
> execute_from_command_line(sys.argv)
>   File 
> "E:\arches-web\ENV\lib\site-packages\django\core\management\__init__.py",
>  line 399, in execute_from_command_line
> utility.execute()
>   File 
> "E:\arches-web\ENV\lib\site-packages\django\core\management\__init__.py",
>  line 392, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File 
> "E:\arches-web\ENV\lib\site-packages\django\core\management\__init__.py",
>  line 272, in fetch_command
> klass = load_command_class(app_name, subcommand)
>   File 
> "E:\arches-web\ENV\lib\site-packages\django\core\management\__init__.py",
>  line 75, in load_command_class
> module = import_module('%s.management.commands.%s' % (app_name, name))
>   File "E:\arches-web\ENV\lib\site-packages\django\utils\importlib.py", 
> line 40,
>  in import_module
> __import__(name)
>   File 
> "E:\arches-web\ENV\lib\site-packages\arches\management\commands\packages.
> py", line 28, in 
> from arches.app.utils.data_management.resources.importer import 
> ResourceLoad
> er
>   File 
> "E:\arches-web\ENV\lib\site-packages\arches\app\utils\data_management\res
> ources\importer.py", line 8, in 
> from django.contrib.auth.models import User
>   File 
> "E:\arches-web\ENV\lib\site-packages\django\contrib\auth\models.py", line
>  48, in 
> class Permission(models.Model):
>   File "E:\arches-web\ENV\lib\site-packages\django\db\models\base.py", 
> line 96,
> in __new__
> new_class.add_to_class('_meta', Options(meta, **kwargs))
>   File "E:\arches-web\ENV\lib\site-packages\django\db\models\base.py", 
> line 264,
>  in add_to_class
> value.contribute_to_class(cls, name)
>   File "E:\arches-web\ENV\lib\site-packages\django\db\models\options.py", 
> line 1
> 24, in contribute_to_class
> self.db_table = truncate_name(self.db_table, 
> connection.ops.max_name_length(
> ))
>   File "E:\arches-web\ENV\lib\site-packages\django\db\__init__.py", line 
> 34, in
> __getattr__
> return getattr(connections[DEFAULT_DB_ALIAS], item)
>   File "E:\arches-web\ENV\lib\site-packages\django\db\utils.py", line 198, 
> in __
> getitem__
> backend = load_backend(db['ENGINE'])
>   File "E:\arches-web\ENV\lib\site-packages\django\db\utils.py", line 113, 
> in lo
> ad_backend
> return import_module('%s.base' % backend_name)
>   File "E:\arches-web\ENV\lib\site-packages\django\utils\importlib.py", 
> line 40,
>  in import_module
> __import__(name)
>   File 
> "E:\arches-web\ENV\lib\site-packages\django\contrib\gis\db\backends\postg
> is\base.py", line 4, in 
> from django.contrib.gis.db.backends.postgis.introspection import 
> PostGISIntr
> ospection
>   File 
> "E:\arches-web\ENV\lib\site-packages\django\contrib\gis\db\backends\postg
> is\introspection.py", line 2, in 
> from django.contrib.gis.gdal import OGRGeomType
>   File 
> "E:\arches-web\ENV\lib\site-packages\django\contrib\gis\gdal\__init__.py"
> , line 41, in 
> from django.contrib.gis.gdal.driver import Driver
>   File 
> "E:\arches-web\ENV\lib\site-packages\django\contrib\gis\gdal\driver.py",
> line 5, in 
> from django.contrib.gis.gdal.prototypes import ds as capi
>   File 
> "E:\arches-web\ENV\lib\site-packages\django\contrib\gis\gdal\prototypes\d
> s.py", line 8, in 
> from django.contrib.gis.gdal.libgdal import lgdal
>   File 
> "E:\arches-web\ENV\lib\site-packages\django\contrib\gis\gdal\libgdal.py",
>  line 47, in 
> lgdal = CDLL(lib_path)
>   File