Skip to content
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

error in the example ? #6

Closed
alexlib opened this issue Apr 14, 2022 · 2 comments
Closed

error in the example ? #6

alexlib opened this issue Apr 14, 2022 · 2 comments

Comments

@alexlib
Copy link
Contributor

alexlib commented Apr 14, 2022

@ronshnapp

`(myptv) PS C:\Users\alex\repos\MyPTV\example> python workflow.py params_file.yml calibration

given inputs -
params file name: params_file.yml
action: calibration

camera files not detected in the working directory.
Generating a new empty file and leaving calib. sequence.
To continue calibration, fill in an initial guess in the
empty file, and then run again the calibration sequence.
Traceback (most recent call last):
File "C:\Users\alex\repos\MyPTV\example\workflow.py", line 575, in
wf = workflow(fname, action)
File "C:\Users\alex\repos\MyPTV\example\workflow.py", line 63, in init
self.calibration_sequence()
File "C:\Users\alex\repos\MyPTV\example\workflow.py", line 261, in calibration_sequence
cam.save('.')
UnboundLocalError: local variable 'cam' referenced before assignment`

@ronshnapp
Copy link
Owner

Sorry, my bug, this should now be fixed.

@alexlib
Copy link
Contributor Author

alexlib commented Apr 14, 2022

I do not see the initial guess files, maybe that's what is missing? The error message changed, but the bug is still there. I couldn't follow the manual

`(myptv) PS C:\Users\alex\repos\MyPTV\example> python workflow.py .\params_file.yml calibration

given inputs -
params file name: .\params_file.yml
action: calibration

camera files not detected in the working directory.
Generating a new empty file and leaving calib. sequence.
To continue calibration, fill in an initial guess in the
empty file, and then run again the calibration sequence.
Traceback (most recent call last):
File "C:\Users\alex\repos\MyPTV\example\workflow.py", line 576, in
wf = workflow(fname, action)
File "C:\Users\alex\repos\MyPTV\example\workflow.py", line 63, in init
self.calibration_sequence()
File "C:\Users\alex\repos\MyPTV\example\workflow.py", line 262, in calibration_sequence
cam.save('.')
File "c:\users\alex\repos\myptv\myptv\imaging_mod.py", line 291, in save
f = open(full_path, 'w')
PermissionError: [Errno 13] Permission denied: '.\cam1'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants