Orange Forum • View topic - heatmap widget crashing

heatmap widget crashing

A place to ask questions about methods in Orange and how they are used and other general support.

heatmap widget crashing

Postby alex09 » Sun Jan 29, 2012 22:00

Hi I am new to orange canvas, was trying the heatmap widget in the bioinformatics toolbox. The moment I place the heatmap widget in the schema, orange canvas shuts down.
I was wondering if I could get some help.
Thanks,
alex

pythonw.exe has stopped working

Problem signature:
Problem Event Name: APPCRASH
Application Name: pythonw.exe
Application Version: 0.0.0.0
Application Timestamp: 4cf14062
Fault Module Name: StackHash_2101
Fault Module Version: 6.1.7601.17725
Fault Module Timestamp: 4ec49b8f
Exception Code: c0000374
Exception Offset: 000ce6c3
OS Version: 6.1.7601.2.1.0.256.4
Locale ID: 1033
Additional Information 1: 2101
Additional Information 2: 2101d2a675937c9b36e6fb30b0d8fbc8
Additional Information 3: a196
Additional Information 4: a196563f8a8de53ec83125ac96777c05

Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid= ... cid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt

Re: heatmap widget crashing

Postby Ales » Mon Jan 30, 2012 12:33

I can't duplicate this. Does this happen with any other widget? What windows version are you using
(XP, Vista or 7)?

Can you also try running Orange from the Command Prompt (http://orange.biolab.si/trac/wiki/HowTo/RunOrangeFromCMD)? Maybe it will show some more useful information before the crash.

Re: heatmap widget crashing

Postby alex09 » Mon Jan 30, 2012 23:56

I had downloaded 2 files:
1. Full package: Snapshot of Orange with Python 2.7 and required libraries
This package is recommended to those installing Orange for the first time. It includes all required libraries (Python, PythonWin, NumPy, PyQt, PyQwt ...), though it will not change any libraries you might already have.
2. Python 2.7: Snapshot of Orange Bioinformatics Add-On for Python 2.7

Does this happen with any other widget? What windows version are you using
(XP, Vista or 7)?
It does not happen with the other widgets, I even tried the other widgets on the Bioinformatics add on.
I am running it on Windows 7 Enterprise Service pack 1.

Can you also try running Orange from the Command Prompt (http://orange.biolab.si/trac/wiki/HowTo ... ngeFromCMD)?
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\sg7vc>C:\Python27\python.exe C:\Python27\Lib\site-packages\orange\Orang
eCanvas\orngCanvas.pyw
C:\Python27\lib\site-packages\orange\Orange\misc\addons.py:1475: Warning: Add-on
in directory 'C:\Users\sg7vc\AppData\Roaming/orange/add-ons\Bioinformatics' has
the same ID as the addon in 'C:\Python27\lib\site-packages\orange\add-ons\Bioin
formatics'!
warnings.warn("Add-on in directory '%s' has the same ID as the addon in '%s'!"
% (addOnDir, installed_addons[addOn.id].directory), Warning, 0)

Thoughts?
Thanks,
alex

Re: heatmap widget crashing

Postby alex09 » Thu Feb 09, 2012 22:53

I have uninstalled orange and all it's dependencies and then reinstalled all the files. But still the heatmap widget does not function.
Any thoughts?

Re: heatmap widget crashing

Postby Ales » Fri Feb 10, 2012 12:28

Can I ask you to open the widgets source file (C:\Python27\Lib\site-packages\orange\add-ons\Bioinformatics\widgets\OWHeatMap.py) with PythonWin editor and delete (or comment out) lines 250-257
Code: Select all
        try:
            self.colorCombo.setPalettes("palette", self.createColorDialog())
        except Exception, ex:
            print >> sys.stderr, ex, "Error loading saved color palettes!\nCreating new default palette!"
            self.colorSettings = None
            self.colorCombo.setPalettes("palette", self.createColorDialog())
        self.colorCombo.setCurrentIndex(self.selectedSchemaIndex)
        self.setColor(self.selectedSchemaIndex, update=False)

then run orange again and place the widget on the canvas (if it survives it won't be functional, but at least the problem will be isolated).

Re: heatmap widget crashing

Postby alex09 » Fri Feb 10, 2012 19:38

I am new to Python.
I typed in "C:\Python27\Lib\site-packages\orange\add-ons\Bioinformatics\widgets\OWHeatMap.py"
and got invalid syntax message, but I am not able to figure out the error.

PythonWin 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on win32.
Portions Copyright 1994-2008 Mark Hammond - see 'Help/About PythonWin' for further copyright information.
>>> C:\Python27\Lib\site-packages\orange\add-ons\Bioinformatics\widgets\OWHeatMap.py
Traceback ( File "<interactive input>", line 1
C:\Python27\Lib\site-packages\orange\add-ons\Bioinformatics\widgets\OWHeatMap.py
^
SyntaxError: invalid syntax

Thoughts?
Thanks, really appreciate the help.

Re: heatmap widget crashing

Postby Ales » Fri Feb 10, 2012 21:28

Use Menu -> File -> Open to open the file.

Re: heatmap widget crashing

Postby alex09 » Fri Feb 10, 2012 22:11

I opened the source file. Removed the the lines 250-257.
Then ran orange again, placed the file and heat map widget on the canvas.
Loaded the data into the file.
It shut the program and gave the same error as in my first post.
Thoughts?
Thanks,
alex

Re: heatmap widget crashing

Postby Ales » Wed Feb 15, 2012 10:50

What type (size) of data do you input into the widget? Does the crash also happen with any data from the documentation datasets included in orange (for instance brow-selected.tab)


Return to Questions & Support