Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366703 - net-analyzer/nagstamon-0.9.6.1 - no BeautifulSoup
Summary: net-analyzer/nagstamon-0.9.6.1 - no BeautifulSoup
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Tobias Scherbaum (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-10 06:10 UTC by Cédric Jeanneret
Modified: 2011-05-16 17:05 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
updated patch for system beautifulsoup (nagstamon-0.9.6.1-system-beautifulsoup.patch,817 bytes, text/x-patch)
2011-05-14 07:45 UTC, Dawid Stawiarski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cédric Jeanneret 2011-05-10 06:10:04 UTC
While trying to launch the latest nagstamon:

Traceback (most recent call last):
  File "/usr/bin/nagstamon", line 45, in <module>
    from Nagstamon import GUI
  File "/usr/lib64/python2.7/site-packages/Nagstamon/GUI.py", line 34, in <module>
    from Nagstamon import Custom # used for initialization of custom components 
  File "/usr/lib64/python2.7/site-packages/Nagstamon/Custom.py", line 9, in <module>
    from Nagstamon.Server.Nagios import NagiosServer
  File "/usr/lib64/python2.7/site-packages/Nagstamon/Server/Nagios.py", line 3, in <module>
    from Nagstamon.Server.Generic import GenericServer
  File "/usr/lib64/python2.7/site-packages/Nagstamon/Server/Generic.py", line 16, in <module>
    from Nagstamon.BeautifulSoup import BeautifulSoup, BeautifulStoneSoup
ImportError: No module named BeautifulSoup

Why not use the system beautifulsoup ?

[I] dev-python/beautifulsoup
     Available versions:  
	(python-3)	3.1.0.1-r1
	(python-2)	3.2.0
     Installed versions:  3.2.0(python-2)(10:45:31 AM 04/28/2011)
     Homepage:            http://www.crummy.com/software/BeautifulSoup/ http://pypi.python.org/pypi/BeautifulSoup
     Description:         HTML/XML parser for quick-turnaround applications like screen-scraping.


Cheers,

C.
Comment 1 Christian Ruppert (idl0r) gentoo-dev 2011-05-10 12:13:41 UTC
Fixed in CVS, try to re-merge/sync in about an hour.
Comment 2 Hans de Graaff gentoo-dev Security 2011-05-13 07:11:37 UTC
With nagstamon 0.9.6.1-r1 and beautifulsoup 3.2.0 I'm now getting this:

Gtk-Message: Failed to load module "gnomebreakpad"
Traceback (most recent call last):
  File "/usr/bin/nagstamon", line 45, in <module>
    from Nagstamon import GUI
  File "/usr/lib64/python2.7/site-packages/Nagstamon/GUI.py", line 34, in <module>
    from Nagstamon import Custom # used for initialization of custom components 
  File "/usr/lib64/python2.7/site-packages/Nagstamon/Custom.py", line 9, in <module>
    from Nagstamon.Server.Nagios import NagiosServer
  File "/usr/lib64/python2.7/site-packages/Nagstamon/Server/Nagios.py", line 3, in <module>
    from Nagstamon.Server.Generic import GenericServer
  File "/usr/lib64/python2.7/site-packages/Nagstamon/Server/Generic.py", line 17, in <module>
    import BeautifulStoneSoup
ImportError: No module named BeautifulStoneSoup
Comment 3 Cédric Jeanneret 2011-05-13 11:28:30 UTC
Still crashing - but as Hans said, it's another error now:

$ nagstamon 
/home/cjeanneret/.themes/New Wave Lucid theme/gtk-2.0/gtkrc:126: Murrine configuration option "gradients" is no longer supported and will be ignored.
Traceback (most recent call last):
  File "/usr/bin/nagstamon", line 45, in <module>
    from Nagstamon import GUI
  File "/usr/lib64/python2.7/site-packages/Nagstamon/GUI.py", line 34, in <module>
    from Nagstamon import Custom # used for initialization of custom components 
  File "/usr/lib64/python2.7/site-packages/Nagstamon/Custom.py", line 9, in <module>
    from Nagstamon.Server.Nagios import NagiosServer
  File "/usr/lib64/python2.7/site-packages/Nagstamon/Server/Nagios.py", line 3, in <module>
    from Nagstamon.Server.Generic import GenericServer
  File "/usr/lib64/python2.7/site-packages/Nagstamon/Server/Generic.py", line 17, in <module>
    import BeautifulStoneSoup
ImportError: No module named BeautifulStoneSoup


Cheers,

C.
Comment 4 Dawid Stawiarski 2011-05-14 07:45:49 UTC
Created attachment 273171 [details]
updated patch for system beautifulsoup

import lines need the 'from BeautifulSoup' prefix. with attached patch nagstamon works as expected.
Comment 5 Christian Ruppert (idl0r) gentoo-dev 2011-05-15 18:42:01 UTC
Thanks, please re-sync/merge and try again. Should be really fixed now.
Comment 6 Hans de Graaff gentoo-dev Security 2011-05-16 16:38:11 UTC
Fix confirmed. But shouldn't that have been a revision bump to make sure everyone gets that fix?
Comment 7 Christian Ruppert (idl0r) gentoo-dev 2011-05-16 17:05:46 UTC
Well, it didn't work for everybody so a revbump wouldn't be necessary.