matiasandina / homecage_quantification

Code for quantifying homecage activity
https://github.com/homecage_quantification
0 stars 0 forks source link

sys not defined in preview_camera.py #32

Open melfnie opened 2 years ago

melfnie commented 2 years ago

preview_camera.py gives an error on line 9:

sys.exit(0)

where it says "Undefined name 'sys'". To fix this, put

import sys

at the beginning of preview_camera.py.

matiasandina commented 2 years ago

Yes, add import sys here and all the other places where we are using sys.exit()

El mié, 27 oct 2021 a las 17:10, melfnie @.***>) escribió:

preview_camera.py gives an error on line 9:

sys.exit(0)

where it says "Undefined name 'sys'". To fix this, put

import sys

at the beginning of preview_camera.py.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/matiasandina/homecage_quantification/issues/32, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZF2N3OZEUCG2MZTO5ZXV3UJBTFTANCNFSM5G3J2OPA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.