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 

Re: Where to find post-review command?

2014-05-05 Thread Markus Grimm
Hi David,

thank you for your answer. I provided the server to rbt post, but it is 
still not working. There seems something wrong with the diff created. I get 
the same error as when I try to upload a manually created diff when 
creating a new review request:

ERROR: Error uploading diff


One or more fields had errors (HTTP 400, API Error 105)

path: fatal: Not a git repository: 'None'


Your review request still exists, but the diff is not attached.

The debug output of the post command looks like this:

$ rbt post --server http://localhost -d
 RBTools 0.6
 Python 2.7.3 (default, Feb 27 2014, 19:58:35) 
[GCC 4.6.3]
 Running on Linux-3.11.0-20-generic-x86_64-with-Ubuntu-12.04-precise
 Home = /home/mgrimm
 Current directory = /home/mgrimm/adnymics/adnymics
 Checking for a Subversion repository...
 Unable to execute svn help: skipping SVN
 Checking for a Git repository...
 Running: git rev-parse --git-dir
 Running: git config core.bare
 Running: git rev-parse --show-toplevel
 Running: git symbolic-ref -q HEAD
 Running: git config --get branch.futures/newfeature.merge
 Command exited with rc 1: ['git', 'config', '--get', 
'branch.futures/newfeature.merge']
---
 Running: git config --get branch.futures/newfeature.remote
 Command exited with rc 1: ['git', 'config', '--get', 
'branch.futures/newfeature.remote']
---
 Running: git config --get remote.origin.url
 repository info: Path: git@localhost:~/adnymics.git, Base path: , 
Supports changesets: False
 Making HTTP GET request to http://localhost/api/
 Making HTTP GET request to http://localhost/api/info/
 Running: git rev-parse refs/heads/futures/newfeature
 Running: git merge-base 0fd9066346303da749de9f4818490c290ad40128 
origin/master
 Running: git rev-parse ebd82d38a40a51e6c78260a5ec06d86412b99281
 Running: git status --porcelain --untracked-files=no
 Running: git diff --no-color --full-index --ignore-submodules 
--no-renames 
ebd82d38a40a51e6c78260a5ec06d86412b99281..0fd9066346303da749de9f4818490c290ad40128
 
-M
 Running: git log --reverse --pretty=format:%s%n%n%b 
^ebd82d38a40a51e6c78260a5ec06d86412b99281 
0fd9066346303da749de9f4818490c290ad40128
 Making HTTP GET request to http://localhost/api/review-requests/
 Making HTTP POST request to http://localhost/api/review-requests/
 Making HTTP GET request to http://localhost/api/review-requests/3/diffs/
 Making HTTP POST request to 
