Skip to content

funky logging error when building WIEN2k due to file with funky name in install dir #3658

Open
@boegel

Description

@boegel

During the installation of WIEN2k, the following logging errors are produced:

--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib64/python3.6/logging/__init__.py", line 996, in emit
    stream.write(msg)
UnicodeEncodeError: 'utf-8' codec can't encode character '\udcc4' in position 173: surrogates not allowed
Call stack:
  File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/data/gent/400/vsc40023/easybuild_easy_installed/lib/python3.6/site-packages/easybuild_framework-4.3.5.dev0-py2.7.egg/easybuild/main.py", line 544, in <module>
    main()
  File "/data/gent/400/vsc40023/easybuild_easy_installed/lib/python3.6/site-packages/easybuild_framework-4.3.5.dev0-py2.7.egg/easybuild/main.py", line 511, in main
    ecs_with_res = build_and_install_software(ordered_ecs, init_session_state, exit_on_failure=exit_on_failure)
  File "/data/gent/400/vsc40023/easybuild_easy_installed/lib/python3.6/site-packages/easybuild_framework-4.3.5.dev0-py2.7.egg/easybuild/main.py", line 117, in build_and_install_software
    (ec_res['success'], app_log, err) = build_and_install_one(ec, init_env)
  File "/data/gent/400/vsc40023/easybuild_easy_installed/lib/python3.6/site-packages/easybuild_framework-4.3.5.dev0-py2.7.egg/easybuild/framework/easyblock.py", line 3530, in build_and_install_one
    result = app.run_all_steps(run_test_cases=run_test_cases)
  File "/data/gent/400/vsc40023/easybuild_easy_installed/lib/python3.6/site-packages/easybuild_framework-4.3.5.dev0-py2.7.egg/easybuild/framework/easyblock.py", line 3429, in run_all_steps
    self.run_step(step_name, step_methods)
  File "/data/gent/400/vsc40023/easybuild_easy_installed/lib/python3.6/site-packages/easybuild_framework-4.3.5.dev0-py2.7.egg/easybuild/framework/easyblock.py", line 3284, in run_step
    step_method(self)()
  File "/data/gent/400/vsc40023/easybuild_easy_installed/lib/python3.6/site-packages/easybuild_framework-4.3.5.dev0-py2.7.egg/easybuild/framework/easyblock.py", line 3184, in permissions_step
    adjust_permissions(self.installdir, perms, add=True, recursive=True, relative=True, ignore_errors=True)
  File "/data/gent/400/vsc40023/easybuild_easy_installed/lib/python3.6/site-packages/easybuild_framework-4.3.5.dev0-py2.7.egg/easybuild/tools/filetools.py", line 1609, in adjust_permissions
    _log.debug("Current permissions for %s are already OK: %s", path, oct(current_perms))
Message: 'Current permissions for %s are already OK: %s'
Arguments: ('/user/gent/400/vsc40023/eb_arcaninescratch/RHEL8/zen2-ib/software/WIEN2k/19.2-intel-2020b/SRC_nmr/\udcc4a', '0o100644')

These are caused by a weirdly named file:

$ ls -lrt WIEN2k/19.2-intel-2020b/SRC_nmr | head -2
total 29621
-rw-r--r-- 1 vsc40023 vsc40023      10 Apr  8  2013 �a

These logging errors are annoying, but they're not fatal: the installation completes correctly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions