DOI-USGS / fort-pymdwizard

The MetadataWizard is a useful tool designed to facilitate FGDC metadata creation for spatial and non-spatial data sets. It is a cross-platform desktop application built using an open-source Python architecture.
https://usgs.github.io/fort-pymdwizard/
Other
62 stars 21 forks source link

non-privileged install - IPersistFile Save failed, Code 0x80070005, Access is denied (shortcut creation I think) #141

Closed aritchie-usgs closed 2 years ago

aritchie-usgs commented 2 years ago

Email sdmapps@usgs.gov if you wish to contact the USGS Science Data Management (SDM) team’s application support inbox directly with bugs or feature requests. Otherwise, use the template below.

Describe the bug Setup Error IPersistFile::Save failed; code 0x80070005. Access is denied Setup completes, but no shortcuts are created

This error pops up at setup completion when performing a non-privileged install using MetadataWizard_win64x_2.0.7.exe (downloaded 3/24/2022)

To Reproduce Steps to reproduce the behavior:

  1. download metadata wizard 2.0.7 to a USGS AD windoze machine
  2. install from .exe
  3. See error
  4. delete and repeat

Expected behavior clean install with a little ducky icon and wizard to appear in the start menu

Desktop (please complete the following information):

Additional context Program can be launched from:

C:\Users\aritchie\AppData\Local\Programs\MetadataWizard\MetadataWizard_launcher.bat

and appears to update successfully after initial install, but batch has following text (just ran the batch, open/closed wizard, and copy/pasted:

C:\Users\aritchie\AppData\Local\Programs\MetadataWizard>set PATH=C:\Users\aritchie\AppData\Local\Programs\MetadataWizard\pymdwizard;C:\Users\aritchie\AppData\Local\Programs\MetadataWizard\pymdwizard\library\bin

C:\Users\aritchie\AppData\Local\Programs\MetadataWizard>cd pymdwizard

C:\Users\aritchie\AppData\Local\Programs\MetadataWizard\pymdwizard>python.exe ../fort-pymdwizard/pymdwizard/MetadataWizard.py C:\Users\aritchie\AppData\Local\Programs\MetadataWizard\pymdwizard\lib\site-packages\pyproj__init__.py:73: UserWarning: Valid PROJ data directory not found. Either set the path using the environmental variable PROJ_LIB or with pyproj.datadir.set_data_dir. warnings.warn(str(err)) ERROR 1: PROJ: proj_create_from_database: Cannot find proj.db PROJ: proj_create_from_database: Cannot find proj.db QPainter::begin: A paint device can only be painted by one painter at a time. js: Uncaught ReferenceError: QWebChannel is not defined None js: Uncaught ReferenceError: addRect is not defined None js: Uncaught ReferenceError: addRect is not defined None js: Uncaught ReferenceError: updateMap is not defined None Property 'modal'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'windowModality'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'enabled'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'geometry'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'frameGeometry'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'normalGeometry'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'x'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'y'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'pos'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'frameSize'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'size'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'width'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'height'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'rect'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'childrenRect'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'childrenRegion'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'sizePolicy'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'minimumSize'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'maximumSize'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'minimumWidth'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'minimumHeight'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'maximumWidth'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'maximumHeight'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'sizeIncrement'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'baseSize'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'palette'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'font'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'cursor'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'mouseTracking'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'tabletTracking'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'isActiveWindow'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'focusPolicy'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'focus'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'contextMenuPolicy'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'updatesEnabled'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'visible'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'minimized'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'maximized'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'fullScreen'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'sizeHint'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'minimumSizeHint'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'acceptDrops'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'windowOpacity'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'windowModified'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'toolTip'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'toolTipDuration'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'statusTip'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'whatsThis'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'accessibleName'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'accessibleDescription'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'layoutDirection'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'autoFillBackground'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'styleSheet'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'locale'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'windowFilePath'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Property 'inputMethodHints'' of object 'Spdom' has no notify signal and is not constant, value updates in HTML will be broken! Release of profile requested but WebEnginePage still not deleted. Expect troubles !

C:\Users\aritchie\AppData\Local\Programs\MetadataWizard\pymdwizard>pause Press any key to continue . . .

dignizio-usgs commented 2 years ago

@aritchie-usgs : please note that the documentation will need to be updated to indicate USGS users of the Wizard on both Mac and PC will need to perform the uninstall/install steps with elevation (that is, with a 'PR' account). In previous versions of the tool this was not necessary for PC, but users are reporting the error you described when installing v 2.0.7 from a non-admin account.