Hi Mark,

I found the other solution. First, I install "Python Plugin 
<https://wiki.jenkins-ci.org/display/JENKINS/Python+Plugin>" in Jenkins 
platform. And I can write the script in Jenkins configuration -> Execute 
Python script.

<https://lh3.googleusercontent.com/-qrQPJLBTrng/V1kUp7d8WZI/AAAAAAAAAow/Fv8fvr_Dt1sGZ_TSq6TH5igFeEibiknxQCLcB/s1600/Screen%2BShot%2B2016-06-09%2Bat%2B3.02.24%2BPM.png>

Now I can use Python package "Image", compare two images.




On Wednesday, May 25, 2016 at 6:47:08 AM UTC+8, Mark Waite wrote:
>
> Your results seem different from mine.  The commands I executed:
>
> $ docker run -i --rm -p 8080:8080 -p 50000:50000 jenkins /bin/bash
> python
> print 1 + 1
> print 2 + 2
> from PIL import Image
> ^D
> 2
> 4
> Traceback (most recent call last):
>   File "<stdin>", line 5, in <module>
> ImportError: No module named PIL
>
> As far as I can tell, that means the PIL module is not available in the 
> docker image named "jenkins".
>
> Mark Waite
>
> On Tue, May 24, 2016 at 4:25 PM Cherry Tsai <[email protected] 
> <javascript:>> wrote:
>
>> Must be use Dockerfile install? I used manually install in Jenkins 
>> container.
>>
>> I tried to run command in Jenkins container:
>>
>> $ python
>> $ from PIL import Image
>>
>> It's working for me.
>>
>> Then I checked Python2.7 path, it has PIL and Image folder in 
>> /usr/local/lib/python2.7.
>>
>> But only Jenkins couldn't use Python PIL and Image. I'm very confused.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/0c7bce9d-71c4-446c-9b53-e621fe2d34ef%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/0c7bce9d-71c4-446c-9b53-e621fe2d34ef%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9fa217c2-95c9-40c3-b86b-eb8c8be8caf2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to