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

CheckVersion causes failed execution #66

Open
LindaTedrow opened this issue Apr 22, 2021 · 10 comments
Open

CheckVersion causes failed execution #66

LindaTedrow opened this issue Apr 22, 2021 · 10 comments

Comments

@LindaTedrow
Copy link

Since the introduction of the check version the tools have mostly failed.
Also of note, when freshly downloaded the Toolbox Title does not change -- it continues to be GeMS Tools for 10.5 2021-02-02
checkVersionError

Suggest updating this with each new version and when CheckVersion causes failure a url to the exact location for the latest would be helpful.

@ethoms-usgs
Copy link
Collaborator

Try putting an empty text file called __init__.py in the Scripts folder alongside all of the tool files. For some reason it's not required for me with my setup but might be for others.

@ethoms-usgs
Copy link
Collaborator

Thanks for bringing the toolbox title/label issue to our attention! I had not noticed that before. I will remove the version number and just leave it to report 'GeMS Tools for 10.5'.

At one point I was having the script report the URL to the repo but took it out when I saw it was not a hyperlink in the messages. Still, easily copied, so I will put it back in.

@LindaTedrow
Copy link
Author

LindaTedrow commented Apr 23, 2021 via email

@ethoms-usgs
Copy link
Collaborator

I'm sorry. Go get the latest version again (same number v1.6.1). I found a syntax error that might have been the problem.

That's fine that the init file is empty. It can have special instructions in it, but doesn't need to.

If this doesn't work try this: open GeMS_ProjectCrossSectionData_Arc10.py in a text editor and comment out the line that calls checkVersion, that is, make it read

# checkVersion(versionString, rawurl, 'gems-tools-arcmap')

and if my guess is right, that for some reason the script cannot find GeMS_utilityFunctions.py, then you will get an error at line 146 when it tries to call addMsgAndPrint.

@LindaTedrow
Copy link
Author

LindaTedrow commented Apr 23, 2021 via email

@LindaTedrow
Copy link
Author

LindaTedrow commented May 12, 2021 via email

@ethoms-usgs
Copy link
Collaborator

The Attribute Error getting thrown, that 'Exists' can't be found in the arcpy module, is worrying. What version of ArcMap are you using?

@LindaTedrow
Copy link
Author

LindaTedrow commented May 13, 2021 via email

@ethoms-usgs
Copy link
Collaborator

Hmm, do you know if there are other versions of python installed on the computer? Perhaps there are conflicting namespaces.
Can you upgrade or do a repair?

@LindaTedrow
Copy link
Author

LindaTedrow commented May 13, 2021 via email

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