Using Hot Spot Analysis Plugin on QGIS 3? Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?QGIS 3 Plugin folder locationHow to install Python library (Openpyxl) in QGIS 2.18.16?Installing QGIS Statist plugin in Mac OS X?Using Space Syntax Analysis plugin for QGIS?Plugin error: Photo2shape QGIS PisaQuickMap Services plugin for QGIS corruptedsphinx to document QGIS pluginPic2Map QGIS Plugin Installation IssueWhere is uninstalled plugin tab in Plugin window of QGIS?How to install HouseNumbering Plugin for QGIS 3.2?QGIS 3 plugin not able to detect Python packagesUpdate Easy AHP plugin of QGIS 3.6
Should I discuss the type of campaign with my players?
Why are there no cargo aircraft with "flying wing" design?
Is there any avatar supposed to be born between the death of Krishna and the birth of Kalki?
Right-skewed distribution with mean equals to mode?
What LEGO pieces have "real-world" functionality?
I am not a queen, who am I?
Is 1 ppb equal to 1 μg/kg?
Why is "Consequences inflicted." not a sentence?
What are the motives behind Cersei's orders given to Bronn?
Is the address of a local variable a constexpr?
How do I keep my slimes from escaping their pens?
Does surprise arrest existing movement?
Why is "Captain Marvel" translated as male in Portugal?
Diagram with tikz
Why don't the Weasley twins use magic outside of school if the Trace can only find the location of spells cast?
Models of set theory where not every set can be linearly ordered
What's the difference between `auto x = vector<int>()` and `vector<int> x`?
What is the longest distance a 13th-level monk can jump while attacking on the same turn?
Why aren't air breathing engines used as small first stages
Gastric acid as a weapon
How can players work together to take actions that are otherwise impossible?
Letter Boxed validator
How widely used is the term Treppenwitz? Is it something that most Germans know?
Sorting numerically
Using Hot Spot Analysis Plugin on QGIS 3?
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?QGIS 3 Plugin folder locationHow to install Python library (Openpyxl) in QGIS 2.18.16?Installing QGIS Statist plugin in Mac OS X?Using Space Syntax Analysis plugin for QGIS?Plugin error: Photo2shape QGIS PisaQuickMap Services plugin for QGIS corruptedsphinx to document QGIS pluginPic2Map QGIS Plugin Installation IssueWhere is uninstalled plugin tab in Plugin window of QGIS?How to install HouseNumbering Plugin for QGIS 3.2?QGIS 3 plugin not able to detect Python packagesUpdate Easy AHP plugin of QGIS 3.6
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I need a help on trying to use the Hot Spot Analysis Plugin on QGIS Noosa. I am not able to install the module "moran".
qgis-plugins qgis-3 installation
New contributor
add a comment |
I need a help on trying to use the Hot Spot Analysis Plugin on QGIS Noosa. I am not able to install the module "moran".
qgis-plugins qgis-3 installation
New contributor
intall using something like this gis.stackexchange.com/a/269766/49538
– Fran Raga
Apr 9 at 7:42
What kind of error do you encounter when you try to use the plugin?
– Kadir Şahbaz
Apr 9 at 21:16
Hi Kadir, this is the error I found: This is the error I found :Couldn't load plugin 'HotspotAnalysis' due to an error when calling its classFactory() method ModuleNotFoundError: No module named 'moran'.
– user140183
Apr 10 at 7:54
1
Please add the error message to your question.
– Kadir Şahbaz
Apr 10 at 9:20
Did you follow the instructions to install Pysal, as mentioned in the plugin description: "The plugin requires Pysal (see repository for installation instruction)" ?
– csk
Apr 11 at 19:01
add a comment |
I need a help on trying to use the Hot Spot Analysis Plugin on QGIS Noosa. I am not able to install the module "moran".
qgis-plugins qgis-3 installation
New contributor
I need a help on trying to use the Hot Spot Analysis Plugin on QGIS Noosa. I am not able to install the module "moran".
qgis-plugins qgis-3 installation
qgis-plugins qgis-3 installation
New contributor
New contributor
edited Apr 10 at 8:22
Kadir Şahbaz
4,69221531
4,69221531
New contributor
asked Apr 9 at 7:38
user140183user140183
111
111
New contributor
New contributor
intall using something like this gis.stackexchange.com/a/269766/49538
– Fran Raga
Apr 9 at 7:42
What kind of error do you encounter when you try to use the plugin?
– Kadir Şahbaz
Apr 9 at 21:16
Hi Kadir, this is the error I found: This is the error I found :Couldn't load plugin 'HotspotAnalysis' due to an error when calling its classFactory() method ModuleNotFoundError: No module named 'moran'.
– user140183
Apr 10 at 7:54
1
Please add the error message to your question.
– Kadir Şahbaz
Apr 10 at 9:20
Did you follow the instructions to install Pysal, as mentioned in the plugin description: "The plugin requires Pysal (see repository for installation instruction)" ?
– csk
Apr 11 at 19:01
add a comment |
intall using something like this gis.stackexchange.com/a/269766/49538
– Fran Raga
Apr 9 at 7:42
What kind of error do you encounter when you try to use the plugin?
– Kadir Şahbaz
Apr 9 at 21:16
Hi Kadir, this is the error I found: This is the error I found :Couldn't load plugin 'HotspotAnalysis' due to an error when calling its classFactory() method ModuleNotFoundError: No module named 'moran'.
– user140183
Apr 10 at 7:54
1
Please add the error message to your question.
– Kadir Şahbaz
Apr 10 at 9:20
Did you follow the instructions to install Pysal, as mentioned in the plugin description: "The plugin requires Pysal (see repository for installation instruction)" ?
– csk
Apr 11 at 19:01
intall using something like this gis.stackexchange.com/a/269766/49538
– Fran Raga
Apr 9 at 7:42
intall using something like this gis.stackexchange.com/a/269766/49538
– Fran Raga
Apr 9 at 7:42
What kind of error do you encounter when you try to use the plugin?
– Kadir Şahbaz
Apr 9 at 21:16
What kind of error do you encounter when you try to use the plugin?
– Kadir Şahbaz
Apr 9 at 21:16
Hi Kadir, this is the error I found: This is the error I found :Couldn't load plugin 'HotspotAnalysis' due to an error when calling its classFactory() method ModuleNotFoundError: No module named 'moran'.
– user140183
Apr 10 at 7:54
Hi Kadir, this is the error I found: This is the error I found :Couldn't load plugin 'HotspotAnalysis' due to an error when calling its classFactory() method ModuleNotFoundError: No module named 'moran'.
– user140183
Apr 10 at 7:54
1
1
Please add the error message to your question.
– Kadir Şahbaz
Apr 10 at 9:20
Please add the error message to your question.
– Kadir Şahbaz
Apr 10 at 9:20
Did you follow the instructions to install Pysal, as mentioned in the plugin description: "The plugin requires Pysal (see repository for installation instruction)" ?
– csk
Apr 11 at 19:01
Did you follow the instructions to install Pysal, as mentioned in the plugin description: "The plugin requires Pysal (see repository for installation instruction)" ?
– csk
Apr 11 at 19:01
add a comment |
1 Answer
1
active
oldest
votes
The module moran
is a part of pysal
package. So you can't install it using pip or something.
Developers of pysal
changed the folder structure of the package. This is probably why you can't use the plugin or are getting errors. Hotspot Analysis plugin needs an update, but you follow such a temporary solution I explain below.
If you look at hotspot_analysis.py
file (QGIS 3 Plugins folder location), you will see the lines (line numbers may be different than yours. I skipped the indentation).
Line 39 from pysal.esda.getisord import *
Line 40 from pysal.esda.moran import *
Line 41 from pysal.weights.Distance import DistanceBand
.
Line 472 thresh = pysal.min_threshold_dist_from_shapefile(path)
.
Line 600 moran = pysal.Moran(y, w)
.
Line 608 w = pysal.knnW_from_shapefile(layerName.split("|")[0], k=weightValue, p=1)
.
Line 613 w = pysal.queen_from_shapefile(layerName.split("|")[0])
Change those lines into the lines below, respectively.
from pysal.explore.esda.getisord import *
from pysal.explore.esda.moran import *
from pysal.lib.weights import DistanceBand, Queen, KNN, user
.
thresh = user.min_threshold_dist_from_shapefile(path)
.
moran = Moran(y, w)
.
w = KNN.from_shapefile(layerName.split("|")[0], k=weightValue, p=1)
.
w = Queen.from_shapefile(layerName.split("|")[0])
Save the changes and re-activate the plugin or re-open QGIS.
Thanks Kadir. You are simply Amazing. Your recommendations worked perfectly.
– user140183
Apr 10 at 9:12
But it solves temporarily. When I select a line layer, I encounter an error, as an example.
– Kadir Şahbaz
Apr 10 at 9:17
I am afraid I also encountered an error as well while performing the analysis. This is the error I got "TypeError: ufunc 'multiply' did not contain a loop with signature matching types dtype(' " Any idea how to work around this.
– user140183
Apr 10 at 9:27
If I use a 'string' field, I get the same error, too. I have no idea.
– Kadir Şahbaz
Apr 10 at 9:35
This explains why you can only use a numeric field while using ArcGIS. I will try to use a numeric field. Thanks
– user140183
Apr 10 at 9:40
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "79"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
user140183 is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f318202%2fusing-hot-spot-analysis-plugin-on-qgis-3%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The module moran
is a part of pysal
package. So you can't install it using pip or something.
Developers of pysal
changed the folder structure of the package. This is probably why you can't use the plugin or are getting errors. Hotspot Analysis plugin needs an update, but you follow such a temporary solution I explain below.
If you look at hotspot_analysis.py
file (QGIS 3 Plugins folder location), you will see the lines (line numbers may be different than yours. I skipped the indentation).
Line 39 from pysal.esda.getisord import *
Line 40 from pysal.esda.moran import *
Line 41 from pysal.weights.Distance import DistanceBand
.
Line 472 thresh = pysal.min_threshold_dist_from_shapefile(path)
.
Line 600 moran = pysal.Moran(y, w)
.
Line 608 w = pysal.knnW_from_shapefile(layerName.split("|")[0], k=weightValue, p=1)
.
Line 613 w = pysal.queen_from_shapefile(layerName.split("|")[0])
Change those lines into the lines below, respectively.
from pysal.explore.esda.getisord import *
from pysal.explore.esda.moran import *
from pysal.lib.weights import DistanceBand, Queen, KNN, user
.
thresh = user.min_threshold_dist_from_shapefile(path)
.
moran = Moran(y, w)
.
w = KNN.from_shapefile(layerName.split("|")[0], k=weightValue, p=1)
.
w = Queen.from_shapefile(layerName.split("|")[0])
Save the changes and re-activate the plugin or re-open QGIS.
Thanks Kadir. You are simply Amazing. Your recommendations worked perfectly.
– user140183
Apr 10 at 9:12
But it solves temporarily. When I select a line layer, I encounter an error, as an example.
– Kadir Şahbaz
Apr 10 at 9:17
I am afraid I also encountered an error as well while performing the analysis. This is the error I got "TypeError: ufunc 'multiply' did not contain a loop with signature matching types dtype(' " Any idea how to work around this.
– user140183
Apr 10 at 9:27
If I use a 'string' field, I get the same error, too. I have no idea.
– Kadir Şahbaz
Apr 10 at 9:35
This explains why you can only use a numeric field while using ArcGIS. I will try to use a numeric field. Thanks
– user140183
Apr 10 at 9:40
add a comment |
The module moran
is a part of pysal
package. So you can't install it using pip or something.
Developers of pysal
changed the folder structure of the package. This is probably why you can't use the plugin or are getting errors. Hotspot Analysis plugin needs an update, but you follow such a temporary solution I explain below.
If you look at hotspot_analysis.py
file (QGIS 3 Plugins folder location), you will see the lines (line numbers may be different than yours. I skipped the indentation).
Line 39 from pysal.esda.getisord import *
Line 40 from pysal.esda.moran import *
Line 41 from pysal.weights.Distance import DistanceBand
.
Line 472 thresh = pysal.min_threshold_dist_from_shapefile(path)
.
Line 600 moran = pysal.Moran(y, w)
.
Line 608 w = pysal.knnW_from_shapefile(layerName.split("|")[0], k=weightValue, p=1)
.
Line 613 w = pysal.queen_from_shapefile(layerName.split("|")[0])
Change those lines into the lines below, respectively.
from pysal.explore.esda.getisord import *
from pysal.explore.esda.moran import *
from pysal.lib.weights import DistanceBand, Queen, KNN, user
.
thresh = user.min_threshold_dist_from_shapefile(path)
.
moran = Moran(y, w)
.
w = KNN.from_shapefile(layerName.split("|")[0], k=weightValue, p=1)
.
w = Queen.from_shapefile(layerName.split("|")[0])
Save the changes and re-activate the plugin or re-open QGIS.
Thanks Kadir. You are simply Amazing. Your recommendations worked perfectly.
– user140183
Apr 10 at 9:12
But it solves temporarily. When I select a line layer, I encounter an error, as an example.
– Kadir Şahbaz
Apr 10 at 9:17
I am afraid I also encountered an error as well while performing the analysis. This is the error I got "TypeError: ufunc 'multiply' did not contain a loop with signature matching types dtype(' " Any idea how to work around this.
– user140183
Apr 10 at 9:27
If I use a 'string' field, I get the same error, too. I have no idea.
– Kadir Şahbaz
Apr 10 at 9:35
This explains why you can only use a numeric field while using ArcGIS. I will try to use a numeric field. Thanks
– user140183
Apr 10 at 9:40
add a comment |
The module moran
is a part of pysal
package. So you can't install it using pip or something.
Developers of pysal
changed the folder structure of the package. This is probably why you can't use the plugin or are getting errors. Hotspot Analysis plugin needs an update, but you follow such a temporary solution I explain below.
If you look at hotspot_analysis.py
file (QGIS 3 Plugins folder location), you will see the lines (line numbers may be different than yours. I skipped the indentation).
Line 39 from pysal.esda.getisord import *
Line 40 from pysal.esda.moran import *
Line 41 from pysal.weights.Distance import DistanceBand
.
Line 472 thresh = pysal.min_threshold_dist_from_shapefile(path)
.
Line 600 moran = pysal.Moran(y, w)
.
Line 608 w = pysal.knnW_from_shapefile(layerName.split("|")[0], k=weightValue, p=1)
.
Line 613 w = pysal.queen_from_shapefile(layerName.split("|")[0])
Change those lines into the lines below, respectively.
from pysal.explore.esda.getisord import *
from pysal.explore.esda.moran import *
from pysal.lib.weights import DistanceBand, Queen, KNN, user
.
thresh = user.min_threshold_dist_from_shapefile(path)
.
moran = Moran(y, w)
.
w = KNN.from_shapefile(layerName.split("|")[0], k=weightValue, p=1)
.
w = Queen.from_shapefile(layerName.split("|")[0])
Save the changes and re-activate the plugin or re-open QGIS.
The module moran
is a part of pysal
package. So you can't install it using pip or something.
Developers of pysal
changed the folder structure of the package. This is probably why you can't use the plugin or are getting errors. Hotspot Analysis plugin needs an update, but you follow such a temporary solution I explain below.
If you look at hotspot_analysis.py
file (QGIS 3 Plugins folder location), you will see the lines (line numbers may be different than yours. I skipped the indentation).
Line 39 from pysal.esda.getisord import *
Line 40 from pysal.esda.moran import *
Line 41 from pysal.weights.Distance import DistanceBand
.
Line 472 thresh = pysal.min_threshold_dist_from_shapefile(path)
.
Line 600 moran = pysal.Moran(y, w)
.
Line 608 w = pysal.knnW_from_shapefile(layerName.split("|")[0], k=weightValue, p=1)
.
Line 613 w = pysal.queen_from_shapefile(layerName.split("|")[0])
Change those lines into the lines below, respectively.
from pysal.explore.esda.getisord import *
from pysal.explore.esda.moran import *
from pysal.lib.weights import DistanceBand, Queen, KNN, user
.
thresh = user.min_threshold_dist_from_shapefile(path)
.
moran = Moran(y, w)
.
w = KNN.from_shapefile(layerName.split("|")[0], k=weightValue, p=1)
.
w = Queen.from_shapefile(layerName.split("|")[0])
Save the changes and re-activate the plugin or re-open QGIS.
answered Apr 10 at 8:18
Kadir ŞahbazKadir Şahbaz
4,69221531
4,69221531
Thanks Kadir. You are simply Amazing. Your recommendations worked perfectly.
– user140183
Apr 10 at 9:12
But it solves temporarily. When I select a line layer, I encounter an error, as an example.
– Kadir Şahbaz
Apr 10 at 9:17
I am afraid I also encountered an error as well while performing the analysis. This is the error I got "TypeError: ufunc 'multiply' did not contain a loop with signature matching types dtype(' " Any idea how to work around this.
– user140183
Apr 10 at 9:27
If I use a 'string' field, I get the same error, too. I have no idea.
– Kadir Şahbaz
Apr 10 at 9:35
This explains why you can only use a numeric field while using ArcGIS. I will try to use a numeric field. Thanks
– user140183
Apr 10 at 9:40
add a comment |
Thanks Kadir. You are simply Amazing. Your recommendations worked perfectly.
– user140183
Apr 10 at 9:12
But it solves temporarily. When I select a line layer, I encounter an error, as an example.
– Kadir Şahbaz
Apr 10 at 9:17
I am afraid I also encountered an error as well while performing the analysis. This is the error I got "TypeError: ufunc 'multiply' did not contain a loop with signature matching types dtype(' " Any idea how to work around this.
– user140183
Apr 10 at 9:27
If I use a 'string' field, I get the same error, too. I have no idea.
– Kadir Şahbaz
Apr 10 at 9:35
This explains why you can only use a numeric field while using ArcGIS. I will try to use a numeric field. Thanks
– user140183
Apr 10 at 9:40
Thanks Kadir. You are simply Amazing. Your recommendations worked perfectly.
– user140183
Apr 10 at 9:12
Thanks Kadir. You are simply Amazing. Your recommendations worked perfectly.
– user140183
Apr 10 at 9:12
But it solves temporarily. When I select a line layer, I encounter an error, as an example.
– Kadir Şahbaz
Apr 10 at 9:17
But it solves temporarily. When I select a line layer, I encounter an error, as an example.
– Kadir Şahbaz
Apr 10 at 9:17
I am afraid I also encountered an error as well while performing the analysis. This is the error I got "TypeError: ufunc 'multiply' did not contain a loop with signature matching types dtype(' " Any idea how to work around this.
– user140183
Apr 10 at 9:27
I am afraid I also encountered an error as well while performing the analysis. This is the error I got "TypeError: ufunc 'multiply' did not contain a loop with signature matching types dtype(' " Any idea how to work around this.
– user140183
Apr 10 at 9:27
If I use a 'string' field, I get the same error, too. I have no idea.
– Kadir Şahbaz
Apr 10 at 9:35
If I use a 'string' field, I get the same error, too. I have no idea.
– Kadir Şahbaz
Apr 10 at 9:35
This explains why you can only use a numeric field while using ArcGIS. I will try to use a numeric field. Thanks
– user140183
Apr 10 at 9:40
This explains why you can only use a numeric field while using ArcGIS. I will try to use a numeric field. Thanks
– user140183
Apr 10 at 9:40
add a comment |
user140183 is a new contributor. Be nice, and check out our Code of Conduct.
user140183 is a new contributor. Be nice, and check out our Code of Conduct.
user140183 is a new contributor. Be nice, and check out our Code of Conduct.
user140183 is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f318202%2fusing-hot-spot-analysis-plugin-on-qgis-3%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
intall using something like this gis.stackexchange.com/a/269766/49538
– Fran Raga
Apr 9 at 7:42
What kind of error do you encounter when you try to use the plugin?
– Kadir Şahbaz
Apr 9 at 21:16
Hi Kadir, this is the error I found: This is the error I found :Couldn't load plugin 'HotspotAnalysis' due to an error when calling its classFactory() method ModuleNotFoundError: No module named 'moran'.
– user140183
Apr 10 at 7:54
1
Please add the error message to your question.
– Kadir Şahbaz
Apr 10 at 9:20
Did you follow the instructions to install Pysal, as mentioned in the plugin description: "The plugin requires Pysal (see repository for installation instruction)" ?
– csk
Apr 11 at 19:01