Re: Unable to upload screenshots
Hy Chris, Good information, thanks for digging! That is strange. Glad to know Pillow worked (I'd love to see it replace PIL entirely), but I wish I knew why zlib couldn't be found. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Fri, Oct 19, 2012 at 1:16 PM, Chris Clark chris.cl...@actian.com wrote: Yet more info, please excuse the top post. We hit this again (reviewboard 1.6.11 silently does not create thumbnails now, rather than raising an error). I think I have a better handle on why thesimple test works and yet Django/Reviewboard fails. Image.open() doesn't do anything interesting. It isn't until you try and read the file that anything is done. The real test is: try: import Image except ImportError: from PIL import Image x = Image.open(/home/ingres/patchdoc_new.png) x.tostring()[0] The to string fails for me with: IOError: decoder zip not available Due to some weird inability to find zlib. There are some notes online about Ubuntu (and suggesting soft linking) but they didn't work for me. I ended up trying Pillow (they've done some cleanup for easy install). My new fix is now: sudo rm -rf /usr/local/lib/python2.7/dist-packages/PIL-1.1.7-py2.7-linux-x86_64.egg/ # or what ever version is being used sudo easy_install Pillow In the course of this research I ended up installing a few dev libs but using PIL with them did NOT help, I'm not sure if they helped with Pillow or not :-) sudo apt-get install libpng-dev sudo apt-get install libfreetype6-dev Using the base OS provided library is usually the better option though (as per my last update). On Monday, October 24, 2011 2:29:59 PM UTC-7, Chris Clark wrote: Thilo-Alexander Ginkel wrote: On Mon, Feb 14, 2011 at 23:01, Christian Hammond wrote: I don't believe they're stored temporarily anywhere. If so, it's internal to Django and I don't know it off-hand. The only thing I've ever seen permission-wise is when there's a directory within media/uploaded that doesn't have the proper write permissions for the server. Hm... Actually, after doing some more testing I think that permissions aren't an issue as GIF files can be uploaded properly. I also can't imaging why libpng should be loadable from the command line, but not from the Apache process... Arise zombie thread, live again! ;-) OK, so it turns out after years of happily running with RB we've hit this too. I KNOW this used to work (as my image testing when we first deployed was with PNG files). Our problem appears to be identical to this, regular RB install (i.e. easy_install based) which always seems to pull down PIL even though it is already installed (we're running Ubuntu server and I always ensure the debian PIL package is installed that has full image support). We could only attach new GIF screen shots to reviews. Using PIL in a Python terminal always worked (i.e. open the supposedly bad image via Image.open), but RB/Django would always fail with: -- Cut here -- Upload Screenshot One or more fields had errors Caption: Path: * Upload a valid image. The file you uploaded was either not an image or a corrupted image. -- Cut here -- On a hunch I thought I'd have a look at what PIL instances are on the file system (e.g. all the eggs that easy_install pulled down), after upgrading a few times over the years we had 2. reviews:~$ find / -name \*PIL\* 2/dev/null /usr/share/pyshared/PIL.pth /usr/share/pyshared/PIL /usr/share/pyshared/PIL/PIL-1.1.6.egg-info /usr/lib/python2.5/site-packages/PIL.pth /usr/lib/python2.5/site-packages/PIL-1.1.6-py2.5-linux-i686.egg /usr/lib/python2.5/site-packages/PIL-1.1.6-py2.5-linux-i686.egg/PIL /usr/lib/python2.5/site-packages/PIL /usr/lib/python2.5/site-packages/PIL/PIL-1.1.6.egg-info /usr/lib/python2.4/site-packages/PIL ... So I removed all the PIL eggs (remember I already have PIL installed): sudo rm -rf /usr/lib/python2.5/site-packages/PIL-1.1.6-py2.5-linux-i686.egg /usr/lib/python2.5/site-packages/PIL/PIL-1.1.6.egg-info Followed by a reviewboard restart: sudo /etc/init.d/apache2 restart And we can now attach PNGs and not just GIFs. So what out for easy_install and PIL. I know pip purports to support removal (and would probably be a better solution) so this is not a recommendation of resolution! I'm just sharing what I found on my system, don't go deleting files if you don't know the impact/dependencies! Chris -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy
Re: Unable to upload screenshots
Yet more info, please excuse the top post. We hit this again (reviewboard 1.6.11 silently does not create thumbnails now, rather than raising an error). I think I have a better handle on why thesimple test works and yet Django/Reviewboard fails. Image.open() doesn't do anything interesting. It isn't until you try and read the file that anything is done. The real test is: try: import Image except ImportError: from PIL import Image x = Image.open(/home/ingres/patchdoc_new.png) x.tostring()[0] The to string fails for me with: IOError: decoder zip not available Due to some weird inability to find zlib. There are some notes online about Ubuntu (and suggesting soft linking) but they didn't work for me. I ended up trying Pillow (they've done some cleanup for easy install). My new fix is now: sudo rm -rf /usr/local/lib/python2.7/dist-packages/PIL-1.1.7-py2.7-linux-x86_64.egg/ # or what ever version is being used sudo easy_install Pillow In the course of this research I ended up installing a few dev libs but using PIL with them did NOT help, I'm not sure if they helped with Pillow or not :-) sudo apt-get install libpng-dev sudo apt-get install libfreetype6-dev Using the base OS provided library is usually the better option though (as per my last update). On Monday, October 24, 2011 2:29:59 PM UTC-7, Chris Clark wrote: Thilo-Alexander Ginkel wrote: On Mon, Feb 14, 2011 at 23:01, Christian Hammond wrote: I don't believe they're stored temporarily anywhere. If so, it's internal to Django and I don't know it off-hand. The only thing I've ever seen permission-wise is when there's a directory within media/uploaded that doesn't have the proper write permissions for the server. Hm... Actually, after doing some more testing I think that permissions aren't an issue as GIF files can be uploaded properly. I also can't imaging why libpng should be loadable from the command line, but not from the Apache process... Arise zombie thread, live again! ;-) OK, so it turns out after years of happily running with RB we've hit this too. I KNOW this used to work (as my image testing when we first deployed was with PNG files). Our problem appears to be identical to this, regular RB install (i.e. easy_install based) which always seems to pull down PIL even though it is already installed (we're running Ubuntu server and I always ensure the debian PIL package is installed that has full image support). We could only attach new GIF screen shots to reviews. Using PIL in a Python terminal always worked (i.e. open the supposedly bad image via Image.open), but RB/Django would always fail with: -- Cut here -- Upload Screenshot One or more fields had errors Caption: Path: * Upload a valid image. The file you uploaded was either not an image or a corrupted image. -- Cut here -- On a hunch I thought I'd have a look at what PIL instances are on the file system (e.g. all the eggs that easy_install pulled down), after upgrading a few times over the years we had 2. reviews:~$ find / -name \*PIL\* 2/dev/null /usr/share/pyshared/PIL.pth /usr/share/pyshared/PIL /usr/share/pyshared/PIL/PIL-1.1.6.egg-info /usr/lib/python2.5/site-packages/PIL.pth /usr/lib/python2.5/site-packages/PIL-1.1.6-py2.5-linux-i686.egg /usr/lib/python2.5/site-packages/PIL-1.1.6-py2.5-linux-i686.egg/PIL /usr/lib/python2.5/site-packages/PIL /usr/lib/python2.5/site-packages/PIL/PIL-1.1.6.egg-info /usr/lib/python2.4/site-packages/PIL ... So I removed all the PIL eggs (remember I already have PIL installed): sudo rm -rf /usr/lib/python2.5/site-packages/PIL-1.1.6-py2.5-linux-i686.egg /usr/lib/python2.5/site-packages/PIL/PIL-1.1.6.egg-info Followed by a reviewboard restart: sudo /etc/init.d/apache2 restart And we can now attach PNGs and not just GIFs. So what out for easy_install and PIL. I know pip purports to support removal (and would probably be a better solution) so this is not a recommendation of resolution! I'm just sharing what I found on my system, don't go deleting files if you don't know the impact/dependencies! Chris -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
Re: Unable to upload screenshots
Wow. This actually worked for me. Thanks! On Monday, October 24, 2011 3:29:59 PM UTC-6, Chris Clark wrote: Thilo-Alexander Ginkel wrote: On Mon, Feb 14, 2011 at 23:01, Christian Hammond chip...@chipx86.com wrote: I don't believe they're stored temporarily anywhere. If so, it's internal to Django and I don't know it off-hand. The only thing I've ever seen permission-wise is when there's a directory within media/uploaded that doesn't have the proper write permissions for the server. Hm... Actually, after doing some more testing I think that permissions aren't an issue as GIF files can be uploaded properly. I also can't imaging why libpng should be loadable from the command line, but not from the Apache process... Arise zombie thread, live again! ;-) OK, so it turns out after years of happily running with RB we've hit this too. I KNOW this used to work (as my image testing when we first deployed was with PNG files). Our problem appears to be identical to this, regular RB install (i.e. easy_install based) which always seems to pull down PIL even though it is already installed (we're running Ubuntu server and I always ensure the debian PIL package is installed that has full image support). We could only attach new GIF screen shots to reviews. Using PIL in a Python terminal always worked (i.e. open the supposedly bad image via Image.open), but RB/Django would always fail with: -- Cut here -- Upload Screenshot One or more fields had errors Caption: Path: * Upload a valid image. The file you uploaded was either not an image or a corrupted image. -- Cut here -- On a hunch I thought I'd have a look at what PIL instances are on the file system (e.g. all the eggs that easy_install pulled down), after upgrading a few times over the years we had 2. reviews:~$ find / -name \*PIL\* 2/dev/null /usr/share/pyshared/PIL.pth /usr/share/pyshared/PIL /usr/share/pyshared/PIL/PIL-1.1.6.egg-info /usr/lib/python2.5/site-packages/PIL.pth /usr/lib/python2.5/site-packages/PIL-1.1.6-py2.5-linux-i686.egg /usr/lib/python2.5/site-packages/PIL-1.1.6-py2.5-linux-i686.egg/PIL /usr/lib/python2.5/site-packages/PIL /usr/lib/python2.5/site-packages/PIL/PIL-1.1.6.egg-info /usr/lib/python2.4/site-packages/PIL ... So I removed all the PIL eggs (remember I already have PIL installed): sudo rm -rf /usr/lib/python2.5/site-packages/PIL-1.1.6-py2.5-linux-i686.egg /usr/lib/python2.5/site-packages/PIL/PIL-1.1.6.egg-info Followed by a reviewboard restart: sudo /etc/init.d/apache2 restart And we can now attach PNGs and not just GIFs. So what out for easy_install and PIL. I know pip purports to support removal (and would probably be a better solution) so this is not a recommendation of resolution! I'm just sharing what I found on my system, don't go deleting files if you don't know the impact/dependencies! Chris -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
Re: Unable to upload screenshots
Thilo-Alexander Ginkel wrote: On Mon, Feb 14, 2011 at 23:01, Christian Hammond chip...@chipx86.com wrote: I don't believe they're stored temporarily anywhere. If so, it's internal to Django and I don't know it off-hand. The only thing I've ever seen permission-wise is when there's a directory within media/uploaded that doesn't have the proper write permissions for the server. Hm... Actually, after doing some more testing I think that permissions aren't an issue as GIF files can be uploaded properly. I also can't imaging why libpng should be loadable from the command line, but not from the Apache process... Arise zombie thread, live again! ;-) OK, so it turns out after years of happily running with RB we've hit this too. I KNOW this used to work (as my image testing when we first deployed was with PNG files). Our problem appears to be identical to this, regular RB install (i.e. easy_install based) which always seems to pull down PIL even though it is already installed (we're running Ubuntu server and I always ensure the debian PIL package is installed that has full image support). We could only attach new GIF screen shots to reviews. Using PIL in a Python terminal always worked (i.e. open the supposedly bad image via Image.open), but RB/Django would always fail with: -- Cut here -- Upload Screenshot One or more fields had errors Caption: Path: * Upload a valid image. The file you uploaded was either not an image or a corrupted image. -- Cut here -- On a hunch I thought I'd have a look at what PIL instances are on the file system (e.g. all the eggs that easy_install pulled down), after upgrading a few times over the years we had 2. reviews:~$ find / -name \*PIL\* 2/dev/null /usr/share/pyshared/PIL.pth /usr/share/pyshared/PIL /usr/share/pyshared/PIL/PIL-1.1.6.egg-info /usr/lib/python2.5/site-packages/PIL.pth /usr/lib/python2.5/site-packages/PIL-1.1.6-py2.5-linux-i686.egg /usr/lib/python2.5/site-packages/PIL-1.1.6-py2.5-linux-i686.egg/PIL /usr/lib/python2.5/site-packages/PIL /usr/lib/python2.5/site-packages/PIL/PIL-1.1.6.egg-info /usr/lib/python2.4/site-packages/PIL ... So I removed all the PIL eggs (remember I already have PIL installed): sudo rm -rf /usr/lib/python2.5/site-packages/PIL-1.1.6-py2.5-linux-i686.egg /usr/lib/python2.5/site-packages/PIL/PIL-1.1.6.egg-info Followed by a reviewboard restart: sudo /etc/init.d/apache2 restart And we can now attach PNGs and not just GIFs. So what out for easy_install and PIL. I know pip purports to support removal (and would probably be a better solution) so this is not a recommendation of resolution! I'm just sharing what I found on my system, don't go deleting files if you don't know the impact/dependencies! Chris -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
Re: Unable to upload screenshots
On Mon, Feb 14, 2011 at 23:01, Christian Hammond chip...@chipx86.com wrote: I don't believe they're stored temporarily anywhere. If so, it's internal to Django and I don't know it off-hand. The only thing I've ever seen permission-wise is when there's a directory within media/uploaded that doesn't have the proper write permissions for the server. Hm... Actually, after doing some more testing I think that permissions aren't an issue as GIF files can be uploaded properly. I also can't imaging why libpng should be loadable from the command line, but not from the Apache process... Regards, Thilo -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
Re: Unable to upload screenshots
I don't believe they're stored temporarily anywhere. If so, it's internal to Django and I don't know it off-hand. The only thing I've ever seen permission-wise is when there's a directory within media/uploaded that doesn't have the proper write permissions for the server. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Mon, Feb 14, 2011 at 10:11 AM, Thilo-Alexander Ginkel th...@ginkel.comwrote: On Tue, Jan 26, 2010 at 18:33, Thilo-Alexander Ginkel th...@ginkel.com wrote: On Thu, Jan 7, 2010 at 08:34, David Resnick abune...@gmail.com wrote: Well, loading the image in PIL from the command line works. I am facing the same issue. Command line image loading works, but uploading through the RB UI fails: $ python Python 2.6 (r26:66714, Feb 21 2009, 02:16:04) [GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2 Type help, copyright, credits or license for more information. from PIL import Image Image.open(screenshot.png) PIL.PngImagePlugin.PngImageFile instance at 0x7f1ee8babdd0 I'd like to revive this thread as I just received another user report about this issue. As this is still working from the command line, but not through the Web UI, I was wondering whether this may be a permission problem for the file upload. Which directory are the uploaded screenshots supposed to be written to temporarily? Thanks, Thilo -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
Re: Unable to upload screenshots
I somehow missed your reply until now. I'm currently at Review Board 1.0.8, with Djblets at 0.6.2. I tried it again and found that I am now able to upload GIF files -- though the first one I tried uploading failed. PNG and JPG still fail with the same The file you uploaded was either not an image or a corrupted image. message. Great feature, BTW! It is going to be really helpful to allow people to comment on images. Any additional things I can look at to try to figure out why it is still not completely working? Thanks, David On Fri, Feb 26, 2010 at 10:05 PM, Christian Hammond chip...@chipx86.comwrote: What version of Djblets is on there? I believe this may now be fixed as of 0.5.6. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Tue, Jan 26, 2010 at 12:55 PM, David Resnick abune...@gmail.comwrote: No, I'm still stuck with this. -David On Tue, Jan 26, 2010 at 6:33 PM, Thilo-Alexander Ginkel th...@ginkel.com wrote: On Thu, Jan 7, 2010 at 08:34, David Resnick abune...@gmail.com wrote: Well, loading the image in PIL from the command line works. I am facing the same issue. Command line image loading works, but uploading through the RB UI fails: $ python Python 2.6 (r26:66714, Feb 21 2009, 02:16:04) [GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2 Type help, copyright, credits or license for more information. from PIL import Image Image.open(screenshot.png) PIL.PngImagePlugin.PngImageFile instance at 0x7f1ee8babdd0 Have you been able to figure out what was wrong in your case? Unfortunately, I cannot add any further details as Review Board only intermittently writes to its log file (the last time on Jan 16th - nothing has been changed since then). Regards, Thilo -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.comreviewboard%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.comreviewboard%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.comreviewboard%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
Re: Unable to upload screenshots
What version of Djblets is on there? I believe this may now be fixed as of 0.5.6. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Tue, Jan 26, 2010 at 12:55 PM, David Resnick abune...@gmail.com wrote: No, I'm still stuck with this. -David On Tue, Jan 26, 2010 at 6:33 PM, Thilo-Alexander Ginkel th...@ginkel.comwrote: On Thu, Jan 7, 2010 at 08:34, David Resnick abune...@gmail.com wrote: Well, loading the image in PIL from the command line works. I am facing the same issue. Command line image loading works, but uploading through the RB UI fails: $ python Python 2.6 (r26:66714, Feb 21 2009, 02:16:04) [GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2 Type help, copyright, credits or license for more information. from PIL import Image Image.open(screenshot.png) PIL.PngImagePlugin.PngImageFile instance at 0x7f1ee8babdd0 Have you been able to figure out what was wrong in your case? Unfortunately, I cannot add any further details as Review Board only intermittently writes to its log file (the last time on Jan 16th - nothing has been changed since then). Regards, Thilo -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.comreviewboard%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.comreviewboard%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
Re: Unable to upload screenshots
No, I'm still stuck with this. -David On Tue, Jan 26, 2010 at 6:33 PM, Thilo-Alexander Ginkel th...@ginkel.comwrote: On Thu, Jan 7, 2010 at 08:34, David Resnick abune...@gmail.com wrote: Well, loading the image in PIL from the command line works. I am facing the same issue. Command line image loading works, but uploading through the RB UI fails: $ python Python 2.6 (r26:66714, Feb 21 2009, 02:16:04) [GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2 Type help, copyright, credits or license for more information. from PIL import Image Image.open(screenshot.png) PIL.PngImagePlugin.PngImageFile instance at 0x7f1ee8babdd0 Have you been able to figure out what was wrong in your case? Unfortunately, I cannot add any further details as Review Board only intermittently writes to its log file (the last time on Jan 16th - nothing has been changed since then). Regards, Thilo -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.comreviewboard%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
Re: Unable to upload screenshots
Hi, I downloaded and built PIL. The build summary shows this: PIL 1.1.6 BUILD SUMMARY version 1.1.6 platform linux2 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GCC 4.3.3] *** TKINTER support not available --- JPEG support ok --- ZLIB (PNG/ZIP) support ok *** FREETYPE2 support not available So it looks like PNG and JPEG are installed correctly. Is there any way to simulate the screenshot loading from the command line to see why PIL doesn't like the images its getting? Thanks, David On Sun, Dec 6, 2009 at 1:15 PM, Christian Hammond chip...@chipx86.comwrote: Hi David, Sorry that I missed this before. This time of year tends to be quite busy. This error is coming from Python Imaging Library. Even though the proper packages are installed on that system, it appears that PIL isn't properly loading support for the image files. It might be worth attempting to build PIL from scratch, and checking during the configure stage which modules it found support for. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Sun, Dec 6, 2009 at 3:03 AM, David Resnick abune...@gmail.com wrote: I'm still trying to get this working. I've enabled debugging on the server but do not have any indications of an error. This is what I can see in the apache log when I post a screenshot: rboard:80 152.62.71.102 - - [06/Dec/2009:16:19:24 +0200] POST /reviews/api/json/reviewrequests/499/screenshot/new/ HTTP/1.1 200 166 http://rboard/reviews/r/499/; Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 GTB6 (.NET CLR 3.5.30729) Anything I can try to diagnose the problem here? Thanks, David On Wed, Nov 18, 2009 at 9:17 AM, David Resnick abune...@gmail.comwrote: When I try to upload a screenshot (png or jpg), I get the message Upload a valid image. The file you uploaded was either not an image or a corrupted image. I've tried uploading from Firefox 3.5.5 and Chrome 2.0.172.43. * Running Reviewboard 1.0.5.1 on Ubuntu 9.04 using Apache2 and mod_python. * libpng12-dev, libjpeg62-dev and python-imaging 1.1.6-3ubuntu1 are installed. * The uploaded and uploaded/images directories are writable by the user that apache is running. Any ideas would be highly appreciated! -David -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.comreviewboard%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.comreviewboard%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
Re: Unable to upload screenshots
Well, loading the image in PIL from the command line works. I'll probably have to wait on upgrading the review board server -- I don't want to risk interrupting peoples work. Thanks for your help. -David On Wed, Jan 6, 2010 at 11:14 PM, Christian Hammond chip...@chipx86.comwrote: Sort of. It depends on where the problem actually is. try: from PIL import Image Image.open(your-filename) If that fails, it should throw an exception. Otherwise, it should print to the console the name of the class loading that image (which will indicate the file type). If that does in fact work, you can try grabbing the latest Djblets nightly and trying again. There's additional debug information when attempting to load the image. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Wed, Jan 6, 2010 at 9:13 AM, David Resnick abune...@gmail.com wrote: Hi, I downloaded and built PIL. The build summary shows this: PIL 1.1.6 BUILD SUMMARY version 1.1.6 platform linux2 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GCC 4.3.3] *** TKINTER support not available --- JPEG support ok --- ZLIB (PNG/ZIP) support ok *** FREETYPE2 support not available So it looks like PNG and JPEG are installed correctly. Is there any way to simulate the screenshot loading from the command line to see why PIL doesn't like the images its getting? Thanks, David On Sun, Dec 6, 2009 at 1:15 PM, Christian Hammond chip...@chipx86.comwrote: Hi David, Sorry that I missed this before. This time of year tends to be quite busy. This error is coming from Python Imaging Library. Even though the proper packages are installed on that system, it appears that PIL isn't properly loading support for the image files. It might be worth attempting to build PIL from scratch, and checking during the configure stage which modules it found support for. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Sun, Dec 6, 2009 at 3:03 AM, David Resnick abune...@gmail.comwrote: I'm still trying to get this working. I've enabled debugging on the server but do not have any indications of an error. This is what I can see in the apache log when I post a screenshot: rboard:80 152.62.71.102 - - [06/Dec/2009:16:19:24 +0200] POST /reviews/api/json/reviewrequests/499/screenshot/new/ HTTP/1.1 200 166 http://rboard/reviews/r/499/; Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 GTB6 (.NET CLR 3.5.30729) Anything I can try to diagnose the problem here? Thanks, David On Wed, Nov 18, 2009 at 9:17 AM, David Resnick abune...@gmail.comwrote: When I try to upload a screenshot (png or jpg), I get the message Upload a valid image. The file you uploaded was either not an image or a corrupted image. I've tried uploading from Firefox 3.5.5 and Chrome 2.0.172.43. * Running Reviewboard 1.0.5.1 on Ubuntu 9.04 using Apache2 and mod_python. * libpng12-dev, libjpeg62-dev and python-imaging 1.1.6-3ubuntu1 are installed. * The uploaded and uploaded/images directories are writable by the user that apache is running. Any ideas would be highly appreciated! -David -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.comreviewboard%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.comreviewboard%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.comreviewboard%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -- Want to help the Review Board project? Donate today at
Re: Unable to upload screenshots
Hi David, Sorry that I missed this before. This time of year tends to be quite busy. This error is coming from Python Imaging Library. Even though the proper packages are installed on that system, it appears that PIL isn't properly loading support for the image files. It might be worth attempting to build PIL from scratch, and checking during the configure stage which modules it found support for. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Sun, Dec 6, 2009 at 3:03 AM, David Resnick abune...@gmail.com wrote: I'm still trying to get this working. I've enabled debugging on the server but do not have any indications of an error. This is what I can see in the apache log when I post a screenshot: rboard:80 152.62.71.102 - - [06/Dec/2009:16:19:24 +0200] POST /reviews/api/json/reviewrequests/499/screenshot/new/ HTTP/1.1 200 166 http://rboard/reviews/r/499/; Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 GTB6 (.NET CLR 3.5.30729) Anything I can try to diagnose the problem here? Thanks, David On Wed, Nov 18, 2009 at 9:17 AM, David Resnick abune...@gmail.com wrote: When I try to upload a screenshot (png or jpg), I get the message Upload a valid image. The file you uploaded was either not an image or a corrupted image. I've tried uploading from Firefox 3.5.5 and Chrome 2.0.172.43. * Running Reviewboard 1.0.5.1 on Ubuntu 9.04 using Apache2 and mod_python. * libpng12-dev, libjpeg62-dev and python-imaging 1.1.6-3ubuntu1 are installed. * The uploaded and uploaded/images directories are writable by the user that apache is running. Any ideas would be highly appreciated! -David -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.comreviewboard%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
Re: Unable to upload screenshots
Thanks for the suggestion, Christian, I'll try that. -David On Sun, Dec 6, 2009 at 1:15 PM, Christian Hammond chip...@chipx86.comwrote: Hi David, Sorry that I missed this before. This time of year tends to be quite busy. This error is coming from Python Imaging Library. Even though the proper packages are installed on that system, it appears that PIL isn't properly loading support for the image files. It might be worth attempting to build PIL from scratch, and checking during the configure stage which modules it found support for. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Sun, Dec 6, 2009 at 3:03 AM, David Resnick abune...@gmail.com wrote: I'm still trying to get this working. I've enabled debugging on the server but do not have any indications of an error. This is what I can see in the apache log when I post a screenshot: rboard:80 152.62.71.102 - - [06/Dec/2009:16:19:24 +0200] POST /reviews/api/json/reviewrequests/499/screenshot/new/ HTTP/1.1 200 166 http://rboard/reviews/r/499/; Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 GTB6 (.NET CLR 3.5.30729) Anything I can try to diagnose the problem here? Thanks, David On Wed, Nov 18, 2009 at 9:17 AM, David Resnick abune...@gmail.comwrote: When I try to upload a screenshot (png or jpg), I get the message Upload a valid image. The file you uploaded was either not an image or a corrupted image. I've tried uploading from Firefox 3.5.5 and Chrome 2.0.172.43. * Running Reviewboard 1.0.5.1 on Ubuntu 9.04 using Apache2 and mod_python. * libpng12-dev, libjpeg62-dev and python-imaging 1.1.6-3ubuntu1 are installed. * The uploaded and uploaded/images directories are writable by the user that apache is running. Any ideas would be highly appreciated! -David -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.comreviewboard%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.comreviewboard%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
Unable to upload screenshots
When I try to upload a screenshot (png or jpg), I get the message Upload a valid image. The file you uploaded was either not an image or a corrupted image. I've tried uploading from Firefox 3.5.5 and Chrome 2.0.172.43. * Running Reviewboard 1.0.5.1 on Ubuntu 9.04 using Apache2 and mod_python. * libpng12-dev, libjpeg62-dev and python-imaging 1.1.6-3ubuntu1 are installed. * The uploaded and uploaded/images directories are writable by the user that apache is running. Any ideas would be highly appreciated! -David -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en