Python Forum

Full Version: Could not load module
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I have a below error on line 756 of this file. What should I do? 

Output:
        [echo] Running script         [exec]Loading transformation from directory: /home/bani/Desktop/workspace/testpython/backend/generated/transformation         [exec] Loading rule: HCountry2Community         [exec] Error: high is out of bounds for int32         [exec] Class: /home/bani/Desktop/workspace/testpython/backend/generated/transformation/HCountry2Community.py         [exec] File: /home/bani/Desktop/workspace/testpython/backend/generated/transformation/HCountry2Community.py         [exec] Exists: True         [exec] System path: ['/home/bani/Desktop/workspace/testpython/backend/generated', '/home/bani/Desktop/SyVOLT-master', '/home/bani/Desktop/workspace/testpython/backend/generated/backend/generated', '/usr/lib/python35.zip', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-i386-linux-gnu', '/usr/lib/python3.5/lib-dynload', '/home/bani/.local/lib/python3.5/site-packages', '/usr/local/lib/python3.5/dist-packages', '/usr/lib/python3/dist-packages']         [exec] Traceback (most recent call last):         [exec]   File "toplevel.py", line 71, in <module>         [exec]     test.test_correct(args)         [exec]   File "/home/bani/Desktop/SyVOLT-master/util/test_script_base.py", line 48, in test_correct         [exec]     self.rules, self.transformation = load_transformation(self.transformation_directory, self.full_transformation)         [exec]   File "/home/bani/Desktop/SyVOLT-master/util/test_script_utils.py", line 44, in load_transformation         [exec]     rule = load_class(dir_name + "/" + load_rule_name + ".py")         [exec]   File "/home/bani/Desktop/SyVOLT-master/core/himesis_utils.py", line 756, in load_class         [exec]     raise Exception("Could not load module: " + module_name)         [exec] Exception: Could not load module: HCountry2Community         [exec] Result: 1
obviously the problem is in HCountry2Community.py and the error is high is out of bounds for int32
That's what can be said from this Traceback.
(May-24-2017, 10:19 AM)buran Wrote: [ -> ]obviously the problem is in HCountry2Community.py and the error is high is out of bounds for int32
That's what can be said from this Traceback.

Thank you. HCountry2Community.py is in this link.
It would be better to rise an issue in GitHub to notify the developer of this package. I cannot go in such detail - it's very specific