-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add Conda Channel information to documentation #59
Comments
Let'sl use this issue that @valentinedwv started to iron out wofpy installation instructions, including problems along the way. I'll start by redirecting @miguelcleon's email from 8/12/2016 to here:
Miguel then said:
1. conda package installationMiguel, I'm glad you were able to install miniconda. If you don't mind, please post here a brief summary of the steps you used (web site, etc) to install miniconda, what OS you're using, etc. Looking into WOFpy, I can see odm2api is not a required dependency. I can see why, b/c you can have a WOFpy deployment not tied to an ODM2 database (like @SRGDamia1 is doing). So, as Miguel pointed out, odm2api must be installed explicitly. Here's a sample, minimalist statement that will install wofpy and odm2api into the conda environment conda create -c conda-forge -c odm2 -n wofpyodm2api python=2.7 wofpy odm2api (do use "-c conda-forge"; it might not be strictly needed, but it's best to do it at this time. I'll add documentation on this later on) 2. wofpy odm2api errorsNow regarding the errors Miguel is still seeing with wofpy, involving ODM2:
@sreeder, you were able to get past this point, weren't you? Can you chime in? Thanks, all! cc @SRGDamia1 and @sreeder, since they were/are part of this conversation |
The problem I encountered is that when I downloaded the Line 10 corresponding to `[https://github.com/ODM2/WOFpy/blob/master/examples/flask/odm2/timeseries/odm2_timeseries_dao.py#L10] instead reads:
Which doesn't work. When I changed it to Mannually it worked. |
@miguelcleon can you post the result of |
Cool. The |
Great to see your progress, Miguel! Thanks for reporting back on the I think you may still be running into "growing pains" from being new to In the meantime, it sounds like you're almost all set! Though there may be @ocefpaf, thanks for chiming in. |
yeah, just using download Anaconda at the top of https://anaconda.org/odm2 seemed to send me astray. |
@miguelcleon and @sreeder: have you gotten farther along with your installation and use of WOFpy? Miguel, I noticed just now that your successful installation was actually on Jeff's sample Little Bear dataset, not your own Luquillo CZO database. Still, have you been successful with the Little Bear test DB? Any additional, helpful info you can add about the installation and configuration of WOFpy for ODM2 time series? Thanks! |
@emiliom I have not gotten any further than we were at our meeting on Friday. I have WOFpy up and running but I cannot get it to successfully return data. There seems to be errors with the queries being run to return data. I am also running Jeff's sample Little Bear River dataset. The Variable and the Site do exist in my database. |
@sreeder, thanks for reporting back. While that may not be positive movement forward, hearing about what problems you're running into is still helpful. Quick question about "I am also running Jeff's sample Little Bear River dataset." So, you're using exactly the same database dump available online, that Miguel is using, and the San Diego team developed the WOFpy ODM2 timeseries example, right? Not a local copy of the database that might be 98% identical. |
@emiliom I haven't made any progress, the services seem to start up but I can never get any of the links to load. I'm connecting to a local copy of the LCZO ODM2 database though. |
@emiliom I am using a local copy that could be 98% identical |
I thought I'd reboot and give it another try. Now instead of it seeming to run unendingly doing nothing, I get errors :) |
from here:
|
That template is based on the path from where you start the program to On Wed, Aug 17, 2016 at 3:26 PM, Miguel Leon [email protected]
|
Thanks for your input, everyone. Lots to chew on. Let's see if there's any progress before Friday, to see if we should talk about this on the BiGCZ call on Friday. |
I out on Friday. On Wed, Aug 17, 2016 at 4:54 PM, Emilio Mayorga [email protected]
|
yes I have no templates in Templates=../../../../wof/apps/templates |
I found templates in the github copy of wofpy copied it into the miniconda folder and it works! I see a bunch of xml but it doesn't seem to have to do with my site or anything in my db so far. |
I'm making progress, my server connection string was wrong but I fixed it then I figured out I needed to go to someplace like this: http://127.0.0.1:8080/odm2timeseries/rest/1_1/GetSites But then I got this:
it is true my table samplingfeatures does not have a column featuregeometrywkt it does have a column featuregeometry |
So if I try: I get:
|
Miguel: One thing I can say is that One quick & dirty stop-gap for you would be to manually add that column to the table, using the default field definition in the ODM2 postgresql creation script; then apply a SQL update statement to populate the latter based on the former and standard PostGIS SQL functions. If you'd like to pursue this route, I can help. |
Ok I added the featuregeometrywkt field, how should this be used? I'm guressing I can store my coordinates here as plane text so they are human readable? what implications does this have for the mapping on OMD2 Admin? from here http://127.0.0.1:8080/odm2timeseries/rest/1_1/GetSites I now get the second error starting with |
this is the issue i get: InternalError: (pymysql.err.InternalError) (1066, u"Not unique table/alias: 'results'") [SQL: u'SELECT odm2.timeseriesresultvalues.valueid AS odm2_timeseriesresultvalues_valueid, odm2.timeseriesresultvalues.resultid AS odm2_timeseriesresultvalues_resultid, odm2.timeseriesresultvalues.datavalue AS odm2_timeseriesresultvalues_datavalue, odm2.timeseriesresultvalues.valuedatetime AS odm2_timeseriesresultvalues_valuedatetime, odm2.timeseriesresultvalues.valuedatetimeutcoffset AS odm2_timeseriesresultvalues_valuedatetimeutcoffset, odm2.timeseriesresultvalues.censorcodecv AS odm2_timeseriesresultvalues_censorcodecv, odm2.timeseriesresultvalues.qualitycodecv AS odm2_timeseriesresultvalues_qualitycodecv, odm2.timeseriesresultvalues.timeaggregationinterval AS odm2_timeseriesresultvalues_timeaggregationinterval, odm2.timeseriesresultvalues.timeaggregationintervalunitsid AS odm2_timeseriesresultvalues_timeaggregationintervalunitsid \nFROM odm2.timeseriesresultvalues INNER JOIN (odm2.results INNER JOIN odm2.timeseriesresults ON odm2.results.resultid = odm2.timeseriesresults.resultid) ON odm2.timeseriesresults.resultid = odm2.timeseriesresultvalues.resultid INNER JOIN odm2.results ON odm2.results.resultid = odm2.timeseriesresults.resultid INNER JOIN odm2.variables ON odm2.variables.variableid = odm2.results.variableid \nWHERE odm2.variables.variablecode = %(variablecode_1)s GROUP BY odm2.variables.variableid'] [parameters: {u'variablecode_1': u'USU3'}]` |
In response to @miguelcleon's last post:
Regarding implications for ODM2 Admin: I tend to be an incrementalist, so my suggestion for now is to ignore the new As a I said earlier, you can then manually update UPDATE odm2.samplingfeatures SET featuregeometrywkt = ST_AsText(featuregeometry) You can add a A WKT representation of point geometry looks like this: |
@sreeder, thanks for the error report. @valentinedwv won't be at the BiGCZ call today. But we can see if there are any commonalities between the errors you and @miguelcleon are running into, and if there's anything we can do to mover forward a bit. @sreeder, have you tried running WOFpy against the Little Bear sample database downloaded directly from github, to ensure that it's 100% the same as what the San Diego team deployed with WOFpy on their system? |
I think this issue is ironed out in the new documentation: #124 ... At least the original intent of this issue. |
I'm leaving this open for now. I'd like to go over these discussions next week, to see if there's anything of value for documentation or future discussion ... before closing. |
No description provided.
The text was updated successfully, but these errors were encountered: