Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests try to import python2 modules from pygtk #513

Open
pacho2 opened this issue Apr 29, 2020 · 0 comments
Open

tests try to import python2 modules from pygtk #513

pacho2 opened this issue Apr 29, 2020 · 0 comments

Comments

@pacho2
Copy link

pacho2 commented Apr 29, 2020

tests fail with python3 because modules from pygtk (python2 only) are imported:

======================================================================
ERROR: update_udhr_samples (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: update_udhr_samples
Traceback (most recent call last):
  File "/usr/lib64/python3.6/unittest/loader.py", line 153, in loadTestsFromName
    module = __import__(module_name)
  File "/var/tmp/portage/dev-python/nototools-0_pre20200428/work/nototools-2aa38cca1c17d2262fbda706f68623f712dd446e/nototools/update_udhr_samples.py", line 38, in <module>
    from nototools import generate_website_data
  File "/var/tmp/portage/dev-python/nototools-0_pre20200428/work/nototools-2aa38cca1c17d2262fbda706f68623f712dd446e/nototools/generate_website_data.py", line 41, in <module>
    from nototools import create_image
  File "/var/tmp/portage/dev-python/nototools-0_pre20200428/work/nototools-2aa38cca1c17d2262fbda706f68623f712dd446e/nototools/create_image.py", line 33, in <module>
    import pango
ModuleNotFoundError: No module named 'pango'


======================================================================
ERROR: font_tests (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: font_tests
Traceback (most recent call last):
  File "/usr/lib64/python3.6/unittest/loader.py", line 153, in loadTestsFromName
    module = __import__(module_name)
  File "/var/tmp/portage/dev-python/nototools-0_pre20200428/work/nototools-2aa38cca1c17d2262fbda706f68623f712dd446e/nototools/unittests/font_tests.py", line 23, in <module>
    import freetype
ModuleNotFoundError: No module named 'freetype'


======================================================================
ERROR: merge_fonts (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: merge_fonts
Traceback (most recent call last):
  File "/usr/lib64/python3.6/unittest/loader.py", line 153, in loadTestsFromName
    module = __import__(module_name)
  File "/var/tmp/portage/dev-python/nototools-0_pre20200428/work/nototools-2aa38cca1c17d2262fbda706f68623f712dd446e/nototools/merge_fonts.py", line 40, in <module>
    from merge_noto import add_gsub_to_font, has_gsub_table
ModuleNotFoundError: No module named 'merge_noto'


======================================================================
ERROR: generate_website_data (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: generate_website_data
Traceback (most recent call last):
  File "/usr/lib64/python3.6/unittest/loader.py", line 153, in loadTestsFromName
    module = __import__(module_name)
  File "/var/tmp/portage/dev-python/nototools-0_pre20200428/work/nototools-2aa38cca1c17d2262fbda706f68623f712dd446e/nototools/generate_website_data.py", line 41, in <module>
    from nototools import create_image
  File "/var/tmp/portage/dev-python/nototools-0_pre20200428/work/nototools-2aa38cca1c17d2262fbda706f68623f712dd446e/nototools/create_image.py", line 33, in <module>
    import pango
ModuleNotFoundError: No module named 'pango'


======================================================================
ERROR: generate_website_2_data (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: generate_website_2_data
Traceback (most recent call last):
  File "/usr/lib64/python3.6/unittest/loader.py", line 153, in loadTestsFromName
    module = __import__(module_name)
  File "/var/tmp/portage/dev-python/nototools-0_pre20200428/work/nototools-2aa38cca1c17d2262fbda706f68623f712dd446e/nototools/generate_website_2_data.py", line 38, in <module>
    from nototools import create_image
  File "/var/tmp/portage/dev-python/nototools-0_pre20200428/work/nototools-2aa38cca1c17d2262fbda706f68623f712dd446e/nototools/create_image.py", line 33, in <module>
    import pango
ModuleNotFoundError: No module named 'pango'


======================================================================
ERROR: generate_sample_from_exemplar (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: generate_sample_from_exemplar
Traceback (most recent call last):
  File "/usr/lib64/python3.6/unittest/loader.py", line 153, in loadTestsFromName
    module = __import__(module_name)
  File "/var/tmp/portage/dev-python/nototools-0_pre20200428/work/nototools-2aa38cca1c17d2262fbda706f68623f712dd446e/nototools/generate_sample_from_exemplar.py", line 28, in <module>
    from nototools import create_image
  File "/var/tmp/portage/dev-python/nototools-0_pre20200428/work/nototools-2aa38cca1c17d2262fbda706f68623f712dd446e/nototools/create_image.py", line 33, in <module>
    import pango
ModuleNotFoundError: No module named 'pango'


======================================================================
ERROR: create_image (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: create_image
Traceback (most recent call last):
  File "/usr/lib64/python3.6/unittest/loader.py", line 153, in loadTestsFromName
    module = __import__(module_name)
  File "/var/tmp/portage/dev-python/nototools-0_pre20200428/work/nototools-2aa38cca1c17d2262fbda706f68623f712dd446e/nototools/create_image.py", line 33, in <module>
    import pango
ModuleNotFoundError: No module named 'pango'


======================================================================
ERROR: compare_fonts (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: compare_fonts
Traceback (most recent call last):
  File "/usr/lib64/python3.6/unittest/loader.py", line 153, in loadTestsFromName
    module = __import__(module_name)
  File "/var/tmp/portage/dev-python/nototools-0_pre20200428/work/nototools-2aa38cca1c17d2262fbda706f68623f712dd446e/nototools/compare_fonts.py", line 26, in <module>
    import cldr_data
ModuleNotFoundError: No module named 'cldr_data'


----------------------------------------------------------------------
Ran 8 tests in 0.002s

FAILED (errors=8)
Test failed: <unittest.runner.TextTestResult run=8 errors=8 failures=0>
Getting fonts from: ['/var/tmp/portage/dev-python/nototools-0_pre20200428/work/nototools-2aa38cca1c17d2262fbda706f68623f712dd446e/hinted', '/var/tmp/portage/dev-python/nototools-0_pre20200428/work/nototools-2aa38cca1c17d2262fbda706f68623f712dd446e/unhinted', '/var/tmp/portage/dev-python/nototools-0_pre20200428/work/nototools-2aa38cca1c17d2262fbda706f68623f712dd446e/fonts', '/var/tmp/portage/dev-python/nototools-0_pre20200428/work/nototools-2aa38cca1c17d2262fbda706f68623f712dd446e']

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant