nashiong / cantera

Automatically exported from code.google.com/p/cantera
0 stars 0 forks source link

mixmaster not started #235

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install cantera on ubuntu 14.04 from 
https://launchpad.net/~speth/+archive/ubuntu/cantera
2. attempt to start mixmaster

What is the expected output? What do you see instead?
mixmaster prints stack trace:
Traceback (most recent call last):
  File "/usr/bin/mixmaster", line 4, in <module>
    MixMaster()
  File "/usr/lib/python2.7/dist-packages/cantera/mixmaster/main.py", line 221, in __init__
    self.loadmech(m[0],m[1],0)
  File "/usr/lib/python2.7/dist-packages/cantera/mixmaster/main.py", line 82, in loadmech
    self.mechframe.addMechanism(mechname, self.mech)
  File "/usr/lib/python2.7/dist-packages/cantera/mixmaster/MechManager.py", line 57, in addMechanism
    self.mechmenu = make_menu('Mixtures', self, self.mlist)
  File "/usr/lib/python2.7/dist-packages/cantera/mixmaster/ControlPanel.py", line 107, in make_menu
    button.pack(side=LEFT)
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1890, in pack_configure
    + self._options(cnf, kw))
_tkinter.TclError: cannot use geometry manager pack inside 
.140549216426824.140549216427184 which already has slaves managed by grid

What version of the product are you using? On what operating system?
cantera-2.1.2~b1-1+trusty0 on ubuntu 14.04

Original issue reported on code.google.com by Alexande...@googlemail.com on 9 Sep 2014 at 11:28

GoogleCodeExporter commented 9 years ago
I can reproduce this error with 2.1.1 built from source on Ubuntu 14.04 and 
Python 3.4. Unfortunately, I think MixMaster has not been maintained for some 
time, and I am unsure when this might be fixed (although another developer may 
have a different perspective). You will probably get this fixed the fastest by 
Googling the error message and trying to fix it yourself. Otherwise, using the 
GUI is not really necessary and you can use the interface from a Python or 
iPython prompt quite easily.

Original comment by bryan.w....@gmail.com on 9 Sep 2014 at 12:05

GoogleCodeExporter commented 9 years ago
Okay, short debugging show that simple replacing line 107 in file 
mixmaster/ControlPanel.py from
    button.pack(side=LEFT)
to
    button.grid()
solves the problem.
Can anybody check (and probably commit) this?

Original comment by Alexande...@googlemail.com on 9 Sep 2014 at 2:30

GoogleCodeExporter commented 9 years ago
Looks like the correction I have proposed is not perfect.
Top menu now is displayed vertical, not horizontal.
However mixmaster is functional.

Original comment by Alexande...@googlemail.com on 9 Sep 2014 at 2:35

GoogleCodeExporter commented 9 years ago
This bug is apparently due to a change in behavior in Tcl 8.6.0 which is the 
version available in Ubuntu 14.04 (13.10 used Tcl 8.5).

This post has some information (it's an intentional change in behavior, and 
there's no generic fix): 
https://groups.google.com/forum/#!topic/comp.lang.tcl/ncxQEhQ81TI

Original comment by yarmond on 9 Sep 2014 at 11:33

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r3162.

Original comment by yarmond on 15 Sep 2014 at 6:05