Skip to content

import broken after merging PR61 #65

@andredaa

Description

@andredaa

Hej swmm-python team,
i had been compiling swmm-python from source , using the dev-workflow branch (PR61) yesterday.
Everything worked fine.
Now after the merge, compiling from the dev branch, I get an import error when trying to import the output module.

I didnt change anything in my code , so i fear that some little error occured from the merge?

Best regards :)
Andre

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/swmm_toolkit-0.8.1-py3.6-linux-x86_64.egg/swmm/toolkit/output.py", line 20, in swig_import_helper
    return importlib.import_module(mname)
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 658, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 571, in module_from_spec
  File "<frozen importlib._bootstrap_external>", line 922, in create_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: libswmm-output.so: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 7, in <module>
    from make_result_geojson import get_result_geojson
  File "/app/make_result_geojson.py", line 4, in <module>
    from swmm.toolkit import output, shared_enum, output_metadata
  File "/usr/local/lib/python3.6/dist-packages/swmm_toolkit-0.8.1-py3.6-linux-x86_64.egg/swmm/toolkit/output.py", line 23, in <module>
    _output = swig_import_helper()
  File "/usr/local/lib/python3.6/dist-packages/swmm_toolkit-0.8.1-py3.6-linux-x86_64.egg/swmm/toolkit/output.py", line 22, in swig_import_helper
    return importlib.import_module('_output')
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_output'

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