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

When I call the tool OSMGPFileLoader_osmtools with arcpy, I keep getting an error (000584). #243

Open
hhfbffcnhfdghbfvcnbf opened this issue Jul 16, 2023 · 13 comments
Assignees

Comments

@hhfbffcnhfdghbfvcnbf
Copy link

1JX{Z$%%KBTO%P)J%EO ZTM
Z@MFD(MX3BB A RND 6$7`V

@ThomasEmge
Copy link
Member

Could you please specify what version of ArcMap you are using?

@hhfbffcnhfdghbfvcnbf
Copy link
Author

hhfbffcnhfdghbfvcnbf commented Jul 16, 2023 via email

@ThomasEmge
Copy link
Member

Please do try to disable background processing as outlined at the beginning of this article. https://desktop.arcgis.com/en/arcmap/10.6/analyze/executing-tools/foreground-and-background-processing.htm

If the tool executes in foreground, then please install the 64-bit version of the tools (which are also part of the download from github) and then you can re-enable the background geoprocessing option.

@hhfbffcnhfdghbfvcnbf
Copy link
Author

The same error will still be reported.

@hhfbffcnhfdghbfvcnbf
Copy link
Author

Does this have anything to do with compiling software? I'm using VSCode.

@ThomasEmge
Copy link
Member

In case you want to build the tools from source, then you'll need to use VisualStudio. However, I'd recommend to stay with the already built tools and go with the installers for now.

If you are using VSCode to execute a script, you'll need to ensure to reference the ArcMap Python environment as well as loading the toolboxes. Please do take a look at the help documentation for each of the tools for code and syntax examples on how to invoke the tools from a scripting environment.

@hhfbffcnhfdghbfvcnbf
Copy link
Author

My code was written with reference to the tool's help documentation, as shown in the image below.
屏幕截图 2023-07-17 233949

@ThomasEmge
Copy link
Member

Could you please translate your error message to English? I am hoping for some more clues at which point the script is running into an error.

@hhfbffcnhfdghbfvcnbf
Copy link
Author

Garbled should mean that the validation process of this tool is invalid and the execution (OSMGPFileLoader) fails.

@ThomasEmge
Copy link
Member

I am looking for a more literal translation of this one

@hhfbffcnhfdghbfvcnbf
Copy link
Author

Sorry, there is a problem with the encoding of the content in this image, and I can't translate the specific content, but the general content is that the verification process of this tool is invalid.

@ThomasEmge
Copy link
Member

I think you discovered an error in the help documentation. Please change your last line to the following

arcpy.OSMGPFileLoader_osmtools("D:/out/0.osm", "CONSERVE_MEMORY", "", nameOfTargetDataset, nameOfPointFeatureClass, nameOfLineFeatureClass, nameOfPolygonFeatureClass)

meaning that an additional parameter is needed for the selected set of attributes.

@hhfbffcnhfdghbfvcnbf
Copy link
Author

Thank you very much for your help, after following your prompts to modify the code, the code will work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants