[Biopython-dev] [Bug 2729] Importing Bio.SeqUtils before importing pylab gives a "Bus Error"
bugzilla-daemon at portal.open-bio.org
bugzilla-daemon at portal.open-bio.org
Fri Jan 9 16:53:23 UTC 2009
http://bugzilla.open-bio.org/show_bug.cgi?id=2729
------- Comment #4 from stephan_schiffels at mac.com 2009-01-09 11:53 EST -------
Hi,
importing Tkinter works fine. Only calling import pylab after it crashes... (no
traceback... just "bus error").
Here is the shell-output:
mac14:~ stschiff$ python
Python 2.5 (r25:51908, Apr 19 2007, 16:49:06)
[GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import Tkinter
>>> import pylab
Bus error
mac14:~ stschiff$
The weirdest thing is that calling the other way around works fine:
mac14:~ stschiff$ python
Python 2.5 (r25:51908, Apr 19 2007, 16:49:06)
[GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pylab
>>> import Tkinter
>>>
The same holds for first calling pylab and then Bio.SeqUtils...
I dont know, it could be that this is just a pathological case on my specific
setup. It's still weird though, since matplotlib uses GTK on X11 on my machine,
not Tkinter... I dont get it.
Maybe this is not a biopython bug after all... sorry and thanks anyway for your
concern
Stephan
(In reply to comment #1)
> i.e. these lines?
>
> try:
> from Tkinter import *
> except ImportError:
> pass
>
> What happens with just "import Tkinter" on your machine?
>
> Are you using the default Apple installed copy of python?
>
> I can see why this might cause trouble if Tkinter does some initialisation at
> import time. Could you include the actual crash/traceback error please?
>
> Note I see no crash on my MacOS machine (not sure which version of pylab) which
> has Tkinter. Nor do I see a crash on one of my linux machines (again, not sure
> which pylab) which does NOT have TKinter.
>
--
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Biopython-dev
mailing list