You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Package problems when having a package name 'femmt' which imports .femmt.py
Seems to be that the package is builds successfully, but problems occour when generating the documentation.
When renaming 'femmt.py' e.g. to 'femmt_classes.py', this works fine.
To Reproduce
Steps to reproduce the behavior:
cd sphinx/
make clean
make html
See error
WARNING: autodoc: failed to import class 'MagneticComponent.VirtualWindingWindow' from module 'femmt'; the following exception was raised:
attempted relative import with no known parent package
When opening sphinx/build/html/index.html, the MagneticComponent-Class description is empty.
Expected behavior
Build documentation without mentioned warning, and display a documentation for MagneticComponent-class.
The text was updated successfully, but these errors were encountered:
Describe the bug
Package problems when having a package name 'femmt' which imports .femmt.py
Seems to be that the package is builds successfully, but problems occour when generating the documentation.
When renaming 'femmt.py' e.g. to 'femmt_classes.py', this works fine.
To Reproduce
Steps to reproduce the behavior:
When opening sphinx/build/html/index.html, the MagneticComponent-Class description is empty.
Expected behavior
Build documentation without mentioned warning, and display a documentation for MagneticComponent-class.
The text was updated successfully, but these errors were encountered: