After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 752203 - `make check` fails in "runTests.py": No module named unittest_support
`make check` fails in "runTests.py": No module named unittest_support
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Python Bindings
2.6.7
Other Linux
: Normal normal
: ---
Assigned To: gnucash-core-maint
gnucash-core-maint
Depends on:
Blocks:
 
 
Reported: 2015-07-10 02:46 UTC by Dmitry Smirnov
Modified: 2018-06-29 23:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dmitry Smirnov 2015-07-10 02:46:31 UTC
On Debian "testing" `make check` fails in "runTests.py" due to unknown module "unittest_support".

"src/optional/python-bindings/tests/runTests.py.log" contains:

~~~~
Traceback (most recent call last):
  • File "./runTests.py", line 12 in <module>
    from test_split import TestSplit
  • File "/mnt/tmpssd/src/gnucash/gnucash-2.6.7/src/optional/python-bindings/tests/test_split.py", line 4 in <module>
    from unittest_support import *
ImportError: No module named unittest_support
~~~~

I can't find "unittest_support" anywhere. Any hints please?
Comment 1 Mike Evans 2015-07-10 08:22:07 UTC
Are you trying to build maint or master branch?

Have you looked in src/test-core/ ?
Comment 2 Dmitry Smirnov 2015-07-10 08:59:47 UTC
I'm building v2.6.7. I had a look into `src/test-core/` but could not find "unittest_support" Python module there. Please advise.
Comment 3 John Ralls 2015-07-10 18:26:15 UTC
It's a built file, so it should be in ${top_builddir}/src/test-core. If it isn't something's gone wrong with your build and you need to examine that.
Comment 4 John Ralls 2015-07-10 21:32:40 UTC
Nope, I'm mistaken: It's a built file only if BUILD_FROM_VCS is enabled and it's not included in distfiles. Guess you're the first person ever to try to run make check with --enable-python from the tarball, it's been that way since before 2.5.
Comment 5 Dmitry Smirnov 2015-07-10 22:13:39 UTC
Thanks, John.
We did not encounter this problem earlier because until yesterday Debian package was not running "make check" tests... :(

Nice to be the first one who tried but a little scary too. :)
Comment 6 John Ralls 2015-07-10 22:41:03 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. For 2.6.7 you can either ignore the problem like you have for the previous 7 releases or you can SWIG src/test-core to build it.
Comment 7 Dmitry Smirnov 2015-07-10 23:02:43 UTC
Nice. I just want to note that I was not ignoring the problem for 7 releases -- I was unaware of it. Besides is always useful when you can mention changeset ID. ;)
Comment 8 John Ralls 2018-06-29 23:41:48 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=752203. Please update any external references or bookmarks.