[Arches] Issues installing v4 on osx

2017-04-20 Thread Darcy Christ
I'm having trouble installing v4 on osx. I am using the installer, but I am 
having an issue with how my system seems to be set up. Can anyone help me?

Darcy


Here is where it errors:


   gcc -fno-strict-aliasing -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall 
-Wstrict-prototypes -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 
(dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090602 -DHAVE_LO64=1 
-I/Applications/MAMP/Library/include/python2.7 -I. 
-I/usr/local/Cellar/postgresql/9.6.2/include 
-I/usr/local/Cellar/postgresql/9.6.2/include/server -c 
psycopg/microprotocols_proto.c -o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/microprotocols_proto.o
In file included from psycopg/microprotocols_proto.c:27:
In file included from ./psycopg/psycopg.h:33:
./psycopg/config.h:71:13: warning: unused function 'Dprintf' 
[-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
^
1 warning generated.
gcc -fno-strict-aliasing -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall 
-Wstrict-prototypes -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 
(dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090602 -DHAVE_LO64=1 
-I/Applications/MAMP/Library/include/python2.7 -I. 
-I/usr/local/Cellar/postgresql/9.6.2/include 
-I/usr/local/Cellar/postgresql/9.6.2/include/server -c psycopg/typecast.c 
-o build/temp.macosx-10.9-x86_64-2.7/psycopg/typecast.o
gcc -bundle -undefined dynamic_lookup -arch x86_64 
build/temp.macosx-10.9-x86_64-2.7/psycopg/psycopgmodule.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/green.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/pqpath.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/utils.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/bytes_format.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/connection_int.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/connection_type.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/cursor_int.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/cursor_type.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/diagnostics_type.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/error_type.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/lobject_int.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/lobject_type.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/notify_type.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/xid_type.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_asis.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_binary.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_datetime.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_list.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_pboolean.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_pdecimal.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_pint.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_pfloat.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_qstring.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/microprotocols.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/microprotocols_proto.o 
build/temp.macosx-10.9-x86_64-2.7/psycopg/typecast.o -L/usr/local/lib -lpq 
-lssl -lcrypto -o build/lib.macosx-10.9-x86_64-2.7/psycopg2/_psycopg.so
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see 
invocation)
error: command 'gcc' failed with exit status 1


Command "/Users/darcy/arches/virtualenv/ENV/bin/python -u -c "import 
setuptools, 
tokenize;__file__='/Users/darcy/arches/virtualenv/ENV/lib/python2.7/site-packages/arches/tmp/psycopg2/setup.py';f=getattr(tokenize,
 
'open', open)(__file__);code=f.read().replace('\r\n', 
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record 
/tmp/pip-DOVy2U-record/install-record.txt 
--single-version-externally-managed --compile --install-headers 
/Users/darcy/arches/virtualenv/ENV/include/site/python2.7/psycopg2" failed 
with error code 1 in 
/Users/darcy/arches/virtualenv/ENV/lib/python2.7/site-packages/arches/tmp/psycopg2/

-- 
-- 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 Instalation description and errors

2017-04-20 Thread Vencislav Pirinski

Hello,

I am continuing the installation with setting up apache, but again errors 
arise.

I follow the guide from Github, Making Arches production ready.

I install apache and wsgi:

sudo apt-get install apache2 
sudo apt-get install libapache2-mod-wsgi

No errors while installing.

Next i edit the file "/etc/apache2/sites-enabled/000-default.conf" and add this:

WSGIDaemonProcess arches 
python-path=/home/kepler/Projects/arches*/arches*:/home/kepler/Projects/ENV/lib/python2.7/site-packages
 
WSGIScriptAlias / /home/kepler/Projects/arches/*arches/*wsgi.py 
process-group=arches 
 
Options Indexes FollowSymLinks 
AllowOverride None 
Require all granted 


I found that in the guide the file "/home/ubuntu/Projects/my_hip_app/wsgi.py" 
is actually not there, the correct place must be 
"/home/ubuntu/Projects/my_hip_app/*my_hip_app/*wsgi.py".
That is why I added "~Projects/arches*/arches"*, not just "~/Projects/arches". 
*Is this correct ?*

Next i run:

sudo chown www-data /home/kepler/Projects/arches/arches/tileserver/cache -R

But there is not such file there. Folder "tileserver" contains these files:

https://lh3.googleusercontent.com/-qZA6OBq4k8Y/WPiYVPmwaaI/Iog/4hC0vay_H3sp_fHhP20jajiT_1kRxS58wCLcB/s1600/Screenshot%2Bfrom%2B2017-04-20%2B14-14-13.png


I could not find such "cache" file. 
*Please advice.*
Next i restart apache and my ip returns this:

Internal Server Error 

The server encountered an internal error or misconfiguration and was unable 
to complete your request.

Please contact the server administrator at webmaster@localhost to inform 
them of the time this error occurred, and the actions you performed just 
before this error.

More information about this error may be available in the server error log.
--
Apache/2.4.18 (Ubuntu) Server at 195.96.250.4 Port 80

Please advise me what to do.  

Best regards

-- 
-- 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] TypeError: sequence item 0: expected string, datetime.datetime

2017-04-20 Thread Alexei Peters
Wonderful!

On Apr 19, 2017 11:44 PM, "Darcy Christ"  wrote:

> Perfect, Alexei. That worked like a charm!
>
>
>
> Darcy W. Christ
> Digital Generalist
> @1000camels
>
>
>
> On Apr 20, 2017, at 4:36 PM, Alexei Peters  wrote:
>
> Hi Darcy,
> Changing line 191 in "/home/hkarches/lib/python2.7/
> site-packages/arches_hip/models/resource.py"
>
> from this:
> entity_data.append(node.value)
>
> to this:
> entity_data.append(str(node.value))
>
> should fix the issue you're seeing.
>
> This is only temporary as nothing has been pushed to the HIP repo yet.
> Cheers,
> Alexei
>
> PS. v4 should be much more stable!
>
>
> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
> <(971)%20227-3173>
>
> On Wed, Apr 19, 2017 at 9:29 PM, Darcy Christ 
> wrote:
>
>> We keep getting intermittent errors updating information resources. The
>> messages do not make sense, since we are not even editing dates
>>
>> http://dpaste.com/3G0CBAE
>>
>>
>> Any help is appreciated.
>>
>>
>>
>> We haven't moved to v4 yet, but we're hoping the system is more stable,
>> as we've had tons of issues like this.
>>
>>
>>
>> Darcy
>>
>> --
>> -- 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.
>
>
>

-- 
-- 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] TypeError: sequence item 0: expected string, datetime.datetime

2017-04-20 Thread Darcy Christ
Perfect, Alexei. That worked like a charm!



Darcy W. Christ
Digital Generalist
@1000camels



> On Apr 20, 2017, at 4:36 PM, Alexei Peters  wrote:
> 
> Hi Darcy,
> Changing line 191 in 
> "/home/hkarches/lib/python2.7/site-packages/arches_hip/models/resource.py"
> 
> from this:
> entity_data.append(node.value)
> 
> to this:
> entity_data.append(str(node.value))
> 
> should fix the issue you're seeing.
> 
> This is only temporary as nothing has been pushed to the HIP repo yet.
> Cheers,
> Alexei
> 
> PS. v4 should be much more stable!
> 
> 
> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
> 
> On Wed, Apr 19, 2017 at 9:29 PM, Darcy Christ  > wrote:
> We keep getting intermittent errors updating information resources. The 
> messages do not make sense, since we are not even editing dates
> 
> http://dpaste.com/3G0CBAE 
> 
> 
> Any help is appreciated.
> 
> 
> 
> We haven't moved to v4 yet, but we're hoping the system is more stable, as 
> we've had tons of issues like this.
> 
> 
> 
> Darcy
> 
> -- 
> -- 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 
> .

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


smime.p7s
Description: S/MIME cryptographic signature


Re: [Arches] TypeError: sequence item 0: expected string, datetime.datetime

2017-04-20 Thread Alexei Peters
Hi Darcy,
Changing line 191 in
"/home/hkarches/lib/python2.7/site-packages/arches_hip/models/resource.py"

from this:
entity_data.append(node.value)

to this:
entity_data.append(str(node.value))

should fix the issue you're seeing.

This is only temporary as nothing has been pushed to the HIP repo yet.
Cheers,
Alexei

PS. v4 should be much more stable!


Director of Web Development - Farallon Geographics, Inc. - 971.227.3173

On Wed, Apr 19, 2017 at 9:29 PM, Darcy Christ  wrote:

> We keep getting intermittent errors updating information resources. The
> messages do not make sense, since we are not even editing dates
>
> http://dpaste.com/3G0CBAE
>
>
> Any help is appreciated.
>
>
>
> We haven't moved to v4 yet, but we're hoping the system is more stable, as
> we've had tons of issues like this.
>
>
>
> Darcy
>
> --
> -- 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.
>

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