Skip to content

The Python API should also display success when *.dll files are loaded #3011

@mwinkel-dev

Description

@mwinkel-dev

Affiliation
MIT PSFC

Version(s) Affected
Found in alpha-7-157-0 but surely applies to other versions too

Platform(s)
Windows 11

Installation Method(s)
Kits from GitHub Release

Describe the bug
On Windows, when using Python to import the MDSplus module, warning messages are displayed regarding the MDSplus libraries. These are a bit confusing because they indicate that something went wrong, but don't also display that find_library successfully loaded the *.dll files.

Also displaying a "successfully loaded library" message would be helpful. Doing so would involve a minor change to the python/MDSplus/version.py file.

> python3
>>> import MDSplus as mds
Issues loading MdsShr, trying find_library
Issues loading TreeShr, trying find_library
Issues loading TdiShr, trying find_library
Issues loading Mdsdcl, trying find_library
Issues loading MdsIpShr, trying find_library
Issues loading MdsMisc, trying find_library

To Reproduce
On a Windows computer, install Python, NumPy and the current MDSplus alpha. Then run Python and import MDSplus as shown above.

Expected behavior
In addition to the existing messages, also indicate when the libraries are successfully loaded.

Screenshots
n/a

Additional context
This is a cosmetic issue so should be given a low priority.

Metadata

Metadata

Assignees

No one assigned

    Labels

    api/pythonRelates to the Python APIbugAn unexpected problem or unintended behavioros/windowsThis is present on or relates to Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions