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

Installing HydroQGIS #1

Open
pinhead001 opened this issue Dec 22, 2015 · 5 comments
Open

Installing HydroQGIS #1

pinhead001 opened this issue Dec 22, 2015 · 5 comments

Comments

@pinhead001
Copy link

I am interested in testing the hydroqgis plugin. I cloned the repository and copied it to the following directory:

C:\Program Files\QGIS Lyon\apps\qgis\plugins\HydroData

Running Qgis 2.12.1-Lyon, I am not able to see the python plugins installer option under the plugins menu or within the Manage and Install Plugins dialog.

Do you have any suggestions on the steps required to install and test the plugin?

@hellkite500
Copy link
Owner

Chris,

When QGIS started, did it come up with any errors? Also, do you have scipy
installed? It is a dependency of the flood frequency module, and it can be
tricky to install correctly on Windows.

Nels

On Tue, Dec 22, 2015, 1:40 PM Chris Nelson [email protected] wrote:

I am interested in testing the hydroqgis plugin I cloned the repository
and copied it to the following directory:

C:\Program Files\QGIS Lyon\apps\qgis\plugins\HydroData

Running Qgis 2121-Lyon, I am not able to see the python plugins installer
option under the plugins menu or within the Manage and Install Plugins
dialog

Do you have any suggestions on the steps required to install and test the
plugin?


Reply to this email directly or view it on GitHub
#1.

@pinhead001
Copy link
Author

No errors on QGIS startup. scipy is installed and appears to be working. I had the plugin in the wrong directory, it needed to be in C:\Program Files\QGIS Lyon\apps\qgis\python\plugins

So now the problem appears to be installing pandas for the QGIS python. I have tried several tactics to get pandas installed, but to no avail. Are you running on windows or nix? Any suggestions?

@hellkite500
Copy link
Owner

Run predominately on Linux. Was in the process of testing on Windows when I
ran across the scipy issue. Are you running more than one version of
python by any chance? Pandas needs to be in the Python path of the Python
version used by QGIS. If you used the osgeo installer, it has a standalone
Python packaged with it, and you have to make sure the packages are
installed under that.

On Tue, Dec 22, 2015, 4:01 PM Chris Nelson [email protected] wrote:

No errors on QGIS startup. scipy is installed and appears to be working. I
had the plugin in the wrong directory, it needed to be in C:\Program
Files\QGIS Lyon\apps\qgis\python\plugins

So now the problem appears to be installing pandas for the QGIS python. I
have tried several tactics to get pandas installed, but to no avail. Are
you running on windows or nix? Any suggestions?


Reply to this email directly or view it on GitHub
#1 (comment)
.

@gourikadam
Copy link

gourikadam commented Aug 3, 2017

Trying to Install HydroQGIS on windows 32 bit version by placing the directory in python, plugin folder of QGIS 2.18 .
Steps followed were

  1. Unzip the folder HydroQGIS-master.zip
    2.Renaming it to HydroQGIS
    3.Copying the folder in <QGIS_2.18\apps\qgis\python\plugins> path
  2. Copying all the files located in <QGIS_2.18\apps\qgis\python\plugins\HydroQGIS\HydroData>to one level up ie in <<QGIS_2.18\apps\qgis\python\plugins\HydroQGIS> folder
  3. Restarting QGIS again

Error is
"no module named HydroData.services.Point
Traceback (most recent call last):
File "E:/Hydro/QGIS_2.18/apps/qgis/./python\qgis\utils.py", line 333, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "E:/Hydro/QGIS_2.18/apps/qgis/./python/plugins\HydroQGIS_init_.py", line 34, in classFactory
from .hydro_data import HydroData
File "E:/Hydro/QGIS_2.18/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "E:/Hydro/QGIS_2.18/apps/qgis/./python/plugins\HydroQGIS\hydro_data.py", line 32, in
from tools.Deliniation import DeliniationTool
File "E:/Hydro/QGIS_2.18/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "E:/Hydro/QGIS_2.18/apps/qgis/./python/plugins\HydroQGIS\tools\Deliniation.py", line 32, in
from HydroData.services.Point import PointWorker
File "E:/Hydro/QGIS_2.18/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: No module named HydroData.services.Point "

@hellkite500
Copy link
Owner

@gourikadam I have not tested this plugin in a windows environment, and I'm not super familiar with the required directory structures for Qgis on windows. The error is coming from, I think, an issue with directory names. The plugin folder name should be HydroData. I think if you simply extract HydroQGIS-master.zip to QGIS_2.18\apps\qgis\python\plugins (or simply rename your HydroQGIS directory to HydroData) then python will be able to find the correct modules.

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

3 participants