Re: Update to V2.5.4 failed wit ImportError: No module named PIL

2016-06-07 Thread Christian Hammond
Should work, yep. That's one way to do it :)

Christian

-- 
Christian Hammond
President/CEO of Beanbag 
Makers of Review Board 

On Tue, Jun 7, 2016 at 4:03 PM, Alexey Neyman 
wrote:

> Hi Christian,
>
> Yeah, found that pillowfight package - I just hand-edited the requires.txt
> and replaced PIL with Pillow. Is it enough?
>
> Regards,
> Alexey.
>
> On Tuesday, June 7, 2016 at 3:37:30 PM UTC-7, Christian Hammond wrote:
>>
>> Hi Alexey,
>>
>> We have a PIL/Pillow compatibility wrapper package you'll need to
>> reinstall. Try:
>>
>> pip uninstall pillowfight
>> pip install pillowfight
>>
>> Christian
>>
>>
>> On Tuesday, June 7, 2016, Alexey Neyman  wrote:
>>
>>> Saw the same error while upgrading from 2.0.19 to 2.0.24. Uninstalled
>>> PIL ("pip uninstall PIL") and installed Pillow ("easy_install -U Pillow"),
>>> but now rb-site fails with:
>>>
>>> bash-4.1# rb-site upgrade /var/www.reviewboard
>>> Traceback (most recent call last):
>>>   File "/usr/bin/rb-site", line 5, in 
>>> from pkg_resources import load_entry_point
>>>   File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655,
>>> in 
>>> working_set.require(__requires__)
>>>   File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in
>>> require
>>> needed = self.resolve(parse_requirements(requirements))
>>>   File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in
>>> resolve
>>> raise DistributionNotFound(req)
>>> pkg_resources.DistributionNotFound: PIL
>>>
>>> Any clues?
>>>
>>> Regards,
>>> Alexey.
>>>
>>> On Friday, April 15, 2016 at 1:48:41 PM UTC-7, Christian Hammond wrote:

 Hi Markus,

 Not sure why it would suddenly break from 2.5.2 to 2.5.4 (to my
 knowledge, nothing changes on our end here), but PIL is old and outdated,
 and won't be an option for too many more major releases.

 I suggest uninstalling PIL and installing Pillow instead. That's the
 modern fork of PIL, and will be supported going forward.

 Christian

 --
 Christian Hammond
 President/CEO of Beanbag 
 Makers of Review Board 

 On Thu, Apr 14, 2016 at 3:02 AM, Markus Grimm 
 wrote:

>
> Small addition: PIL is installed on my system in version 1.1.7:
>
> > pip show pil
> ---
> Metadata-Version: 1.1
> Name: PIL
> Version: 1.1.7
> Summary: Python Imaging Library
> Home-page: http://www.pythonware.com/products/pil
> Author: Secret Labs AB (PythonWare)
> Author-email: i...@pythonware.com
> License: Python (MIT style)
> Location: /usr/local/lib/python2.7/dist-packages/PIL-1.1.7-py2.7-linux
> -i686.egg
> Requires:
> Classifiers:
>   Development Status :: 6 - Mature
>   Topic :: Multimedia :: Graphics
>   Topic :: Multimedia :: Graphics :: Capture :: Digital Camera
>   Topic :: Multimedia :: Graphics :: Capture :: Scanners
>   Topic :: Multimedia :: Graphics :: Capture :: Screen Capture
>   Topic :: Multimedia :: Graphics :: Graphics Conversion
>   Topic :: Multimedia :: Graphics :: Viewers
>
>
>
> --
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
> Happy user? Let us know! https://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google
> Groups "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to reviewboard...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>


>>
>> --
>> --
>> Christian Hammond
>> President/CEO of Beanbag 
>> Makers of Review Board 
>>
>>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Update to V2.5.4 failed wit ImportError: No module named PIL

2016-06-07 Thread Alexey Neyman
Hi Christian,

Yeah, found that pillowfight package - I just hand-edited the requires.txt 
and replaced PIL with Pillow. Is it enough?

Regards,
Alexey.

