Skip to content

On the first step of executing conf.py #18

@cindyisok

Description

@cindyisok

Hi, when I executed the first step swot_simulator conf.py, there is an error raised.
AssertionError - Traceback (most recent call last):
D:\anaconda\envs\swot\lib\site-packages\swot_simulator\launcher.py in main
478
479 # Keep track of the overriden parameters
----> 480 copy_parameters(parameters, pathlib.Path(args.settings.name))
481 launch(client, parameters, logging_server, args.first_date,
482 args.last_date)

D:\anaconda\envs\swot\lib\site-packages\swot_simulator\launcher.py in copy_parameters
      450 # -------------------
      451 """)
----> 452             for dependency, version in sorted(software_dependencies()):
      453                 target_stream.write(f"# * {dependency}: {version}\n")
      454             target_stream.write(source_stream.read())

D:\anaconda\envs\swot\lib\site-packages\swot_simulator\launcher.py in software_dependencies
416 mod = sys.modules[module_name]
417 else:
----> 418 mod = importlib.import_module(module_name)
419 version = version_getter(mod)
420 result.append((module_name, version))

D:\anaconda\envs\swot\lib\importlib\__init__.py in import_module
      125                 break
      126             level += 1
----> 127     return _bootstrap._gcd_import(name[level:], package, level)
      128
      129

D:\anaconda\envs\swot\lib\site-packages\setuptools_init_.py in
5 import re
6
----> 7 import _distutils_hack.override # noqa: F401
8 import distutils.core
9 from distutils.errors import DistutilsOptionError

D:\anaconda\envs\swot\lib\site-packages\_distutils_hack\override.py in <module>
----> 1 __import__('_distutils_hack').do_override()

D:\anaconda\envs\swot\lib\site-packages\_distutils_hack\__init__.py in do_override
      75     if enabled():
      76         warn_distutils_present()
----> 77         ensure_local_distutils()
      78
      79

D:\anaconda\envs\swot\lib\site-packages\_distutils_hack\__init__.py in ensure_local_distutils
      62     # check that submodules load as expected
      63     core = importlib.import_module('distutils.core')
----> 64     assert '_distutils' in core.__file__, core.__file__
      65     assert 'setuptools._distutils.log' not in sys.modules
      66

AssertionError: D:\anaconda\envs\swot\lib\distutils\core.py

[E - 2.0.0.1 - Jan 17 20:51:08 - launcher] End of processing.

This was happened on different environments and different computers. I wonder if the code needs to be modified mannally to fix up it. Thanks very much if you could help with us.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions