Variety won't launch : AttributeError: 'module' object has no attribute '_base'

Bug #1705887 reported by qkzk
This bug report is a duplicate of:  Bug #1603299: Crash with latest html5lib. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Variety
New
Undecided
Unassigned

Bug Description

Hi,

I've used variety without problem for monthes. Since yesterday I noticed it won't launch anymore.

I tried updating variety with apt-get update, apt-get install variety but it didn't fix the problem.

The version I have is : Package: variety
Version: 0.6.3-5~bpo8+1
I'm using debian Jessie 64 bits on a core i5.
The desktop environment is Cinnamon.

Here's what I get in the console when executing variety :

I add exactly the same output before updating. I installed it in january from the same way (as described on the main page).

Have a nice day !

$ variety -v
Traceback (most recent call last):
  File "/usr/bin/variety", line 38, in <module>
    import variety
  File "/usr/lib/python2.7/dist-packages/variety/__init__.py", line 110, in <module>
    from variety import VarietyWindow
  File "/usr/lib/python2.7/dist-packages/variety/VarietyWindow.py", line 24, in <module>
    from variety.FacebookHelper import FacebookHelper
  File "/usr/lib/python2.7/dist-packages/variety/FacebookHelper.py", line 55, in <module>
    from variety.Util import Util
  File "/usr/lib/python2.7/dist-packages/variety/Util.py", line 16, in <module>
    import bs4
  File "/usr/lib/python2.7/dist-packages/bs4/__init__.py", line 30, in <module>
    from .builder import builder_registry, ParserRejectedMarkup
  File "/usr/lib/python2.7/dist-packages/bs4/builder/__init__.py", line 311, in <module>
    from . import _html5lib
  File "/usr/lib/python2.7/dist-packages/bs4/builder/_html5lib.py", line 57, in <module>
    class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder):
AttributeError: 'module' object has no attribute '_base'

Here is the package I installed :

$ sudo apt-cache show variety
Package: variety
Version: 0.6.3-5~bpo8+1
Installed-Size: 2253
Maintainer: James Lu <email address hidden>
Architecture: all
Depends: python (>= 2.7), python (<< 2.8), python2.7:any, gir1.2-notify-0.7, python-configobj, python-pyexiv2, python-pycurl, gir1.2-gtk-3.0, python-dbus, python-requests, gir1.2-pango-1.0, gir1.2-glib-2.0, python-imaging, python-cairo, gir1.2-gdkpixbuf-2.0, python-bs4, gir1.2-webkit-3.0, gir1.2-appindicator3-0.1, imagemagick, python-gi-cairo
Recommends: yelp
Suggests: feh
Description-en: Wallpaper changer, downloader and manager
 Variety is an open-source wallpaper changer, downloader, and manager for
 Linux. It supports a variety of sources for wallpapers, including local
 files, online services such as Flickr, Wallhaven.cc, NASA Astronomy Picture
 of the Day, Desktoppr.co, and media RSS feeds (Picasa, deviantART, etc.).
Description-md5: 702176eb2547caf9f7a92552451a3702
Homepage: http://peterlevi.com/variety/
Python-Version: 2.7
Section: graphics
Priority: optional
Filename: pool/main/v/variety/variety_0.6.3-5~bpo8+1_all.deb
Size: 608926
MD5sum: cac726b78ca6e32b1afc6991ceef0b14
SHA1: 6b8c75043e6eda048e8870a35320323d2b24e3d5
SHA256: 2f2216849d8ad385f7b149fff42368f65944c757f4ca5972f0c347a71a1542d4

Revision history for this message
James Lu (jlu5) wrote : Re: [Bug 1705887] [NEW] Variety won't launch : AttributeError: 'module' object has no attribute '_base'
Download full text (6.9 KiB)

Hi,

You may be able to work around this issue by running 'pip install
beautifulsoup4': this will fetch a version of bs4 that's compatible with
new versions of html5lib.

Best,
James

On Jul 23, 2017 5:27 PM, "qkzk" <email address hidden> wrote:

> Public bug reported:
>
> Hi,
>
> I've used variety without problem for monthes. Since yesterday I noticed
> it won't launch anymore.
>
> I tried updating variety with apt-get update, apt-get install variety
> but it didn't fix the problem.
>
> The version I have is : Package: variety
> Version: 0.6.3-5~bpo8+1
> I'm using debian Jessie 64 bits on a core i5.
> The desktop environment is Cinnamon.
>
> Here's what I get in the console when executing variety :
>
> I add exactly the same output before updating. I installed it in january
> from the same way (as described on the main page).
>
> Have a nice day !
>
> $ variety -v
> Traceback (most recent call last):
> File "/usr/bin/variety", line 38, in <module>
> import variety
> File "/usr/lib/python2.7/dist-packages/variety/__init__.py", line 110,
> in <module>
> from variety import VarietyWindow
> File "/usr/lib/python2.7/dist-packages/variety/VarietyWindow.py", line
> 24, in <module>
> from variety.FacebookHelper import FacebookHelper
> File "/usr/lib/python2.7/dist-packages/variety/FacebookHelper.py", line
> 55, in <module>
> from variety.Util import Util
> File "/usr/lib/python2.7/dist-packages/variety/Util.py", line 16, in
> <module>
> import bs4
> File "/usr/lib/python2.7/dist-packages/bs4/__init__.py", line 30, in
> <module>
> from .builder import builder_registry, ParserRejectedMarkup
> File "/usr/lib/python2.7/dist-packages/bs4/builder/__init__.py", line
> 311, in <module>
> from . import _html5lib
> File "/usr/lib/python2.7/dist-packages/bs4/builder/_html5lib.py", line
> 57, in <module>
> class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder):
> AttributeError: 'module' object has no attribute '_base'
>
>
> Here is the package I installed :
>
>
> $ sudo apt-cache show variety
> Package: variety
> Version: 0.6.3-5~bpo8+1
> Installed-Size: 2253
> Maintainer: James Lu <email address hidden>
> Architecture: all
> Depends: python (>= 2.7), python (<< 2.8), python2.7:any,
> gir1.2-notify-0.7, python-configobj, python-pyexiv2, python-pycurl,
> gir1.2-gtk-3.0, python-dbus, python-requests, gir1.2-pango-1.0,
> gir1.2-glib-2.0, python-imaging, python-cairo, gir1.2-gdkpixbuf-2.0,
> python-bs4, gir1.2-webkit-3.0, gir1.2-appindicator3-0.1, imagemagick,
> python-gi-cairo
> Recommends: yelp
> Suggests: feh
> Description-en: Wallpaper changer, downloader and manager
> Variety is an open-source wallpaper changer, downloader, and manager for
> Linux. It supports a variety of sources for wallpapers, including local
> files, online services such as Flickr, Wallhaven.cc, NASA Astronomy
> Picture
> of the Day, Desktoppr.co, and media RSS feeds (Picasa, deviantART, etc.).
> Description-md5: 702176eb2547caf9f7a92552451a3702
> Homepage: http://peterlevi.com/variety/
> Python-Version: 2.7
> Section: graphics
> Priority: optional
> Filename: pool/main/v/variety/variety_0.6.3-5~bpo8+1_all.deb
> Size: ...

Read more...

Revision history for this message
qkzk (qkzk) wrote :

Thank you.
I add to uninstall beautifullsoup4 first, I already had beautifulsoup4-4.3.2. pip installed beautifulsoup4-4.6.0 which is working with variety.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.