On Tuesday, June 7, 2016 at 3:37:30 PM UTC-7, Christian Hammond wrote:
>
> Hi Alexey,
>
> We have a PIL/Pillow compatibility wrapper package you'll need to 
> reinstall. Try:
>
> pip uninstall pillowfight 
> pip install pillowfight
>
> Christian
>
>
> On Tuesday, June 7, 2016, Alexey Neyman  
> wrote:
>
>> Saw the same error while upgrading from 2.0.19 to 2.0.24. Uninstalled PIL 
>> ("pip uninstall PIL") and installed Pillow ("easy_install -U Pillow"), but 
>> now rb-site fails with:
>>
>> bash-4.1# rb-site upgrade /var/www.reviewboard
>> Traceback (most recent call last):
>>   File "/usr/bin/rb-site", line 5, in 
>> from pkg_resources import load_entry_point
>>   File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in 
>> 
>> working_set.require(__requires__)
>>   File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in 
>> require
>> needed = self.resolve(parse_requirements(requirements))
>>   File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in 
>> resolve
>> raise DistributionNotFound(req)
>> pkg_resources.DistributionNotFound: PIL
>>
>> Any clues?
>>
>> Regards,
>> Alexey.
>>
>> On Friday, April 15, 2016 at 1:48:41 PM UTC-7, Christian Hammond wrote:
>>>
>>> Hi Markus,
>>>
>>> Not sure why it would suddenly break from 2.5.2 to 2.5.4 (to my 
>>> knowledge, nothing changes on our end here), but PIL is old and outdated, 
>>> and won't be an option for too many more major releases.
>>>
>>> I suggest uninstalling PIL and installing Pillow instead. That's the 
>>> modern fork of PIL, and will be supported going forward.
>>>
>>> Christian
>>>
>>> -- 
>>> Christian Hammond
>>> President/CEO of Beanbag 
>>> Makers of Review Board 
>>>
>>> On Thu, Apr 14, 2016 at 3:02 AM, Markus Grimm  
>>> wrote:
>>>

 Small addition: PIL is installed on my system in version 1.1.7:

 > pip show pil
 ---
 Metadata-Version: 1.1
 Name: PIL
 Version: 1.1.7
 Summary: Python Imaging Library
 Home-page: http://www.pythonware.com/products/pil
 Author: Secret Labs AB (PythonWare)
 Author-email: i...@pythonware.com
 License: Python (MIT style)
 Location: /usr/local/lib/python2.7/dist-packages/PIL-1.1.7-py2.7-linux-
 i686.egg
 Requires: 
 Classifiers:
   Development Status :: 6 - Mature
   Topic :: Multimedia :: Graphics
   Topic :: Multimedia :: Graphics :: Capture :: Digital Camera
   Topic :: Multimedia :: Graphics :: Capture :: Scanners
   Topic :: Multimedia :: Graphics :: Capture :: Screen Capture
   Topic :: Multimedia :: Graphics :: Graphics Conversion
   Topic :: Multimedia :: Graphics :: Viewers



 -- 
 Supercharge your Review Board with Power Pack: 
 https://www.reviewboard.org/powerpack/
 Want us to host Review Board for you? Check out RBCommons: 
 https://rbcommons.com/
 Happy user? Let us know! https://www.reviewboard.org/users/
 --- 
 You received this message because you are subscribed to the Google 
 Groups "reviewboard" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to reviewboard...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>
>
> -- 
> -- 
> Christian Hammond
> President/CEO of Beanbag 
> Makers of Review Board 
>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Update to V2.5.4 failed wit ImportError: No module named PIL

2016-06-07 Thread Alexey Neyman
Saw the same error while upgrading from 2.0.19 to 2.0.24. Uninstalled PIL 
("pip uninstall PIL") and installed Pillow ("easy_install -U Pillow"), but 
now rb-site fails with:

bash-4.1# rb-site upgrade /var/www.reviewboard
Traceback (most recent call last):
  File "/usr/bin/rb-site", line 5, in 
from pkg_resources import load_entry_point
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in 

working_set.require(__requires__)
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in 
require
needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in 
resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: PIL

Any clues?

Regards,
Alexey.

On Friday, April 15, 2016 at 1:48:41 PM UTC-7, Christian Hammond wrote:
>
> Hi Markus,
>
> Not sure why it would suddenly break from 2.5.2 to 2.5.4 (to my knowledge, 
> nothing changes on our end here), but PIL is old and outdated, and won't be 
> an option for too many more major releases.
>
> I suggest uninstalling PIL and installing Pillow instead. That's the 
> modern fork of PIL, and will be supported going forward.
>
> Christian
>
> -- 
> Christian Hammond
> President/CEO of Beanbag 
> Makers of Review Board 
>
> On Thu, Apr 14, 2016 at 3:02 AM, Markus Grimm  > wrote:
>
>>
>> Small addition: PIL is installed on my system in version 1.1.7:
>>
>> > pip show pil
>> ---
>> Metadata-Version: 1.1
>> Name: PIL
>> Version: 1.1.7
>> Summary: Python Imaging Library
>> Home-page: http://www.pythonware.com/products/pil
>> Author: Secret Labs AB (PythonWare)
>> Author-email: i...@pythonware.com
>> License: Python (MIT style)
>> Location: /usr/local/lib/python2.7/dist-packages/PIL-1.1.7-py2.7-linux-
>> i686.egg
>> Requires: 
>> Classifiers:
>>   Development Status :: 6 - Mature
>>   Topic :: Multimedia :: Graphics
>>   Topic :: Multimedia :: Graphics :: Capture :: Digital Camera
>>   Topic :: Multimedia :: Graphics :: Capture :: Scanners
>>   Topic :: Multimedia :: Graphics :: Capture :: Screen Capture
>>   Topic :: Multimedia :: Graphics :: Graphics Conversion
>>   Topic :: Multimedia :: Graphics :: Viewers
>>
>>
>>
>> -- 
>> Supercharge your Review Board with Power Pack: 
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out RBCommons: 
>> https://rbcommons.com/
>> Happy user? Let us know! https://www.reviewboard.org/users/
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "reviewboard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to reviewboard...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Update to V2.5.4 failed wit ImportError: No module named PIL

