jssimporter/JSSImporter

[1.0.2b3] JCDS mode Error: 'NoneType' object is not iterable

Closed this issue · 3 comments

This is only happening:
For the recipe at https://github.com/autopkg/jss-recipes/blob/master/Wireshark/Wireshark.jss.recipe (I run a half dozen other recipes without a problem)

If JSS_REPOS type = JCDS

If I set JSS_REPOS to CDP I do not get the error.

I am using hosted jamfcloud (currently 10.12)

I got a traceback that looks like:

Tracing exception: StopIteration "None" on line 285 of find
Tracing exception: TypeError "'NoneType' object is not iterable" on line 855 of package_index_using_casper
Tracing exception: TypeError "'NoneType' object is not iterable" on line 1227 of exists
Tracing exception: TypeError "'NoneType' object is not iterable" on line 303 of exists
Tracing exception: TypeError "'NoneType' object is not iterable" on line 504 of handle_package
Tracing exception: TypeError "'NoneType' object is not iterable" on line 364 of main
Tracing exception: TypeError "'NoneType' object is not iterable" on line 359 of process
Tracing exception: TypeError "'NoneType' object is not iterable" on line 541 of process
'NoneType' object is not iterable
Tracing exception: AutoPackagerError "Error in local.jss.Wireshark: Processor: JSSImporter: Error: 'NoneType' object is not iterable" on line 551 of process
Tracing exception: GeneratorExit "None" on line 589 of enumeratorGenerator
Tracing exception: AutoPackagerError "Error in local.jss.Wireshark: Processor: JSSImporter: Error: 'NoneType' object is not iterable" on line 2320 of run_recipes
Failed.
Receipt written to /Users/mlee/Library/AutoPkg/Cache/local.jss.Wireshark/receipts/Wireshark-receipt-20190621-190856.plist

The following recipes failed:
    Wireshark.jss
        Error in local.jss.Wireshark: Processor: JSSImporter: Error: 'NoneType' object is not iterable

And by putting try/except at package_index_using_casper(self) I got the following:

Error at package_index_using_casper(self)
<type 'exceptions.TypeError'>
Error at exists()
<type 'exceptions.TypeError'>

I hope to dig in to this further, but it's 1938 on a Friday evening and I need to go home!

@MartinLeedotOrg Hard to say where the error lies from that, though it may be a package upload error. JCDS mode is considered experimental, and I would suggest using the CDP mode at the present time.

mosen commented

Let me look into this when I get a sec. I’m guessing it is system python and not python3 so I’ll try it on a fresh vm

JCDS Mode removed for now.