-
Type: Improvement
-
Resolution: Gone away
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
If you have a tree that was configured and built with PYTHON=python2, and then later configure again with PYTHON=python3, not all needed files may be regenerated properly, even after doing make distclean. After rebuilding, there may be confusing results (see below). A similar problem can occur when changing SWIG versions.
Result of rebuild:
ERROR: test_debug_mode02.test_debug_mode02.test_checkpoint_retain ---------------------------------------------------------------------- Traceback (most recent call last): File "/mnt/data0/sue/wt.4712/test/suite/test_debug_mode02.py", line 92, in test_checkpoint_retain self.advance_log_checkpoint() File "/mnt/data0/sue/wt.4712/test/suite/test_debug_mode02.py", line 78, in advance_log_checkpoint c[idx] = 1 File "/mnt/data0/sue/wt.4712/build_posix/lang/python/wiredtiger/__init__.py", line 448, in __setitem__ self.set_key(key) File "/mnt/data0/sue/wt.4712/build_posix/lang/python/wiredtiger/__init__.py", line 411, in set_key self._set_key(self._key) TypeError: in method 'Cursor__set_key', argument 2 of type 'void *'
Even though we don't support Python2, we should clean up SWIG generated files when doing make distclean. The workaround is to remove lang/python/wiredtiger_wrap.c.
- is duplicated by
-
WT-6091 make distclean should remove SWIG generated wrapper files
- Closed