http://localhost/api/review-requests/3/diffs/
 Got API Error 105 (HTTP code 400): One or more fields had errors
 Error data: {u'fields': {u'path': [ufatal: Not a git repository: 
'None'\n]}, u'stat': u'fail', u'err': {u'msg': u'One or more fields had 
errors', u'code': 105}}
Traceback (most recent call last):
  File /usr/local/bin/rbt, line 9, in module
load_entry_point('RBTools==0.6', 'console_scripts', 'rbt')()
  File 
/usr/local/lib/python2.7/dist-packages/RBTools-0.6-py2.7.egg/rbtools/commands/main.py,
 
line 134, in main
command.run_from_argv([RB_MAIN, command_name] + args)
  File 
/usr/local/lib/python2.7/dist-packages/RBTools-0.6-py2.7.egg/rbtools/commands/__init__.py,
 
line 422, in run_from_argv
exit_code = self.main(*args) or 0
  File 
/usr/local/lib/python2.7/dist-packages/RBTools-0.6-py2.7.egg/rbtools/commands/post.py,
 
line 769, in main
submit_as=self.options.submit_as)
  File 
/usr/local/lib/python2.7/dist-packages/RBTools-0.6-py2.7.egg/rbtools/commands/post.py,
 
line 545, in post_request
raise CommandError('\n'.join(error_msg))
rbtools.commands.CommandError: Error uploading diff


One or more fields had errors (HTTP 400, API Error 105)

path: fatal: Not a git repository: 'None'


Your review request still exists, but the diff is not attached.

Can anyone tell me what's missing here? Any help would be appreciated.


Am Sonntag, 4. Mai 2014 07:03:39 UTC+2 schrieb David Trowbridge:

 The 'post-review' command has been deprecated in favor of 'rbt post' for 
 quite some time. As of RBTools 0.6, it has been removed.

 In order to use rbt post (or even post-review with older versions of 
 rbtools), you'll need to create a .reviewboardrc file that lists your 
 server name.

 -David


 On Fri, May 2, 2014 at 7:56 AM, Markus Grimm m.g...@adnymics.comjavascript:
  wrote:

 Hi all,

 I have installed Review-Board V1.7.25 and the RBTools. But I cannot find 
 any post-review command on my machine as mentioned in the documentation of 
 Version 1.7 (the rbt command is there, though).

 In the latest (dev) documentation, it says, one should use the command 
 rbt post. But when I run it in my repository directory, the only output 
 is:

 Unable to find a Review Board server for this source code tree.

 Now I am confused. Which command can be used in which version of 
 Review-Board?

 Best Regards,

 Markus




-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message

What is the format of the REVIEWBOARD_URL server in the .reviewboardrc?

2014-05-05 Thread Markus Grimm
Hi all,

I just tried to specify a server for the rbt post command. I installed 
Review Board at my local machine, so the command

rbt post --server http://localhost

does find the server. Also entering the lines

[reviewboard]
url = http://localhost

in the git config works fine. But when I create the .reviewboardrc with the 
line

REVIEWBOARD_URL = http://localhost

I get the error

Syntax error in config file: /home/mgrimm/adnymics/adnymics/.reviewboardrc
Line 1 offset 23

Offset 23 points to the colon or to the first slash - depending on where 
you start counting. I also tried

REVIEWBOARD_URL = localhost

as content for .reviewboardrc, but that throws the following error:

Traceback (most recent call last):
  File /usr/local/bin/rbt, line 9, in module
load_entry_point('RBTools==0.6', 'console_scripts', 'rbt')()
  File 
/usr/local/lib/python2.7/dist-packages/RBTools-0.6-py2.7.egg/rbtools/commands/main.py,
 
line 134, in main
command.run_from_argv([RB_MAIN, command_name] + args)
  File 
/usr/local/lib/python2.7/dist-packages/RBTools-0.6-py2.7.egg/rbtools/commands/__init__.py,
 
line 398, in run_from_argv
self.config = load_config()
  File 
/usr/local/lib/python2.7/dist-packages/RBTools-0.6-py2.7.egg/rbtools/utils/filesystem.py,
 
line 166, in load_config
config.update(parse_config_file(filename))
  File 
/usr/local/lib/python2.7/dist-packages/RBTools-0.6-py2.7.egg/rbtools/utils/filesystem.py,
 
line 146, in parse_config_file
execfile(filename, config)
  File /home/mgrimm/adnymics/adnymics/.reviewboardrc, line 1, in module
REVIEWBOARD_URL = localhost
NameError: name 'localhost' is not defined

So what is the correct format for the server in the .reviewboardrc? I could 
not find anything about that in the documentation.

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://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.


Where to find post-review command?

2014-05-02 Thread Markus Grimm
Hi all,

I have installed Review-Board V1.7.25 and the RBTools. But I cannot find 
any post-review command on my machine as mentioned in the documentation of 
Version 1.7 (the rbt command is there, though).

In the latest (dev) documentation, it says, one should use the command rbt 
post. But when I run it in my repository directory, the only output is:

Unable to find a Review Board server for this source code tree.

Now I am confused. Which command can be used in which version of 
Review-Board?

Best Regards,

Markus

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://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.


How to generate a diff file properly?

2014-05-02 Thread Markus Grimm
Hi all,

How can I create diffs for git repositories? This part is left out in the 
documentation completely. I have tried to redirect the output of git diff 
to a file, but when I try to upload this file as diff in an new review 
request, I get the error fatal: Not a git repository: 'None'. I would 
appreciate any help in this matter.

Best Regards,

Markus

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://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.


Error when creating new custom git repository with ssh access

2014-05-02 Thread Markus Grimm
Hi there,

I just evaluate review board to check if it's the right tool for my 
company. Installation worked fine, also the configuration so far. But when 
I try to add a new repository, I get the error:

[Errno -5] No address associated with hostname

The Hosting service is set to: (None - Custom Repository)
Repository Type is Git.
Path is ssh://git@localhost:23374/~/adnymics.git

At least that's the path which works with git clone from the command 
line. The ssh server runs on port 23374, not on port 22 for security 
reasons.

If I change the ssh server port to 22, everything runs fine with the path 
git@localhost:~/adnymics.git. So the problem seems to be the ssh port. Is 
there any other way to specify a non-default ssh port?

Best Regards,

Markus

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://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.