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

Documentation outdated #669

Open
sehHeiden opened this issue Nov 27, 2022 · 1 comment
Open

Documentation outdated #669

sehHeiden opened this issue Nov 27, 2022 · 1 comment

Comments

@sehHeiden
Copy link

sehHeiden commented Nov 27, 2022

Description

I tried to start using PyWPS. I had some problems I want to hint at at the documentation at the website documentation. Background: For a study project I shall get a cost path algorithm running with pywps.

First of all, the documentation refers to PyWPS 4.3, while the version in pypi is 4.5.2. Additionally, it is asked to install python-gdal on Ubuntu. When I checked correctly it exists for Ubuntu 18.04 only. I could not install pywps with the pip command $ sudo pip install -e git+https://github.com/geopython/pywps.git@master#egg=pywps-dev. But I could install the version from pypi, which is not listed in the documentation.
Then I wanted to test my installation with pywps-flask. Flask is not listed in the requirements of pywps perhaps that is a good idea. When I you refer to pywps-flask on several sites.

Travis-ci linked is: https://travis-ci.org/github/geopython/pywps. Which is not the current version. The last build attempt was about a year old.

I could not get pywps-flask running. I used the method mentioned on pypi. I to install pywps-flask I needed the https link instead of the git link. Even after turning of the firewall. Then I tried to run it, but it looks to me, that the versions of pywps and pywps-flask do not match?
The stacktrace shows that: pywps-flask\processes\area.py tries to import temp_dir from pywps.pywpsserver. But my installation of pywps 4.5.2 does not find any modul pywpsserver.
While am I at it:
pycharm shows a warning for pywps-flask/demp.py because pywps.configuration is not added in the init.py.
pyflask\process\feature_count.py try to import from pywps.app.basic import xpath_ns. With xpath_ns is not existing. pywps-flask\processes\grass_buffer.py uses grasses. Which should be hinted how to get it?

Environment

  • operating system: Ubuntu 20.04
  • Python version: 3.10
  • PyWPS version: 4.5
  • source/distribution: PyPI
@IceflowRE
Copy link

The documentation is very much outdated and also lacking information everywhere. There is not even a step by step tutorial to setup a production server. Just use apache, oh and also here the links to installation and configuration, but they are not helping. Everywhere is pyflask used as an example, but also said do not use in production.

Configuration documentation and the sample file are also contradict to each other.

outputpath and outputurl must correspond. outputpath is the name of the resulting target directory, where all output data files are stored (with unique names). outputurl is the corresponding full URL, which is targeting to outputpath directory.

Example: outputpath=/var/www/wps/outputs shall correspond with outputurl=http://foo.bar/wps/outputs

Meanwhile the example:

outputurl=/data/
outputpath=/tmp/outputs/

At this point, some should consider this as abandonware.

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