Orange Forum • View topic - Error during installation

Error during installation

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

Error during installation

Postby sloria1 » Thu Apr 19, 2012 17:05

I get the following error when trying to install Orange with pip or building from source:

Code: Select all
Stevens-MacBook-Air-2:Orange-2.5.0a5 $ pip install orange
Downloading/unpacking orange
  Running setup.py egg_info for package orange
   
    package init file 'Orange/OrangeCanvas/__init__.py' not found (or not a regular file)
    package init file 'Orange/OrangeWidgets/Associate/__init__.py' not found (or not a regular file)
    package init file 'Orange/OrangeWidgets/Classify/__init__.py' not found (or not a regular file)
    package init file 'Orange/OrangeWidgets/Data/__init__.py' not found (or not a regular file)
    package init file 'Orange/OrangeWidgets/Evaluate/__init__.py' not found (or not a regular file)
    package init file 'Orange/OrangeWidgets/Prototypes/__init__.py' not found (or not a regular file)
    package init file 'Orange/OrangeWidgets/Regression/__init__.py' not found (or not a regular file)
    package init file 'Orange/OrangeWidgets/Unsupervised/__init__.py' not found (or not a regular file)
    package init file 'Orange/OrangeWidgets/Visualize/__init__.py' not found (or not a regular file)
    package init file 'Orange/OrangeWidgets/Visualize Qt/__init__.py' not found (or not a regular file)
    no previously-included directories found matching 'source/orangeqt/build'
    no previously-included directories found matching 'source/*/ppp'
Requirement already satisfied (use --upgrade to upgrade): numpy in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from orange)
Installing collected packages: orange
  Running setup.py install for orange
    package init file 'Orange/OrangeCanvas/__init__.py' not found (or not a regular file)
    package init file 'Orange/OrangeWidgets/Associate/__init__.py' not found (or not a regular file)
    package init file 'Orange/OrangeWidgets/Classify/__init__.py' not found (or not a regular file)
    package init file 'Orange/OrangeWidgets/Data/__init__.py' not found (or not a regular file)
    package init file 'Orange/OrangeWidgets/Evaluate/__init__.py' not found (or not a regular file)
    package init file 'Orange/OrangeWidgets/Prototypes/__init__.py' not found (or not a regular file)
    package init file 'Orange/OrangeWidgets/Regression/__init__.py' not found (or not a regular file)
    package init file 'Orange/OrangeWidgets/Unsupervised/__init__.py' not found (or not a regular file)
    package init file 'Orange/OrangeWidgets/Visualize/__init__.py' not found (or not a regular file)
    package init file 'Orange/OrangeWidgets/Visualize Qt/__init__.py' not found (or not a regular file)
    gcc-4.2 not found, using clang instead
    building 'Orange.orange' extension
    /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python ../pyxtract/defvectors.py
    /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python ../pyxtract/pyprops.py -n orange
    /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python ../pyxtract/pyxtract.py -m -n orange lib_kernel.cpp lib_components.cpp lib_preprocess.cpp lib_learner.cpp lib_io.cpp lib_vectors.cpp cls_example.cpp cls_value.cpp cls_orange.cpp cls_misc.cpp functions.cpp orange.cpp
    Parsing lib_kernel.cpp
    Parsing lib_components.cpp
    Parsing lib_preprocess.cpp
    Parsing lib_learner.cpp
    Parsing lib_io.cpp
    Parsing lib_vectors.cpp
    Parsing cls_example.cpp
    Parsing cls_value.cpp
    Parsing cls_orange.cpp
    Parsing cls_misc.cpp
    Parsing functions.cpp
    Parsing orange.cpp
    Warning: class 'PearsonCorrelation' will not be picklable
    Warning: class 'ItemsetNodeProxy' will not be picklable
    clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -INone -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c source/orange/assoc.cpp -o build/temp.macosx-10.6-intel-2.7/source/orange/assoc.o -fPIC -fpermissive -fno-common -w -DDARWIN -DORANGE_EXPORTS
    clang: warning: argument unused during compilation: '-fpermissive'
    In file included from source/orange/assoc.cpp:25:
    In file included from source/orange/random.hpp:26:
    In file included from source/orange/root.hpp:25:
    source/orange/garbage.hpp:221:9: error: use of undeclared identifier 'raiseError'
            raiseError("bad cast from %s to %s", typeid(U).name(), typeid(T).name());
            ^
    source/orange/garbage.hpp:253:7: error: use of undeclared identifier 'raiseError'
          raiseError("Orange internal error: NULL pointer to '%s'", TYPENAME(typeid(T)));
          ^
    source/orange/garbage.hpp:261:7: error: use of undeclared identifier 'raiseError'
          raiseError("Orange internal error: NULL pointer to '%s'", TYPENAME(typeid(T)));
          ^
    source/orange/garbage.hpp:301:7: error: use of undeclared identifier 'raiseError'
          raiseError("Orange internal error: NULL pointer to '%s'", TYPENAME(typeid(T)));
          ^
    source/orange/garbage.hpp:312:7: error: use of undeclared identifier 'raiseError'
          raiseError("Orange internal error: NULL pointer to '%s'", TYPENAME(typeid(T)));
          ^
    In file included from source/orange/assoc.cpp:27:
    source/orange/examplegen.hpp:143:38: error: expected member name or ';' after declaration specifiers
      TExampleIterator::TExampleIterator(const TExampleIterator &other);
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
    source/orange/examplegen.hpp:143:38: error: expected ')'
    source/orange/examplegen.hpp:143:37: note: to match this '('
      TExampleIterator::TExampleIterator(const TExampleIterator &other);
                                        ^
    source/orange/assoc.cpp:33:1: error: explicit specialization of 'st_classDescription' after instantiation
    DEFINE_TOrangeVector_classDescription(PAssociationRule, "TAssociationRules", true, ORANGE_API)
    ^
    source/orange/orvector.hpp:105:57: note: expanded from macro 'DEFINE_TOrangeVector_classDescription'
        TClassDescription TOrangeVector< _TYPE, _WRAPPED >::st_classDescription = { _NAME, &typeid(TOrangeVector< _TYPE, _WRAPPED >), &TOrange::st_classDescription, TOrange_properties, TOrange_components };
                                                            ^
    source/orange/ppp/assoc.ppp:111:72: note: implicit instantiation first required here
      {"rules", "association rules", &typeid(POrange), &TAssociationRules::st_classDescription, offsetof(TAssociationClassifier, rules), false, false, 0},
                                                                           ^
    8 errors generated.
    error: command 'clang' failed with exit status 1
    Complete output from command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools;__file__='/Users/sloria1/Orange-2.5.0a5/build/orange/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/vt/lmct9__14qvchm7mp8977x7r0000gn/T/pip-KnGK3c-record/install-record.txt:
    running install

