-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: function 'compare' not found; #90
Comments
Do you have more than one version of storm-control installed on your computer? This seems to be a problem with the storm-control-master/storm_control/c_libraries/c_image_manipulation.dll library. This library is supposed to have a function called 'compare' but for some reason this function is not found. So one possibility is that an older version of the library from some other version of storm-control is getting loaded instead. If you add print(c_lib_path) to the loadCLibrary() function in storm-control-master/storm_control/c_libraries, what do you see?
|
I did as you said, The output is just shown as "C:\Users\shen\storm-control-master\storm_control\c_libraries" and the others don't change.
|
My operate system is win7 64bit. def compare(image1, image2):
|
What version of Python and Anaconda are you using? The problem I think is that the |
Not sure what the issue is as I cannot reproduce it. I did the following on a 64 bit Windows 7 computer.
And it all worked as expected. |
Thank you sir. I'll keep trying to fix it. If I find where the problem is , I’ll post here. |
Doctor HazenBabcock :
Hello!
After I was runing "python hal-4000.py xml/none_config.xml", these mistakes trouble me a lot. I try my best to fix it but failed. I wonder whether you can help me.
Thanks a lot.
below is the bug.
···
(storm_control) C:\Users\shen\storm-control-master\storm_control\hal4000>python hal4000.py xml/none_config.xml
Logging Error! Could not open C:/Data/logs/hal4000_37.out
Logging is disabled.
Loading modules
hal
aotf
camera1
daq
display
Traceback (most recent call last):
File "hal4000.py", line 756, in
parameters_file_name = args.default_xml)
File "hal4000.py", line 447, in init
a_module = importlib.import_module(module_params.get("module_name"))
File "C:\Users\shen\Anaconda3\envs\storm_control\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 665, in load_unlocked
File "", line 678, in exec_module
File "", line 219, in call_with_frames_removed
File "C:\Users\shen\storm-control-master\storm_control\hal4000\display\display.py", line 13, in
import storm_control.hal4000.display.cameraViewers as cameraViewers
File "C:\Users\shen\storm-control-master\storm_control\hal4000\display\cameraViewers.py", line 11, in
import storm_control.hal4000.display.cameraFrameViewer as cameraFrameViewer
File "C:\Users\shen\storm-control-master\storm_control\hal4000\display\cameraFrameViewer.py", line 27, in
import storm_control.hal4000.qtWidgets.qtCameraGraphicsScene as qtCameraGraphicsScene
File "C:\Users\shen\storm-control-master\storm_control\hal4000\qtWidgets\qtCameraGraphicsScene.py", line 13, in
import storm_control.hal4000.halLib.c_image_manipulation_c as c_image
File "C:\Users\shen\storm-control-master\storm_control\hal4000\halLib\c_image_manipulation_c.py", line 27, in
ctypes.c_int]
File "C:\Users\shen\Anaconda3\envs\storm_control\lib\ctypes_init.py", line 361, in getattr
func = self.getitem(name)
File "C:\Users\shen\Anaconda3\envs\storm_control\lib\ctypes_init.py", line 366, in getitem
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'compare' not found
···
The text was updated successfully, but these errors were encountered: