proot and pyton-exec do not work

182 views
Skip to first unread message

Joakim Tjernlund

unread,
Jul 19, 2014, 5:44:44 AM7/19/14
to proo...@googlegroups.com
proot pmerge gives me:
# > proot pmerge
/usr/lib64/python-exec/python-exec2: no supported Python implementation
variant found!

proot version 3.3.2
python-exec can be fond at
https://bitbucket.org/mgorny/python-exec/src/6c4ce2b6070a?at=master
pmerge shebang is
#!/usr/lib/python-exec/python-exec2-c

Cédric VINCENT

unread,
Jul 21, 2014, 4:52:54 AM7/21/14
to proo...@googlegroups.com
Hello Joakim,

Thanks for the bug report!

I installed python-exec2 using emerge, however I wasn't able to make
it work correctly (both under PRoot and chroot).  To be sure I'm
investigating the same problem as you, please could you specify more
information on your side:

- What's your host system?

- How did you install python-exec2?

- Do you have a test case where it works without PRoot? (Sorry for
  this obvious question)

Thanks in advance,
Cédric.

Cédric VINCENT

unread,
Jul 21, 2014, 8:18:46 AM7/21/14
to proo...@googlegroups.com
On Mon, Jul 21, 2014 at 10:52 AM, Cédric VINCENT <cedric....@gmail.com> wrote:
> I installed python-exec2 using emerge, however I wasn't able to make
> it work correctly (both under PRoot and chroot).

As of my understanding of python-exec2 sources, it not expected to be
used in the shebang.  Instead, it requires two things:

1. the script should be linked to /usr/lib/python-exec/python-exec2,
   for example with equery (from Gentoo):

   $ proot [...] file /usr/bin/equery
   /usr/bin/equery: symbolic link to `../lib/python-exec/python-exec2'

2. versions of this script must be installed in
   /usr/lib/python-exec/python<version>/.  Example:

    $ proot [...] sh -c 'ls -l  /usr/lib/python-exec/python*/equery'
    -rwxr-xr-x 1 cedric users 1307 Jul 21 13:24 /usr/lib/python-exec/python2.7/equery
    -rwxr-xr-x 1 cedric users 1307 Jul 21 13:24 /usr/lib/python-exec/python3.3/equery

Finally, it seems to work as expected under PRoot (and chroot).

Regards,
Cédric.

Reply all
Reply to author
Forward
0 new messages