Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - FelixJongleur42

Pages: [1]
General Development / Small improvement to
« on: December 29, 2016, 02:51:09 AM »
(sorry, I have not found any information on how the process of source code contribution actually is - so I hope this is the right way)

Hi there,
   I just started compiling ML myself, and found an improvement I had to make to to the following script.
Can someone review this change and commit it?

Code: [Select]
linux-eq96:~/magic-lantern # hg diff doc/
diff -r 4f72a0eabb16 doc/
--- a/doc/  Sun Dec 18 15:08:37 2016 +0200
+++ b/doc/  Thu Dec 29 02:39:05 2016 +0100
@@ -180,7 +180,7 @@

 # from
 from pylab import *
-import Image
+from PIL import Image

 def read_ch(f):

this is according to:
(simply adding "from PIL")

The original error I got was:
Code: [Select]
remapping cam/page-001.png...
Traceback (most recent call last):
  File "", line 280, in <module>
  File "", line 273, in convert_page
  File "", line 252, in save_img
  File "/usr/lib64/python2.7/site-packages/PIL/", line 1687, in save
    format = EXTENSION[ext]
KeyError: '.bmp'
../../ recipe for target 'docs' failed
make[1]: *** [docs] Error 1
make[1]: Leaving directory '/root/magic-lantern/platform/all'
Makefile:97: recipe for target 'docs' failed
make: *** [docs] Error 2

Pages: [1]