Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am having issues getting arcpy to run correctly on Linux Red Hat. I solved some earlier problems which appeared to be related to permissions on the init_server file. Now that si resolved, when I 'import arcpy' in Python, it just hangs, not even timing out after 20 minutes.

Does anyone have any experience of using arcpy on Linux and did you face any issues setting it up?

Thanks in advance for any help/suggestions.

EDIT

AN update. I have rebooted the server and edited the LD_LIBRARY_PATH in init_server.sh and also changed the call to set_pyton_anv.sh (as it didn' appear to be calling it ) and it failed with Cannot open X display "(not specified)" I then started an XWindows session on the box in Hummingbird and then, and only then, did import arcpy run correctly.

Not really sure what to say other than What? Why? How?

Does anybody know any reason why this should be?

share|improve this question
    
Can you phone Esri Technical Support? I see a few calls which explain similar problems. The common theme seems to be 64bit linux and root user and an extra library. Can you import if you're on root? If you contact support they should be able to help with this. –  KHibma May 6 '11 at 15:25
1  
@KHibma - I am UK based. In the end, we did get around it by building aheadless Xwin session. The root user is a bit of a red herring as you can do it without. There are two files 'init_server.sh and 'set_python_env' which need properly configuring too; we call the headless XWin session in there. Pain in the derriére mind... –  Hairy May 9 '11 at 7:23
add comment

1 Answer

up vote 2 down vote accepted

In the end, we did get around it by building aheadless Xwin session. The root user is a bit of a red herring as you can do it without. There are two files 'init_server.sh and 'set_python_env' which need properly configuring too; we call the headless XWin session in there.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.