Orange Forum • View topic - 9 Errors trying to install Orange

9 Errors trying to install Orange

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

9 Errors trying to install Orange

Postby mikebmassey » Wed Jun 20, 2012 3:01

Hello - I tried to install Orange via pip and easy_install buy got 9 errors each time. I've searched for the errors on this forum and google, but didn't find anything remotely helpful.

Any tips on how I can get Orange installed?

pip:
Code: Select all
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:292:16: error: cast from pointer to smaller type 'int' loses information

           || (int(counter->ptr) < int(ps.counter->ptr)); }

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

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},

                                                                       ^

9 errors generated.

error: command '/usr/bin/clang' failed with exit status 1


easy_install
Code: Select all
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:292:16: error: cast from pointer to smaller type 'int' loses information
           || (int(counter->ptr) < int(ps.counter->ptr)); }
               ^~~~~~~~~~~~~~~~
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, ...
                                                        ^
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},
                                                                       ^
9 errors generated.
error: Setup script exited with error: command '/usr/bin/clang' failed with exit status 1

Re: 9 Errors trying to install Orange

Postby Ales » Wed Jun 20, 2012 9:27

From the output, I take it you are using clang compiler. At the moment it is not supported. You will have to use gcc (you can use the standard CC and CXX env variables to specify the compiler)


Return to Questions & Support