Ticket #1105 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

Pickling classifiers fail

Reported by: miha Owned by: ales
Milestone: 2.5 Component: library
Severity: major Keywords:
Cc: Blocking:
Blocked By:


A lot of tests fail on pickling and unpickling classifiers on python 2.6. This seems to work on python 2.7.

Test results:  http://ci.biolab.si/job/orange_test/64/testReport/

Running unit tests on python2.6:

install unittest2 module (apt-get python-unittest2 on Ubuntu) cd Orange/testing/unit/tests unit2 -v test_bayes

Change History

comment:1 Changed 3 years ago by janez

  • Status changed from new to assigned
  • Owner changed from janez to ales

comment:2 Changed 3 years ago by ales

  • Status changed from assigned to closed
  • Resolution set to fixed

This was not a problem with python2.6 but gcc when building with make (orange compiled with setup.py worked fine). Fixed in r9cb46d730c8c by setting -fno-strict-aliasing compiler flag and in rbcf979ac3351 by making TCharBuffer.write* methods (presumably) standard compliant. The flag is otherwise set by distutils when building with setup.py and should remain in makefile.defs (python 2.* itself does not follow type aliasing rules).

Note: See TracTickets for help on using tickets.