running build

running build_py

package init file 'Orange/OrangeCanvas/__init__.py' not found (or not a regular file)

package init file 'Orange/OrangeWidgets/Associate/__init__.py' not found (or not a regular file)

package init file 'Orange/OrangeWidgets/Classify/__init__.py' not found (or not a regular file)

package init file 'Orange/OrangeWidgets/Data/__init__.py' not found (or not a regular file)

package init file 'Orange/OrangeWidgets/Evaluate/__init__.py' not found (or not a regular file)

package init file 'Orange/OrangeWidgets/Prototypes/__init__.py' not found (or not a regular file)

package init file 'Orange/OrangeWidgets/Regression/__init__.py' not found (or not a regular file)

package init file 'Orange/OrangeWidgets/Unsupervised/__init__.py' not found (or not a regular file)

package init file 'Orange/OrangeWidgets/Visualize/__init__.py' not found (or not a regular file)

package init file 'Orange/OrangeWidgets/Visualize Qt/__init__.py' not found (or not a regular file)

running build_ext

gcc-4.2 not found, using clang instead

building 'Orange.orange' extension

running pyxtract for Orange.orange

/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python ../pyxtract/defvectors.py

/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python ../pyxtract/pyprops.py -n orange

/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python ../pyxtract/pyxtract.py -m -n orange lib_kernel.cpp lib_components.cpp lib_preprocess.cpp lib_learner.cpp lib_io.cpp lib_vectors.cpp cls_example.cpp cls_value.cpp cls_orange.cpp cls_misc.cpp functions.cpp orange.cpp

Parsing lib_kernel.cpp

Parsing lib_components.cpp

Parsing lib_preprocess.cpp

Parsing lib_learner.cpp

Parsing lib_io.cpp

Parsing lib_vectors.cpp

Parsing cls_example.cpp

Parsing cls_value.cpp

Parsing cls_orange.cpp

Parsing cls_misc.cpp

Parsing functions.cpp

Parsing orange.cpp

Warning: class 'PearsonCorrelation' will not be picklable

Warning: class 'ItemsetNodeProxy' will not be picklable

clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -INone -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c source/orange/assoc.cpp -o build/temp.macosx-10.6-intel-2.7/source/orange/assoc.o -fPIC -fpermissive -fno-common -w -DDARWIN -DORANGE_EXPORTS

clang: warning: argument unused during compilation: '-fpermissive'

In file included from source/orange/assoc.cpp:25:

In file included from source/orange/random.hpp:26:

In file included from source/orange/root.hpp:25:

source/orange/garbage.hpp:221:9: error: use of undeclared identifier 'raiseError'

        raiseError("bad cast from %s to %s", typeid(U).name(), typeid(T).name());

        ^

source/orange/garbage.hpp:253:7: error: use of undeclared identifier 'raiseError'

      raiseError("Orange internal error: NULL pointer to '%s'", TYPENAME(typeid(T)));

      ^

source/orange/garbage.hpp:261:7: error: use of undeclared identifier 'raiseError'

      raiseError("Orange internal error: NULL pointer to '%s'", TYPENAME(typeid(T)));

      ^

source/orange/garbage.hpp:301:7: error: use of undeclared identifier 'raiseError'

      raiseError("Orange internal error: NULL pointer to '%s'", TYPENAME(typeid(T)));

      ^

source/orange/garbage.hpp:312:7: error: use of undeclared identifier 'raiseError'

      raiseError("Orange internal error: NULL pointer to '%s'", TYPENAME(typeid(T)));

      ^

In file included from source/orange/assoc.cpp:27:

source/orange/examplegen.hpp:143:38: error: expected member name or ';' after declaration specifiers

  TExampleIterator::TExampleIterator(const TExampleIterator &other);

  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^

source/orange/examplegen.hpp:143:38: error: expected ')'

source/orange/examplegen.hpp:143:37: note: to match this '('

  TExampleIterator::TExampleIterator(const TExampleIterator &other);

                                    ^

source/orange/assoc.cpp:33:1: error: explicit specialization of 'st_classDescription' after instantiation

DEFINE_TOrangeVector_classDescription(PAssociationRule, "TAssociationRules", true, ORANGE_API)

^

source/orange/orvector.hpp:105:57: note: expanded from macro 'DEFINE_TOrangeVector_classDescription'

    TClassDescription TOrangeVector< _TYPE, _WRAPPED >::st_classDescription = { _NAME, &typeid(TOrangeVector< _TYPE, _WRAPPED >), &TOrange::st_classDescription, TOrange_properties, TOrange_components };

                                                        ^

source/orange/ppp/assoc.ppp:111:72: note: implicit instantiation first required here

  {"rules", "association rules", &typeid(POrange), &TAssociationRules::st_classDescription, offsetof(TAssociationClassifier, rules), false, false, 0},

                                                                       ^

8 errors generated.

error: command 'clang' failed with exit status 1


OS: Mac OS X 10.7.3
Python 2.7.3
GCC 4.2.1

Thank you in advance,

Steve

Re: Error during installation

Postby Ales » Fri Apr 20, 2012 10:10

sloria1 wrote:
Code: Select all
error: command 'clang' failed with exit status 1


You are using the clang compiler, not gcc. Can you please use gcc to build orange. Try running:
Code: Select all
export CC=gcc
export CXX=g++
python setup.py install

Re: Error during installation

Postby sloria1 » Fri Apr 20, 2012 18:20

Ales wrote:
sloria1 wrote:[
You are using the clang compiler, not gcc. Can you please use gcc to build orange. Try running:
Code: Select all
export CC=gcc
export CXX=g++
python setup.py install


I tried that, and I still get the error:

Code: Select all
error: command 'gcc' failed with exit status 1

Re: Error during installation

Postby sloria1 » Sun Apr 22, 2012 6:49

Solved the problem. Xcode 4 doesn't actually have gcc-4.2. It uses the new LLVM compilers. it's just a matter of doing:

Code: Select all
export CC=llvm-gcc-4.2
export CXX=llvm-g++-4.2
python setup.py build
python setup.py install


And it works!

Re: Error during installation

Postby Swetabh » Sun Apr 22, 2012 8:31

I tried this and I get the error.

error: command 'llvm-gcc-4.2' failed with exit status 255

What should I do?

Re: Error during installation

Postby sloria1 » Mon Apr 23, 2012 2:10

Make sure you have the latest version of Xcode (4.3) installed. This comes bundled with the LLVM compilers.


Return to Questions & Support



cron