johannesring / scitools

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

Installation from svn fails if backend is vtk #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. svn checkout http://scitools.googlecode.com/svn/trunk/ scitools-read-only
2. cd scitools-read-only
3. sudo python setup.py install

What is the expected output? What do you see instead?
Instead of the usual setup messages, I get this:

scitools.easyviz backend is vtk
running install
running build
running build_py
running build_scripts
running install_lib
byte-compiling
/usr/local/lib/python2.6/dist-packages/scitools/convergencerate.py to
convergencerate.pyc
Sorry: IndentationError: ('unexpected indent',
('/usr/local/lib/python2.6/dist-packages/scitools/convergencerate.py', 249,
4, '    error_model = staticmethod(error_model)\n'))
running install_scripts
changing mode of /usr/local/bin/pyreport to 755
changing mode of /usr/local/bin/scitools to 755
running install_data
running install_egg_info
Removing /usr/local/lib/python2.6/dist-packages/SciTools-0.6.egg-info
Writing /usr/local/lib/python2.6/dist-packages/SciTools-0.6.egg-info
Traceback (most recent call last):
  File "setup.py", line 75, in <module>
    os.path.join("doc", "man", "man1", "pyreport.1.gz")])],
  File "/usr/lib/python2.6/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.6/distutils/dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.6/distutils/command/install.py", line 644, in run
    sys_path = map(os.path.normpath, sys.path)
  File "/usr/lib/python2.6/posixpath.py", line 312, in normpath
    initial_slashes = path.startswith('/')
AttributeError: '_tkinter.Tcl_Obj' object has no attribute 'startswith'

What version of the product are you using? On what operating system?
scitools Revision 511
python 2.6.4
Kubuntu 9.10 64bit

Please provide any additional information below.
I had scitools previously installed via the apt package management system.
Before installing the svn-version of scitools, I removed the package with
the normal "apt-get remove python-scitools" command.

The reason for the crash seems to be the setting "backend = vtk" in the
.scitools.cfg-file that allready existed during installation.
However, setting the backend to matplotlib for the installation solved my
problem.

Original issue reported on code.google.com by d.schlab...@gmail.com on 22 Jan 2010 at 9:29

GoogleCodeExporter commented 9 years ago
Thanks for your report. I cannot reproduce this in a Ubuntu 9.10 64 bit chroot 
but I
believe that this is not a bug in SciTools. It seems to be a well-known issue 
which
is documented at python.org:

  http://www.python.org/doc/2.3/whatsnew/node18.html

However, could you try to add

  Tkinter.wantobjects = 0

after the line where Tkinter is imported (line 13) in 
lib/scitools/easyviz/vtk_.py
and see if that fixes you problem?

Original comment by johannes...@gmail.com on 25 Jan 2010 at 5:04

GoogleCodeExporter commented 9 years ago
Thanks! That works.
Does that have any side-effects that prevents this fix from entering the 
scitools-code?

Original comment by d.schlab...@gmail.com on 25 Jan 2010 at 5:43

GoogleCodeExporter commented 9 years ago
It does not seem to have any side-effects on my system so I will check it in.
Thanks for verifying that it works.

Original comment by johannes...@gmail.com on 26 Jan 2010 at 9:54

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

Original comment by johannes...@gmail.com on 26 Jan 2010 at 9:57