2016-04-15 Thread Christian Hammond
Hi Markus,

Not sure why it would suddenly break from 2.5.2 to 2.5.4 (to my knowledge,
nothing changes on our end here), but PIL is old and outdated, and won't be
an option for too many more major releases.

I suggest uninstalling PIL and installing Pillow instead. That's the modern
fork of PIL, and will be supported going forward.

Christian

-- 
Christian Hammond
President/CEO of Beanbag 
Makers of Review Board 

On Thu, Apr 14, 2016 at 3:02 AM, Markus Grimm  wrote:

>
> Small addition: PIL is installed on my system in version 1.1.7:
>
> > pip show pil
> ---
> Metadata-Version: 1.1
> Name: PIL
> Version: 1.1.7
> Summary: Python Imaging Library
> Home-page: http://www.pythonware.com/products/pil
> Author: Secret Labs AB (PythonWare)
> Author-email: i...@pythonware.com
> License: Python (MIT style)
> Location: /usr/local/lib/python2.7/dist-packages/PIL-1.1.7-py2.7-linux-
> i686.egg
> Requires:
> Classifiers:
>   Development Status :: 6 - Mature
>   Topic :: Multimedia :: Graphics
>   Topic :: Multimedia :: Graphics :: Capture :: Digital Camera
>   Topic :: Multimedia :: Graphics :: Capture :: Scanners
>   Topic :: Multimedia :: Graphics :: Capture :: Screen Capture
>   Topic :: Multimedia :: Graphics :: Graphics Conversion
>   Topic :: Multimedia :: Graphics :: Viewers
>
>
>
> --
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
> Happy user? Let us know! https://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to reviewboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Update to V2.5.4 failed wit ImportError: No module named PIL

2016-04-14 Thread Markus Grimm

Small addition: PIL is installed on my system in version 1.1.7:

> pip show pil
---
Metadata-Version: 1.1
Name: PIL
Version: 1.1.7
Summary: Python Imaging Library
Home-page: http://www.pythonware.com/products/pil
Author: Secret Labs AB (PythonWare)
Author-email: i...@pythonware.com
License: Python (MIT style)
Location: /usr/local/lib/python2.7/dist-packages/PIL-1.1.7-py2.7-linux-i686.
egg
Requires: 
Classifiers:
  Development Status :: 6 - Mature
  Topic :: Multimedia :: Graphics
  Topic :: Multimedia :: Graphics :: Capture :: Digital Camera
  Topic :: Multimedia :: Graphics :: Capture :: Scanners
  Topic :: Multimedia :: Graphics :: Capture :: Screen Capture
  Topic :: Multimedia :: Graphics :: Graphics Conversion
  Topic :: Multimedia :: Graphics :: Viewers



-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Update to V2.5.4 failed wit ImportError: No module named PIL

2016-04-14 Thread Markus Grimm
Hi there,

I just updated the review board from V2.5.2 to 2.5.4. easy_install ran 
through fine, but rb-site upgrade throws the following error:


Traceback (most recent call last):
  File "/usr/local/bin/rb-site", line 9, in 
load_entry_point('ReviewBoard==2.5.4', 'console_scripts', 'rb-site')()
  File 
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5.4-py2.7.egg/reviewboard/cmdline/rbsite.py"
, line 1922, in main
command.run()
  File 
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5.4-py2.7.egg/reviewboard/cmdline/rbsite.py"
, line 1705, in run
static_media_upgrade_needed = site.get_static_media_upgrade_needed()
  File 
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5.4-py2.7.egg/reviewboard/cmdline/rbsite.py"
, line 467, in get_static_media_upgrade_needed
siteconfig = SiteConfiguration.objects.get_current()
  File 
