How to execute ocp in linux shared hosting with default python 2.4 and secondary version of 2.7?

60 views
Skip to first unread message

gunawa...@gmail.com

unread,
Apr 14, 2015, 2:56:49 PM4/14/15
to optimus-c...@googlegroups.com
Hi,

I am using a linux shared hosting, without admin privilege. Both python ver 2.4 and 2.7 are installed, but the default version is 2.4.

./ocp fails to run, I presume because it is executed using ver 2.4. Is there a "easy" way to choose to execute it with ver 2.7?

I am a Linux noob :). Any support is appreciated.

Thanks,
Gunawan

Patrick Mylund Nielsen

unread,
Apr 14, 2015, 3:03:04 PM4/14/15
to optimus-c...@googlegroups.com
Hi Gunawan,

The latest version of OCP is written in Go and comes in the form of a static binary. Most likely, your shared hosting provider isn't allowing you to run your own binaries. I think the best solution in your case will be to run the legacy version of OCP, which *is* written in Python: https://patrickmn.com/projects/ocp/legacy/. It will work with Python 2.7, and you should be able to run it with e.g. 'python2.7 ocp.py <insert sitemap URL and other arguments here>'

The legacy version has the same basic functionality as the Go one.
Reply all
Reply to author
Forward
0 new messages