import site fails - Please Help

H

Helmut Jarausch

Hi, I'm completely puzzled and I hope someone
can shed some light on it.

After cloning a running system, booting the new machine from a rescue CD,
chroot to the new root partition, I get the following strange error
from python upon startup

python -v
import site failed
.....
st= os.stat(path)
stat() argument 1 must be encoded string without NULL bytes, not str

So, what's broken? How can I get out what 'path' contained at this
moment?

Many thanks for your help,
Helmut.
 
S

swapnil

Hi, I'm completely puzzled and I hope someone
can shed some light on it.

After cloning a running system, booting the new machine from a rescue CD,
chroot to the new root partition, I get the following strange error
from python upon startup

python -v> import site failed

....
st= os.stat(path)
stat() argument 1 must be encoded string without NULL bytes, not str

So, what's broken? How can I get out what 'path' contained at this
moment?

Many thanks for your help,
Helmut.

Perhaps its not able to locate the libraries. Try using
http://docs.python.org/using/cmdline.html#envvar-PYTHONPATH and
http://docs.python.org/using/cmdline.html#envvar-PYTHONHOME
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top