4196: ExtensionInfo can not parse PKG-INFO with multiline description


What version of Djblets are you using?


Which module(s) have the problem?


What steps will reproduce the problem?

  1. Install ReviewBoard v2.5.2

    echo "Prepare mariadb..."
    yum install -y mariadb-server mariadb python-mysql
    systemctl enable mariadb.service
    systemctl start mariadb.service
    mysqladmin -u root password 'password'

    echo "Prepare repository epel..."
    yum install -y https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

    echo "Install ReviewBoard..."
    yum install -y ReviewBoard

    echo "Prepare httpd..."
    ln -s /var/www/reviews/conf/apache-wsgi.conf /etc/httpd/conf.d/reviewboard.conf
    systemctl enable httpd

    echo "Prepare ReviewBoard DB"
    mysql -u root --password='password' -e 'create database reviewboard;'
    mysql -u root --password='password' -e 'grant usage on . to reviewboard@localhost identified by "password";'
    mysql -u root --password='password' -e 'grant all privileges on reviewboard.* to reviewboard@localhost;'

  2. Create site "/var/www/reviews"

    rb-site install --noinput \
    --domain-name=#{HOSTNAME} \
    --site-root=/ \
    --media-url=media/ \
    --db-type=mysql \
    --db-name=reviewboard \
    --db-host=localhost \
    --db-user=reviewboard \
    --db-pass=password \
    --cache-type=memcached \
    --web-server-type=apache \
    --python-loader=wsgi \
    --admin-user=admin \
    --admin-password=password \
    --admin-email=root@#{HOSTNAME} \

  3. Install RBXmppNotification extension:

    pip install RBXmppNotification

  4. List extensions

    rb-site manage /var/www/reviews list-extensions

What is the expected output? What do you see instead?

Name: RBXmppNotification
Status: disabled
ID: rbxmppnotification.extension.RBXmppNotification

What version of Python and Django?

Python 2.7.5
Django (1.6.12)

Please provide any additional information below.

Stacktrace for call: rb-site manage /var/www/reviews list-extensions

Traceback (most recent call last):
File "/bin/rb-site", line 9, in <module>
load_entry_point('ReviewBoard==2.5.2', 'console_scripts', 'rb-site')()
File "/usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py", line 1922, in main
File "/usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py", line 1842, in run
File "/usr/lib/python2.7/site-packages/reviewboard/init.py", line 147, in initialize
File "/usr/lib/python2.7/site-packages/djblets/extensions/manager.py", line 416, in load
File "/usr/lib/python2.7/site-packages/djblets/extensions/manager.py", line 467, in _load_extensions
ext_class.info = ExtensionInfo(entrypoint, ext_class)
File "/usr/lib/python2.7/site-packages/djblets/extensions/extension.py", line 186, in init
key, value = line.split(": ", 1)
ValueError: need more than 1 value to unpack

#1 iconoeugen

Proposed fix in review request #8001:


#2 david

Fixed in djblets release-0.8.x (3fc013a). Thanks!

  • -New