3liz / py-qgis-server

QGIS embbeded WMS/WFS/WCS asynchronous scalable http server
https://docs.3liz.org/py-qgis-server
Mozilla Public License 2.0
68 stars 16 forks source link

I did not install 'build.manifest'. #31

Closed yamamoto-ryuzo closed 2 years ago

yamamoto-ryuzo commented 2 years ago

I'm trying to install py-qgis-server from 'pip install py-qgis-server'. However, I get the error [Errno 2] No such file or directory: '/usr/local/lib/python3.8/dist-packages/pyqgisserver/build.manifest'. Is this a mistake in the installation? I did not install 'build.manifest'.

--------Err root@i-16100000205417:/home/ubuntu# qgisserver WARNING: Failed to read manifest ! [Errno 2] No such file or directory: '/usr/local/lib/python3.8/dist-packages/pyqgisserver/build.manifest' Application path not initialized WARNING: Failed to load 'PSutil', system metrics will not be collected Traceback (most recent call last): File "/usr/local/bin/qgisserver", line 5, in from pyqgisserver.server import main File "/usr/local/lib/python3.8/dist-packages/pyqgisserver/server.py", line 22, in from .runtime import run_server File "/usr/local/lib/python3.8/dist-packages/pyqgisserver/runtime.py", line 36, in from .qgspool import create_poolserver File "/usr/local/lib/python3.8/dist-packages/pyqgisserver/qgspool.py", line 33, in from .qgsworker import QgsRequestHandler File "/usr/local/lib/python3.8/dist-packages/pyqgisserver/qgsworker.py", line 47, in 'PATCH': QgsServerRequest.PatchMethod, AttributeError: type object 'QgsServerRequest' has no attribute 'PatchMethod'

yamamoto-ryuzo commented 2 years ago

"is build.manifest missing ? #12" is the same!

dmarteau commented 2 years ago

I'm trying to install py-qgis-server from 'pip install py-qgis-server'. However, I get the error [Errno 2] No such file or directory: '/usr/local/lib/python3.8/dist-packages/pyqgisserver/build.manifest'.

Does this occurs at pip install or when running the server ? FYI, I have just installed py-qgis-server from pip install ... and had no errors.

dmarteau commented 2 years ago

Ok, the problem occurs is at runtime....

When building from Makefile the manifest is correctly added to the package but not in the package distributed from pypi. @Gustry can you check the packaging for pypi ?

yamamoto-ryuzo commented 2 years ago

I used the following method to install it.

sudo su

pipのインストール

apt update apt -y install python3-pip # apt -y install python3-zmq apt -y install python3-zmq-dbg

py-qgis-serverのインストール

pip install py-qgis-server

Gustry commented 2 years ago

It's fixed in the next version released on PyPi.

I'm fine to make a new version, @dmarteau what do you think ?

dmarteau commented 2 years ago

This is is a warning and do not prevent running the server. This can wait the next version (coming soon)