Orange Forum • View topic - orange canvas is not working

orange canvas is not working

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

Re: orange canvas is not working

Postby Ales » Mon Apr 15, 2013 9:52

PenguinJunk wrote:Was this missing from the snapshot or did I do something wrong (I don't remember having any options)?
Maybe you downloaded the 'Pure Orange' installer which does not contain the installers for the required libraries?
Try downloading orange-win-w-python-snapshot-hg-2013-04-15-py2.7.exe. Does it ask to install required packages?

Re: orange canvas is not working

Postby novaczkisz » Wed Jun 05, 2013 11:16

Hi,

Just installed Orange on a Win7(64 bit) system. Used the latest full package installer. All installation steps finished successfully. The Orange shortcut appears on the desktop, but the canvas won't start. Browsing previous post i could not find a solution, but saw that the output of the following command is required for solving these type of problems, so i copied it here:
C:\Python27\python.exe C:\Python27\Lib\site-packages\Orange\OrangeCanvas\orngCanvas.pyw
######################

C:\Python27\Lib\site-packages\Orange\OrangeCanvas>C:\Python27\python.exe C:\Python27\Lib\site-packages\Orange\OrangeCanvas\orngCanvas.pyw
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:27: UserWarning: Some features will be disabled due to failing modules
Importing 'misc' failed: DLL load failed: The specified module could not be found.
_import("misc")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:29: UserWarning: Importing 'data.io' failed: 'module' object has no attribute 'core'
_import("data.io")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:31: UserWarning: Importing 'data.outliers' failed: 'module' object has no attribute 'misc'
_import("data.outliers")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:36: UserWarning: Importing 'data.imputation' failed: 'module' object has no attribute 'core'
_import("data.imputation")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:43: UserWarning: Importing 'feature.imputation' failed: 'module' object has no attribute 'cor
e'
_import("feature.imputation")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:44: UserWarning: Importing 'feature.scoring' failed: 'module' object has no attribute 'core'
_import("feature.scoring")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:45: UserWarning: Importing 'feature.selection' failed: 'module' object has no attribute 'core
'
_import("feature.selection")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:47: UserWarning: Importing 'network' failed: 'module' object has no attribute 'core'
_import("network")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:59: UserWarning: Importing 'classification.tree' failed: 'module' object has no attribute 'co
re'
_import("classification.tree")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:61: UserWarning: Importing 'classification.rules' failed: 'module' object has no attribute 'c
ore'
_import("classification.rules")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:63: UserWarning: Importing 'classification.lookup' failed: 'module' object has no attribute '
core'
_import("classification.lookup")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:64: UserWarning: Importing 'classification.bayes' failed: 'module' object has no attribute 'm
isc'
_import("classification.bayes")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:65: UserWarning: Importing 'classification.svm' failed: 'module' object has no attribute 'cor
e'
_import("classification.svm")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:66: UserWarning: Importing 'classification.logreg' failed: 'module' object has no attribute '
core'
_import("classification.logreg")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:70: UserWarning: Importing 'optimization' failed: 'module' object has no attribute 'core'
_import("optimization")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:73: UserWarning: Importing 'projection.linear' failed: 'module' object has no attribute 'core
'
_import("projection.linear")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:74: UserWarning: Importing 'projection.mds' failed: 'module' object has no attribute 'core'
_import("projection.mds")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:75: UserWarning: Importing 'projection.som' failed: 'module' object has no attribute 'core'
_import("projection.som")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:76: UserWarning: Importing 'projection.pca' failed: 'module' object has no attribute 'core'
_import("projection.pca")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:79: UserWarning: Importing 'ensemble.bagging' failed: 'module' object has no attribute 'misc'

_import("ensemble.bagging")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:80: UserWarning: Importing 'ensemble.boosting' failed: 'module' object has no attribute 'misc
'
_import("ensemble.boosting")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:81: UserWarning: Importing 'ensemble.forest' failed: 'module' object has no attribute 'core'
_import("ensemble.forest")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:85: UserWarning: Importing 'regression.earth' failed: 'module' object has no attribute 'core'

_import("regression.earth")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:86: UserWarning: Importing 'regression.lasso' failed: 'module' object has no attribute 'core'

_import("regression.lasso")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:87: UserWarning: Importing 'regression.linear' failed: 'module' object has no attribute 'core
'
_import("regression.linear")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:89: UserWarning: Importing 'regression.pls' failed: 'module' object has no attribute 'core'
_import("regression.pls")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:90: UserWarning: Importing 'regression.tree' failed: 'module' object has no attribute 'core'
_import("regression.tree")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:92: UserWarning: Importing 'multitarget' failed: 'module' object has no attribute 'core'
_import("multitarget")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:93: UserWarning: Importing 'multitarget.tree' failed: 'module' object has no attribute 'core'

_import("multitarget.tree")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:95: UserWarning: Importing 'multilabel' failed: 'module' object has no attribute 'misc'
_import("multilabel")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:96: UserWarning: Importing 'multilabel.multibase' failed: 'module' object has no attribute 'm
isc'
_import("multilabel.multibase")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:97: UserWarning: Importing 'multilabel.br' failed: 'module' object has no attribute 'misc'
_import("multilabel.br")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:98: UserWarning: Importing 'multilabel.lp' failed: 'module' object has no attribute 'misc'
_import("multilabel.lp")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:99: UserWarning: Importing 'multilabel.mlknn' failed: 'module' object has no attribute 'misc'

_import("multilabel.mlknn")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:100: UserWarning: Importing 'multilabel.brknn' failed: 'module' object has no attribute 'misc
'
_import("multilabel.brknn")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:101: UserWarning: Importing 'multilabel.mulan' failed: 'module' object has no attribute 'misc
'
_import("multilabel.mulan")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:105: UserWarning: Importing 'preprocess' failed: 'module' object has no attribute 'core'
_import("preprocess")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:106: UserWarning: Importing 'preprocess.scaling' failed: 'module' object has no attribute 'co
re'
_import("preprocess.scaling")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:108: UserWarning: Importing 'distance' failed: 'module' object has no attribute 'core'
_import("distance")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:117: UserWarning: Importing 'evaluation.scoring' failed: 'module' object has no attribute 'co
re'
_import("evaluation.scoring")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:118: UserWarning: Importing 'evaluation.testing' failed: 'module' object has no attribute 'co
re'
_import("evaluation.testing")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:119: UserWarning: Importing 'evaluation.reliability' failed: 'module' object has no attribute
'core'
_import("evaluation.reliability")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:122: UserWarning: Importing 'clustering.kmeans' failed: 'module' object has no attribute 'cor
e'
_import("clustering.kmeans")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:123: UserWarning: Importing 'clustering.hierarchical' failed: 'module' object has no attribut
e 'core'
_import("clustering.hierarchical")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:124: UserWarning: Importing 'clustering.consensus' failed: 'module' object has no attribute '
core'
_import("clustering.consensus")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:126: UserWarning: Importing 'misc' failed: 'module' object has no attribute 'core'
_import("misc")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:127: UserWarning: Importing 'misc.environ' failed: 'module' object has no attribute 'core'
_import("misc.environ")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:128: UserWarning: Importing 'misc.counters' failed: 'module' object has no attribute 'core'
_import("misc.counters")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:129: UserWarning: Importing 'misc.addons' failed: 'module' object has no attribute 'core'
_import("misc.addons")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:130: UserWarning: Importing 'misc.render' failed: 'module' object has no attribute 'core'
_import("misc.render")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:131: UserWarning: Importing 'misc.selection' failed: 'module' object has no attribute 'core'
_import("misc.selection")
D:\userdata\novaczki\Application Data\Python\Python27\site-packages\Orange\__init__.py:132: UserWarning: Importing 'misc.serverfiles' failed: 'module' object has no attribute 'core
'
_import("misc.serverfiles")
Traceback (most recent call last):
File "C:\Python27\Lib\site-packages\Orange\OrangeCanvas\orngCanvas.pyw", line 8, in <module>
import orngEnviron, Orange.utils.addons
File "C:\Python27\lib\site-packages\Orange\orng\orngEnviron.py", line 1, in <module>
import Orange.utils.environ as environ
ImportError: No module named utils.environ

######################

Br,
Szabolcs

Update: i have installed Qt. So the rest of the UserWarnings disappeared. The final error remains.:

######################################################################
C:\Python27\Lib\site-packages\Orange\OrangeCanvas>C:\Python27\python.exe C:\Python27\Lib\site-packages\Orange\OrangeCanvas\orngCanvas.pyw
Traceback (most recent call last):
File "C:\Python27\Lib\site-packages\Orange\OrangeCanvas\orngCanvas.pyw", line 8, in <module>
import orngEnviron, Orange.utils.addons
File "C:\Python27\lib\site-packages\Orange\orng\orngEnviron.py", line 1, in <module>
import Orange.utils.environ as environ
ImportError: No module named utils.environ
#######################################################################

Re: orange canvas is not working

Postby Ales » Thu Jun 06, 2013 10:27

novaczkisz wrote:Browsing previous post i could not find a solution, but saw that the output of the following command is required for solving these type of problems, so i copied it here:
C:\Python27\python.exe C:\Python27\Lib\site-packages\Orange\OrangeCanvas\orngCanvas.pyw

Actually the main starting script for starting Orange Canvas has changed, this should now read
Code: Select all
C:\Python27\python.exe -m Orange.OrangeCanvas.main

or alternatively
Code: Select all
C:\Python27\python.exe C:\Python27\Lib\site-packages\Orange\OrangeCanvas\main.py


Also can you run
Code: Select all
C:\Python27\python.exe -c"import Orange.utils"
This should provide more details about why Orange.utils fails to load.

Re: orange canvas is not working

Postby monarchi » Mon Jun 10, 2013 1:12

Hello -

I have just installed the full Orange package even though I already had Python 2.7.4 already installed together with numpy, mathplotlib, and scipy. It appears that the other required modules installed correctly. I am running 32-bit Python on a Win 7 Pro x64 machine.

When I click on the orange, pythonw.exe begins to execute and then terminates. I hope that there is something trivial that I have missed because Orange looks like the perfect tool for some analyses/visualizations that I am trying to perform. Any assistance/guidance would be greatly appreciated!

Thanks.

Best,
David

Re: orange canvas is not working

Postby Ales » Mon Jun 10, 2013 11:17

monarchi wrote:When I click on the orange, pythonw.exe begins to execute and then terminates.
Can you please run
Code: Select all
C:\Python27\python.exe -m Orange.OrangeCanvas.main
from the windows command prompt and post the output.

Re: orange canvas is not working

Postby monarchi » Mon Jun 10, 2013 17:15

Thanks for the quick reply. Here is the output:

C:\>C:\Python27\python.exe -m Orange.OrangeCanvas.main
Traceback (most recent call last):
File "C:\Python27\lib\runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "C:\Python27\lib\runpy.py", line 72, in _run_code
exec code in run_globals
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\main.py", line 18, in <module>
from PyQt4.QtGui import QFont, QColor
ImportError: PyCapsule_Import could not import module "sip"

Re: orange canvas is not working

Postby Ales » Tue Jun 11, 2013 9:55

monarchi wrote:from PyQt4.QtGui import QFont, QColor
ImportError: PyCapsule_Import could not import module "sip"

This seems like a broken PyQt4 installation.
Did you install PyQt4 separately or did you use the one that comes with the Orange (full) installer?

Re: orange canvas is not working

Postby monarchi » Tue Jun 11, 2013 15:25

I used the one that comes with the full Orange installer. Is there a way I can reinstall PyQt4 without reinstalling everything, or should I just start over?

Thanks for you help!

Re: orange canvas is not working

Postby Ales » Tue Jun 11, 2013 15:54

You can uninstall individual components from the windows Control Panel / Add remove programs

However before that could you please also run
Code: Select all
echo %PATH%
and
Code: Select all
C:\Python27\python.exe -c"import sip"

from the Command Prompt and post the output of both commands.

Re: orange canvas is not working

Postby monarchi » Tue Jun 11, 2013 19:09

Hi Ales - I ran the code that you gave me; the output is below. To my untrained eye, it appears that perhaps I need to modify the path environment variable. Do you agree? If so, can you tell me where I might find the sip module?

Thanks again.
=====================================================================================

C:\Python27>echo %PATH%
C:\Python27\Lib\site-packages\PyQt4\bin;C:\Python27\;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Program Files\SAS\SASFoundation\9.2\tmine\s
asexe;C:\Windows\system32;C:\Windows;C:\Windows\system32\wbem;c:\program files (x86)\common files\acronis\snapapi\;c:\program files (x86)\ati technologies\ati.ace\core-static;c:\pr
ogram files\ibm\gsk8\lib64;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\PROGRA~1\IBM\SQLLIB\SAMPLES\REPL;C:\Program Files\SAS\SharedFiles(32)\Formats;C:\Program Fi
les (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Micr
osoft Visual Studio 10.0\VC\bin;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE;C:\Program Files (x86)\Graphviz2.26.3\bin;;C:\Program Files (x86)\Ericom Software\Er
icom Blaze Server\;C:\Program Files (x86)\010 Editor v3;C:\Program Files\MATLAB\R2012b\runtime\win64;C:\Program Files\MATLAB\R2012b\bin;C:\Program Files\MATLAB\R2011a\runtime\win64
;C:\Program Files\MATLAB\R2011a\bin;c:\openssl-0.9.8l;C:\Program Files\Microsoft Windows Performance Toolkit\;C:\Program Files (x86)\Acronis\TrueImageHome\;C:\Windows\System32\Wind
owsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\GNU\GnuPG\pub;C:\Python27\;C:\Python27\Lib\idlelib
; C:\Windows\system32\python27.zip; C:\Python27\DLLs; C:\Python27\lib; C:\Python27\lib\plat-win; C:\Python27\lib\lib-tk; C:\Python27; C:\Python27\lib\site-packages

C:\Python27>python.exe -c"import sip"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: DLL load failed: The specified module could not be found.

C:\Python27>

Re: orange canvas is not working

Postby monarchi » Thu Jun 13, 2013 21:43

Update from my last post:

I completely uninstalled all modules and then reinstalled Orange using the full (105MB) package. The results are the same. I'm using Python 2.7.4; could that be the problem?

Any assistance/advice would be greatly appreciated! My inability to get Orange running is a major roadblock on my research. :-(

Cheers,
David

Re: orange canvas is not working

Postby Ales » Fri Jun 14, 2013 10:45

monarchi wrote: I'm using Python 2.7.4; could that be the problem?
Probably not.

The problem is probably with some missing and/or incompatible .dll files that the sip module is linked against.

First try running
Code: Select all
python -v -c"import sip"

Does that provide any clues?

Then try it again but this time clean unnecessary entries from your PATH leaving only python and system directories there.
Code: Select all
set PATH=C:\Python27\Lib\site-packages\PyQt4\bin;C:\Python27;C:\Windows\system32;C:\Windows;C:\Windows\system32\wbem

python -v -c"import sip"


Does that work?

You could also try running Dependency Walker on C:\Python27\Lib\site-packages\sip.pyd and see if that reports any problems.
Note that depends.exe comes with some versions of Visual Studio and/or various Microsoft SDK's so you might already have it installed.

Re: orange canvas is not working

Postby monarchi » Sat Jun 15, 2013 0:16

Hi Ales -

Sorry for the delayed response -- a lovely day of meetings. :-(

I tried everything you suggested. The command
python -v -c"import sip"
generated the same results both before and after I modified the path as you specified. I didn't include the output because each one is about 150 lines long and I didn't want to clog up the forum. (I couldn't see how to attach a file either.)

I then loaded the dependency walker and ran it on sip.pyd. It told me that it couldn't find Python27.dll. I checked my system and found a copy of it under SysWOW64, so I included that directory in my path, and also copied it into the sip.pyd directory. (I'm a bit confused here. I have installed the 32-bit version of Python in order to be compatible with some other software that uses it, yet I thought the SysWOW64 directory was for 64-bit dlls.)

When I run the dependency walker now on sip.pyd, I pick up eight new dlls that are missing. Five of them are of the form API-MS-WIN-CORE-xxxxxxxx; one is API-MS-WIN-SHCORE-xxxxxx; one id DCOMP.DLL; and the last one is IESHIMS.DLL.

Any idea what I have fouled up here? I don't want to just wildly put copies of dlls everywhere.

I really appreciate your help; thanks again!!!

Cheers,
David

Re: orange canvas is not working

Postby Ales » Mon Jun 17, 2013 15:23

SysWOW64 is a compatibility layer for running 32 bit programs on 64 bit windows (so SysWOW64 is the correct place for the .dll). Windows should automatically search the directory for .dll's (instead of system32) when executing 32 bit programs. Dependency walker should be aware of this (it displays C:\windows\system32\PYTHON27.DLL on my machine even though the dll is not there but in SysWOW64).
What about if you run Dependency Walker on C:\Python27\python.exe. Does it find the python27.dll.

Re: orange canvas is not working

Postby monarchi » Mon Jun 17, 2013 16:55

Thanks for the information re SysWOW64, Alex. I'm always learning. :-)

I ran Dependency Walker on C:\Python27\python.exe, and it generated the same error re PYTHON27.DLL. Specifically it said
"Error opening file. The system cannot find the file specified(2)."
Yet I can execute python.exe from a command line and can also open PyCharm, although perhaps neither of those actions require PYTHON27.DLL.

Any suggestions?

Thanks again.

David

PreviousNext

Return to Questions & Support