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

How to use with server hosted Database #9

Open
NR-COSR opened this issue May 19, 2021 · 2 comments
Open

How to use with server hosted Database #9

NR-COSR opened this issue May 19, 2021 · 2 comments

Comments

@NR-COSR
Copy link

NR-COSR commented May 19, 2021

I see that this hasn't been updated in a few years and no new issues have been opened in a while so I assume it's dead. But on the off chance it's not I thought I'd ask for an improvement to the documentation.
The documentation indicates that the reporter can be used with a RDBMS enterprise geodatabases but does not provide any example of how to go about doing this.
I tried to figure it out by looking at the documentation for arcpy and then looking in the code for when that was used but I couldn't find it.
Thanks

@AlexArcPy
Copy link
Owner

Hi! Thanks for posting, it's not dead :) maybe there are no issues because everything just works smoothly? ;)

It's been a while indeed and I don't work in the GIS industry any longer, but from what I remember and what I quickly read in the source code, you just have to provide the path to your .sde connection file stored on disk:

reporter = registrant.Reporter(
    r"C:\DBconnections\Production.sde", r"C:\GIS\ReportFolder"
)

Could you please try that and get back whether this works?

@NR-COSR
Copy link
Author

NR-COSR commented May 20, 2021

Well I'm super happy that you responded so quickly. I went to try that and discovered that my install of ArcGIS desktop 10.6 is super screwy. Which means I can't get both arcpy and registrant to be imported at the same time. Because if I run python from a command line and it successfully installs registrant arcpy isn't working. But if I change my directory to the copy of python installed specifically by the Desktop installer I can't install registrant because it can't connect to the pip server due to an SSL error to get the pre-requisites. So I wanted to let you know that I appreciate your quick response and I hope to try your suggestion soon but at the moment I'm fighting with the python install so I can't try it yet. I know my problem is not with your code so I will try and fix my problem and try your solution then.

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