Orange Forum • View topic - Failed to build

Failed to build

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

Failed to build

Postby Abhiroop » Wed Feb 20, 2013 16:04

I was trying to build the setup.py script in my Ubuntu 12.04 machine. I get the following error on running sudo python setup.py build

Code: Select all
running build
running build_py
package init file '__init__.py' not found (or not a regular file)
package init file 'OrangeCanvas/__init__.py' not found (or not a regular file)
package init file 'OrangeWidgets/__init__.py' not found (or not a regular file)
package init file 'OrangeWidgets/Associate/__init__.py' not found (or not a regular file)
package init file 'OrangeWidgets/Classify/__init__.py' not found (or not a regular file)
package init file 'OrangeWidgets/Data/__init__.py' not found (or not a regular file)
package init file 'OrangeWidgets/Evaluate/__init__.py' not found (or not a regular file)
package init file 'OrangeWidgets/Prototypes/__init__.py' not found (or not a regular file)
package init file 'OrangeWidgets/Regression/__init__.py' not found (or not a regular file)
package init file 'OrangeWidgets/Unsupervised/__init__.py' not found (or not a regular file)
package init file 'OrangeWidgets/Visualize/__init__.py' not found (or not a regular file)
package init file 'doc/__init__.py' not found (or not a regular file)
package init file '__init__.py' not found (or not a regular file)
package init file 'OrangeCanvas/__init__.py' not found (or not a regular file)
package init file 'OrangeWidgets/__init__.py' not found (or not a regular file)
package init file 'OrangeWidgets/Associate/__init__.py' not found (or not a regular file)
package init file 'OrangeWidgets/Classify/__init__.py' not found (or not a regular file)
package init file 'OrangeWidgets/Data/__init__.py' not found (or not a regular file)
package init file 'OrangeWidgets/Evaluate/__init__.py' not found (or not a regular file)
package init file 'OrangeWidgets/Prototypes/__init__.py' not found (or not a regular file)
package init file 'OrangeWidgets/Regression/__init__.py' not found (or not a regular file)
package init file 'OrangeWidgets/Unsupervised/__init__.py' not found (or not a regular file)
package init file 'OrangeWidgets/Visualize/__init__.py' not found (or not a regular file)
package init file 'doc/__init__.py' not found (or not a regular file)
running build_ext
building 'orange_include' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -Isource/include -I/usr/include/python2.7 -c source/include/lcomb.cpp -o build/temp.linux-i686-2.7/source/include/lcomb.o
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
error: command 'gcc' failed with exit status 1

I hope some1 can help me in solving the issue.

Re: Failed to build

Postby Ales » Wed Feb 20, 2013 16:12

Make sure you have the C++ compiler installed (run 'sudo apt-get install g++').

Re: Failed to build

Postby Abhiroop » Wed Feb 20, 2013 16:20

Installing c++ compiler solved the initial problem but now its giving a different error :(
Code: Select all
source/orange/ppp/contingency.ppp:12:91: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:12:91: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:12:91: error: expected ‘)’ before numeric constant
In file included from source/orange/contingency.cpp:33:0:
source/orange/ppp/contingency.ppp:12:145: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:13:91: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:13:91: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:13:91: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:13:145: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:14:60: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:14:60: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:14:60: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:14:122: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:15:126: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:15:126: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:15:126: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:15:184: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:16:126: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:16:126: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:16:126: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:16:184: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:17:168: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:17:168: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:17:168: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:17:233: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:21:44: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:21:44: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:21:44: error: expected ‘)’ before numeric constant
In file included from source/orange/contingency.cpp:33:0:
source/orange/ppp/contingency.ppp:21:259: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:32:91: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:32:91: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:32:91: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:32:150: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:33:91: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:33:91: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:33:91: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:33:150: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:34:60: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:34:60: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:34:60: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:34:127: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:35:126: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:35:126: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:35:126: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:35:189: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:36:126: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:36:126: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:36:126: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:36:189: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:37:168: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:37:168: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:37:168: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:37:238: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:41:49: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:41:49: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:41:49: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:41:289: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:51:91: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:51:91: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:51:91: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:51:154: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:52:91: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:52:91: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:52:91: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:52:154: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:53:60: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:53:60: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:53:60: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:53:131: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:54:126: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:54:126: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:54:126: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:54:193: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:55:126: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:55:126: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:55:126: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:55:193: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:56:168: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:56:168: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:56:168: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:56:242: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:60:53: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:60:53: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:60:53: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:60:313: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:71:91: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:71:91: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:71:91: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:71:154: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:72:91: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:72:91: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:72:91: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:72:154: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:73:60: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:73:60: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:73:60: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:73:131: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:74:126: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:74:126: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:74:126: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:74:193: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:75:126: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:75:126: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:75:126: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:75:193: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:76:168: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:76:168: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:76:168: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:76:242: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:80:53: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:80:53: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:80:53: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:80:313: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:91:91: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:91:91: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:91:91: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:91:153: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:92:91: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:92:91: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:92:91: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:92:153: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:93:60: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:93:60: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:93:60: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:93:130: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:94:126: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:94:126: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:94:126: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:94:192: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:95:126: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:95:126: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:95:126: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:95:192: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:96:168: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:96:168: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:96:168: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:96:241: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:100:52: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:100:52: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:100:52: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:100:307: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:110:102: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:110:102: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:110:102: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:110:156: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:111:90: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:111:90: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:111:90: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:111:149: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:115:50: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:115:50: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:115:50: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:115:90: error: expected ‘)’ before ‘}’ token
source/orange/ppp/contingency.ppp:125:107: error: ‘TYPE’ was not declared in this scope
source/orange/ppp/contingency.ppp:125:107: error: expected primary-expression before ‘)’ token
source/orange/ppp/contingency.ppp:125:107: error: expected ‘)’ before numeric constant
source/orange/ppp/contingency.ppp:125:173: error: expected ‘)’ before ‘}’ token
error: command 'gcc' failed with exit status 1


Any idea how to solve it?


Return to Questions & Support