On 2018/01/11 17:18, francis.dos.san...@ciudad.com.ar wrote: > Remi, > > I do hope you can help. It's more of a 'running in a chrooted environment' > problem. > > /usr/sbin/chroot -g www -u www /var/www /usr/local/bin/python2.7 > > Python 2.7.14 (default, Dec 22 2017, 13:48:08) > [GCC 4.2.1 Compatible OpenBSD Clang 5.0.0 (tags/RELEASE_500/final)] on > openbsd6 > Type "help", "copyright", "credits" or "license" for more information. > >>> import binascii > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > ImportError: Cannot load specified object > > Imports like locale and os succeed while binascii and dbhash do not. Since I > could > not find a binascii.py, I assumed it was missing. For the record, I did run > /usr/sbin/chroot /var/www /sbin/ldconfig and > /usr/local/lib/python2.7/lib-dynload > was among the directories. Maybe the command got truncated?
You may get some clues from trying it with LD_DEBUG set in the environment.