-
Notifications
You must be signed in to change notification settings - Fork 13
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
geoalchemy vs geoalchemy2 dependency #13
Comments
This issue has been completed in the geometry branch and has been merged into the setup branch |
@sreeder, one question: when we talked on the phone I think you said that using geoalchemy would involve making some changes to it. Was that the case, or am I mixing things up? If it is true, it means we'll have to maintain our own fork of geoalchemy in the ODM2 github organization. Not a problem per se, just wanted to make that clear. |
@emiliom Yes, there is one classname that has to be changed. I have made a note of it in the requirements.txt file. But I have been planning on keeping our own copy in the repository, thanks for the reminder. |
This is just for reference:
|
I've forked geoalchemy into the ODM2 org: https://github.com/ODM2/geoalchemy. Then I created a branch ( So far so good! I don't know how to specify a github repo, rather than the pypi default, as the source of a dependency requirement; so I didn't change the requirements/setup files in odm2api. Hopefully @sreeder can take care of that, specially once we promote my geoalchemy odm2 branch to master (I was just being extra careful). |
Things to follow up on, probably as separate issues:
Also see my related, latest comment in issue 11. |
@emiliom |
I changed the dependencies in setup.py and requirements.txt. |
Thanks, @valentinedwv ! Have you tested this? I tried installing, letting I don't know enough about pip packaging to figure out what's wrong. |
Just more confirmation that the setup dependency requirement for geoalchemy is not configured correctly. My odm2api tests ran just fine when I pre-installed geoalchemy via pip install, like this:
|
Didn't hard core check it, but when I ran it in pycharm, it complained about not pulling from git... Added >= to geoalchemy to see if that forces it. |
Do you use conda? I can send you instructions for installing odm2api with
all dependencies, with conda. It's very easy.
|
Has anyone tested Dave's latest change to the geoalchemy dependency specification? ie, is the right geoalchemy version installed when pip installing odm2api? |
@emiliom - Not sure I'm on track here, but to test the API (which I have been doing a little over the past couple of days), I used these instructions from Stephanie to get a Python environment named "sdl" set up using conda:
Then, I had to manually change line 242 in the file:
From: class SpatialComparator(ColumnProperty.ColumnComparator): It seems like if we are maintaining our own copy of Geoalchemy and I'm using pip to install, I shouldn't have to do this last step??? |
You're right. And that hasn't been needed for over two weeks. The right installation statements are:
What @valentinedwv was/is working on was correctly building in the geoalchemy dependency specification for odm2api, so that pip installing odm2api will take care of geoalchemy directly, w/o the user needing to explicitly install geoalchemy. |
Closing this issue. I've created instructions for installing Gory packaging details can be found on issue #18 and associated pull requests (PR #19 and PR #20). |
@sreeder and @horsburgh: I'm creating this issue to help us keep track of the status.
Stephanie, were you able to make progress on this last week?
The text was updated successfully, but these errors were encountered: