evo-biomech / scAnt

open-source 3D scanning and processing pipeline
MIT License
164 stars 38 forks source link

Issue with GUI file #8

Closed CharliePoore01 closed 2 years ago

CharliePoore01 commented 2 years ago

Followed all steps including downloading and setting up conda envrinment, connecting and testing camera and setting up stepper motors. We know the DSLR camera is working with it (tested using Live_view_DSLR.py) and the stepper motors are working as well using tic controller software. The scAnt_GUI_mw.py file in the GUI folder launches the GUI, but the camera is not listed and the "browse" buttons under Output folder and Load presets do not work in addition to the stepper motors being inactive ... any ideas?

Thanks Charlie

FabianPlum commented 2 years ago

Hi Charlie, The scAnt_GUI_mw.py file only contains the generated window but with no functionality.

You need to run python scAnt.py for the actual scanner software.

Lemme know how that goes!

All the best Fabi

CharliePoore01 commented 2 years ago

Hi Fabi, when trying to run the python scAnt.py i get this error message:

ModuleNotFoundError Python 3.7.12: C:\Users\charl\anaconda3\envs\scant\python.exe Wed Apr 20 13:39:51 2022

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

C:\Users\charl\OneDrive\Desktop\scAnt-master\scAnt.py in () 1286 app = QtWidgets.QApplication([]) 1287 1288 application = scAnt_mainWindow() 1289 1290 application.show() application undefined scAnt_mainWindow = <class 'main.scAnt_mainWindow'>

C:\Users\charl\OneDrive\Desktop\scAnt-master\scAnt.py in init(self=<__main__.scAnt_mainWindow object>) 135 # Find FLIR cameras, if attached 136 try: 137 from GUI.Live_view_FLIR import customFLIR 138 self.FLIR = customFLIR() 139 # camera needs to be initialised before use (self.cam.initialise_camera) GUI undefined customFLIR undefined

C:\Users\charl\OneDrive\Desktop\scAnt-master\GUI\Live_view_FLIR.py in () 10 import PySpin 11 else: 12 from PySpin import PySpin # to run on windows 13 14 PySpin undefined ModuleNotFoundError: No module named 'PySpin' cause = None class = <class 'ModuleNotFoundError'> context = None delattr = <method-wrapper 'delattr' of ModuleNotFoundError object> dict = {} dir = doc = 'Module not found.' eq = <method-wrapper 'eq' of ModuleNotFoundError object> format = ge = <method-wrapper 'ge' of ModuleNotFoundError object> getattribute = <method-wrapper 'getattribute' of ModuleNotFoundError object> gt = <method-wrapper 'gt' of ModuleNotFoundError object> hash = <method-wrapper 'hash' of ModuleNotFoundError object> init = <method-wrapper 'init' of ModuleNotFoundError object> init_subclass = <built-in method init_subclass of type object> le = <method-wrapper 'le' of ModuleNotFoundError object> lt = <method-wrapper 'lt' of ModuleNotFoundError object> ne = <method-wrapper 'ne' of ModuleNotFoundError object> new = reduce = reduce_ex = <built-in method reduce_ex of ModuleNotFoundError object> repr = <method-wrapper 'repr' of ModuleNotFoundError object> setattr = <method-wrapper 'setattr' of ModuleNotFoundError object> setstate = sizeof = str = <method-wrapper 'str' of ModuleNotFoundError object> subclasshook = __suppress_context = False traceback__ = args = ("No module named 'PySpin'",) msg = "No module named 'PySpin'" name = 'PySpin' path = None with_traceback =

The above is a description of an error in a Python program. Here is the original traceback:

Traceback (most recent call last): File "scAnt.py", line 1288, in application = scAnt_mainWindow() File "scAnt.py", line 137, in init from GUI.Live_view_FLIR import customFLIR File "C:\Users\charl\OneDrive\Desktop\scAnt-master\GUI\Live_view_FLIR.py", line 12, in from PySpin import PySpin # to run on windows ModuleNotFoundError: No module named 'PySpin'

CharliePoore01 commented 2 years ago

I have noticed your reply to a previous comment to what I believe to be a similar problem mentioned making sure that DigiCamControl is installed to 'C:Program Files (x86)/digiCamControl' this is where I have it installed so I am assuming I don't need to change anything in the LiveViewDSLR.py file or am I incorrect? Thanks Charlie

FabianPlum commented 2 years ago

If your path is the same, you should not have to update it in LiveViewDSLR.py. However, to be sure, you could copy the full path into:

# Update with the path to CameraControlCmd.exe file.
digi_cam_path = Path("C:\Program Files (x86)\digiCamControl")  #or wherever the location of your installation is

There used to be an issue where PySpin needed to be installed regardless of whether FLIR cams were used, but that should now be resolved in 68becd0d6667e622b4870e31559ad0f13ef5c484

Could you try pulling/downloading the latest version of the scAnt repo and try running python scAnt.py again?

FabianPlum commented 2 years ago

Hey @CharliePoore01,

Could you check if the fix is working for you now? If so, I'll close this thread.

All the best Fabi

CharliePoore01 commented 2 years ago

Hi @FabianPlum I won’t have access to the scanner until the end of this week/start of next week. If you would like to close it I’ll email you privately when I have been able to test.

FabianPlum commented 2 years ago

Nah, there is no urgency! Just wanted to make sure the issue is solved for you

FabianPlum commented 2 years ago

Okay, I'll close the issue for now, as there is no more activity here. If the issue persists on your end, you can always reopen the issue or submit a new one!

All the best Fabi