[CRIU] p. haul pycriu problem

Pavel Emelyanov xemul at virtuozzo.com
Tue Apr 19 07:33:43 PDT 2016


On 04/19/2016 05:14 PM, Cyrill Gorcunov wrote:
> On Tue, Apr 19, 2016 at 05:00:51PM +0300, Pavel Emelyanov wrote:
>> On 04/19/2016 04:30 PM, Sharmin Sultana Sheuly wrote:
>>> Hi
>>> I was trying migrating docker container following website: https://github.com/xemul/p.haul/blob/master/test/docker/HOWTO
>>> However it returns: ImportError: No module named pycriu
>>> for installing criu I installed additional libraries and I followed the below steps:
>>> 1. git clone https://github.com/xemul/criu
>>> 2. cd criu
>>> 3. make install
>>> It did not returned any error. And I checked it with criu check command , which returned looks good. that implies it is installed correctly.
>>> I dont know where the problem lies. AT the time of migration it still returns
>>> ImportError: No module named pycriu
>>
>> Cyrill, I run make install, but the pycriu happens to be not in /usr/...,
>> but in $criu_sources/lib/usr/...
>>
>> Why?
> 
> Hmm, need to investigate.

OK. While Cyrill is investigating, Sharmin, you can add the
$criu_sources/lib/usr/local/lib/python2.7/site-packages/ to the PYTHONPATH
variable, then the pycriu module should be found.

Here's the doc how to wire in non-standard paths to modules
https://docs.python.org/2/tutorial/modules.html

-- Pavel



More information about the CRIU mailing list