DOI-USGS/fort-pymdwizard

Crashes when using "Search Controlled Vocabularies"

Closed this issue · 6 comments

Metadata Wizard (MW) v2.0.6 crashes when using "Search Controlled Vocabularies". This worked fine for me a couple of months ago.

I am using it in on a Windows laptop, and using it in conjunction with ArcGIS 10.7. I have also tried it in stand-alone mode, with the same result. I have also tried it both while connected and not connected to VPN.

When I use it in Arc, it produces the following error:


MetadataWizard output:
<class 'json.decoder.JSONDecodeError'> Expecting value: line 1 column 1 (char 0) <traceback object at 0x00000284CC18E0C8>

C:\ArcGIS\Desktop10.7\bin\ArcCatalog.exe
An error was encountered opening the MetadataWizard application:

Error> error Traceback (most recent call last):

File "C:\Users\tfelger\AppData\Local\Programs\MetadataWizard\pymdwizard\pymdwizard\gui\ThesaurusSearch.py", line 286, in search_thesaurus

results = self.get_result(search_url)

File "C:\Users\tfelger\AppData\Local\Programs\MetadataWizard\pymdwizard\pymdwizard\gui\ThesaurusSearch.py", line 266, in get_result

return utils.requests_pem_get(url).json()

File "C:\Users\tfelger\AppData\Local\Programs\MetadataWizard\Python36_64\lib\site-packages\requests\models.py", line 892, in json

return complexjson.loads(self.text, **kwargs)

File "C:\Users\tfelger\AppData\Local\Programs\MetadataWizard\Python36_64\lib\json_init_.py", line 354, in loads

return _default_decoder.decode(s)

File "C:\Users\tfelger\AppData\Local\Programs\MetadataWizard\Python36_64\lib\json\decoder.py", line 339, in decode

obj, end = self.raw_decode(s, idx=_w(s, 0).end())

File "C:\Users\tfelger\AppData\Local\Programs\MetadataWizard\Python36_64\lib\json\decoder.py", line 357, in raw_decode

raise JSONDecodeError("Expecting value", s, err.value) from None

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Non-Arcpy error occured
PYTHON ERRORS:
Traceback info:
File "C:\Users\tfelger\AppData\Local\Programs\MetadataWizard\pymdwizard\ArcToolbox\USGS_MetadataTool.py", line 307, in ProcessRoutine
sys.exit(1)

Error Info:
1
Arcpy Errors:

Completed script MetadataWizard...
Failed to execute (MetadataWizard).
Failed at Thu Dec 23 09:39:40 2021 (Elapsed Time: 3 minutes 16 seconds)

This is happening to me too, except I don't get any error messages. The application just closes as soon as I search for a word.

This is still occurring with the desktop version on Windows - closing without error - when searching controlled vocabularies.

@mahunterUSGS / @tmbell12 / @tfelger can you verify if you are hitting this error on new version of the tool v2.0.7?
https://github.com/usgs/fort-pymdwizard/releases
@ennsk - implemented a fix for this.
Note, uninstall / re-install now requires PR elevation on USGS machines.

Thanks, @dignizio-usgs I am on v2.0.6. I am unable to search for updates in this version as well so I'll do a fresh install.

'Check for updates' also fixed in v2.0.7.

Fixed with new version.