-
Notifications
You must be signed in to change notification settings - Fork 51
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
UnboundLocalError: local variable 'updated_data' refrenced before assignment #209
Comments
Do you have all of your dist points added? |
Yes, @eahrold If I don't add all my DP's I get the following error: |
@gerardweese I figured as much, I just always like to double check to start. If you're feeling adventurous, you could try setting the updated_data = None See if that helps to just skips over the problem |
@eahrold I am adventurous and no unfortunately it did not resolve the issue. declaring updated_data on L594. python reported an unexpected indent. I'm going to open the issue on the python.jss git page. |
@gerardweese, that's python for you... It's very fussy when it comes to indents. you need to make sure there are exactly 8 spaces before the |
Yup, @eahrold just reading about this whitespace as a methodology for clean code. |
New versions of jss-autopkg-addon and python-jss are available. We'll have a new version of AutoPkgr available soon. When we do, it'd be great to know whether this fixes your issue. |
@gerardweese — Could you try this again with 1.1.2? |
@homebysix I have tried with the newest version of Autopkgr and I'm now receiving the error in issue #178 It's not completely clear to my why. It could still be related ssl_.py issue documented here jssimporter/JSSImporter#9 which was originally resolved for me not sure why it's reoccured. I tried to recreate the solution for ssl_.py but that file is now mark as .old |
@gerardweese, |
I'm receiving the following error when running Firefox.jss, or Evernote.jss and even tried Silveright.jss
"/Library/Python/2.7/site-packages/jss/jss.py", line 616 in save for child in updated_data.getchildren():
UnboundLocalError: local variable 'updated_data' refrenced before assignment
This seems similar to issue #175 but at a different point in the code. Autopkgr runs the .jss with no errors I only receive the above error when running {autopkg run -v nameofpackage.jss}
I get no new Policy, the process does appear to upload the packages to the CasperShare
edit: corrected details
The text was updated successfully, but these errors were encountered: