You are not logged in.

#1 2012-06-17 02:15:56

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

[Solved]Run reflector on Arch w/python from Arch w/o python

As the subject probably didn't make clear, I have two installations of Arch on one machine: one without python installed (henceforth Arch1), one with python (Arch2).  I'd like to use the python environment on Arch2 when booted to Arch1, without chrooting.  Is this possible (and preferably simple)?

Specifically, I'd like to be able to use reflector, which is installed on Arch2, from Arch1.

Thanks.

Last edited by alphaniner (2012-06-17 03:59:42)


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#2 2012-06-17 02:19:24

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,334

Re: [Solved]Run reflector on Arch w/python from Arch w/o python

Python is an interpreted language.  Probably not.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2012-06-17 02:22:41

progandy
Member
Registered: 2012-05-17
Posts: 5,279

Re: [Solved]Run reflector on Arch w/python from Arch w/o python

Try to set the environment variables PYTHONHOME, PYTHONPATH, and PYTHONUSERBASE before running a python script. And create symlinks for the file in the shebang line.

Last edited by progandy (2012-06-17 02:23:57)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#4 2012-06-17 03:58:57

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [Solved]Run reflector on Arch w/python from Arch w/o python

I decided to use a trial-and-error method and worked it out pretty quick.

I symlinked python3, then tried running reflector.  Got a missing library error.  Symlinked the library, ran reflector again, success.

Almost seems too easy...


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

Board footer

Powered by FluxBB