"/usr/local/lib/python2.7/dist-packages/Djblets-0.9.3-py2.7.egg/djblets/siteconfig/managers.py"
, line 50, in get_current
site = Site.objects.get_current()
  File 
"/usr/local/lib/python2.7/dist-packages/Django-1.6.11.2-py2.7.egg/django/contrib/sites/models.py"
, line 47, in get_current
current_site = self.get(pk=sid)
  File 
"/usr/local/lib/python2.7/dist-packages/Django-1.6.11.2-py2.7.egg/django/db/models/manager.py"
, line 151, in get
return self.get_queryset().get(*args, **kwargs)
  File 
"/usr/local/lib/python2.7/dist-packages/Django-1.6.11.2-py2.7.egg/django/db/models/query.py"
, line 301, in get
clone = self.filter(*args, **kwargs)
  File 
"/usr/local/lib/python2.7/dist-packages/Django-1.6.11.2-py2.7.egg/django/db/models/query.py"
, line 593, in filter
return self._filter_or_exclude(False, *args, **kwargs)
  File 
"/usr/local/lib/python2.7/dist-packages/Django-1.6.11.2-py2.7.egg/django/db/models/query.py"
, line 611, in _filter_or_exclude
clone.query.add_q(Q(*args, **kwargs))
  File 
"/usr/local/lib/python2.7/dist-packages/Django-1.6.11.2-py2.7.egg/django/db/models/sql/query.py"
, line 1204, in add_q
clause = self._add_q(where_part, used_aliases)
  File 
"/usr/local/lib/python2.7/dist-packages/Django-1.6.11.2-py2.7.egg/django/db/models/sql/query.py"
, line 1240, in _add_q
current_negated=current_negated)
  File 
"/usr/local/lib/python2.7/dist-packages/Django-1.6.11.2-py2.7.egg/django/db/models/sql/query.py"
, line 1103, in build_filter
allow_explicit_fk=True)
  File 
"/usr/local/lib/python2.7/dist-packages/Django-1.6.11.2-py2.7.egg/django/db/models/sql/query.py"
, line 1363, in setup_joins
names, opts, allow_many, allow_explicit_fk)
  File 
"/usr/local/lib/python2.7/dist-packages/Django-1.6.11.2-py2.7.egg/django/db/models/sql/query.py"
, line 1271, in names_to_path
field, model, direct, m2m = opts.get_field_by_name(name)
  File 
"/usr/local/lib/python2.7/dist-packages/Django-1.6.11.2-py2.7.egg/django/db/models/options.py"
, line 373, in get_field_by_name
cache = self.init_name_map()
  File 
"/usr/local/lib/python2.7/dist-packages/Django-1.6.11.2-py2.7.egg/django/db/models/options.py"
, line 402, in init_name_map
for f, model in self.get_all_related_m2m_objects_with_model():
  File 
"/usr/local/lib/python2.7/dist-packages/Django-1.6.11.2-py2.7.egg/django/db/models/options.py"
, line 518, in get_all_related_m2m_objects_with_model
cache = self._fill_related_many_to_many_cache()
  File 
"/usr/local/lib/python2.7/dist-packages/Django-1.6.11.2-py2.7.egg/django/db/models/options.py"
, line 532, in _fill_related_many_to_many_cache
for klass in get_models(only_installed=False):
  File 
"/usr/local/lib/python2.7/dist-packages/Django-1.6.11.2-py2.7.egg/django/db/models/loading.py"
, line 232, in get_models
self._populate()
  File 
"/usr/local/lib/python2.7/dist-packages/Django-1.6.11.2-py2.7.egg/django/db/models/loading.py"
, line 78, in _populate
self.load_app(app_name)
  File 
"/usr/local/lib/python2.7/dist-packages/Django-1.6.11.2-py2.7.egg/django/db/models/loading.py"
, line 99, in load_app
models = import_module('%s.models' % app_name)
  File 
"/usr/local/lib/python2.7/dist-packages/Django-1.6.11.2-py2.7.egg/django/utils/importlib.py"
, line 40, in import_module
__import__(name)
  File 
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5.4-py2.7.egg/reviewboard/accounts/models.py"
, line 19, in 
from reviewboard.reviews.models import Group, ReviewRequest
  File 
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5.4-py2.7.egg/reviewboard/reviews/models/__init__.py"
, line 6, in 
from reviewboard.reviews.models.file_attachment_comment import \
  File 
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5.4-py2.7.egg/reviewboard/reviews/models/file_attachment_comment.py"
, line 9, in 
from reviewboard.attachments.models import FileAttachment
  File 
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5.4-py2.7.egg/reviewboard/attachments/models.py"
, line 15, in 
from reviewboard.attachments.mimetypes import MimetypeHandler
  File