Comments (8)
Evelina, write the following code in your QGIS Python console and report the result. @j3r3m1 , do you have any ideas on how to solve this? I know Evelina have another Python installation (3.11) on her computer also.
import numpy
numpy.__version__
import numba
numba.__version__
from umep-processing.
Numpy version:
1.24.1
Numba version:
Traceback (most recent call last):
File "C:\OSGeo4W\apps\Python39\lib\code.py", line 90, in runcode
exec(code, self.locals)
File "", line 1, in
File "C:\OSGeo4W/apps/qgis-ltr/./python\qgis\utils.py", line 888, in _import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:\OSGeo4W\apps\Python39\lib\site-packages\numba_init.py", line 18, in
from numba.core import types, errors
File "C:\OSGeo4W/apps/qgis-ltr/./python\qgis\utils.py", line 888, in import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:\OSGeo4W\apps\Python39\lib\site-packages\numba\core\types_init.py", line 108, in
long = make_signed(np.long)
File "C:\OSGeo4W\apps\Python39\lib\site-packages\numpy_init.py", line 284, in getattr
raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'long'
Does some of the versions of numpy not support numba?
from umep-processing.
It seems this problem has been met in two other issues previously:
#543 and #30
It has been resolved using a Numpy version lower than 1.24.
Maybe we should specify the numpy library to be used ?
from umep-processing.
I changed the numpy version to 1.23.3 and it works now! I think it is good to specify the type of numba library used.
from umep-processing.
What is the numba version you are using ? Can you check using pip list and checking the version associated to numba ?
Here are the numba versions and the corresponding numpy dependency: https://numba.readthedocs.io/en/stable/user/installing.html#version-support-information
I do not really know why the numba version installed is not directly the right one (associated to the numpy dependency). Is it the first time you install UMEP ? If yes it might be that we do not check that the numba version installed works for the installed numpy version.
Should we add a way to check that
from umep-processing.
I am using numba version 0.56.4. And no it is not the first time using UMEP.
from umep-processing.
Do you remember when was the last time you updated the UMEP-processing plugin ? I suppose the problem comes from the fact that your numpy version was updated (outside UMEP update) but that the last update you made of UMEP created the version conflict...
from umep-processing.
As this seems solved, I will close this.
from umep-processing.
Related Issues (20)
- URock: Use bilinear interpolation instead of averaging when outputRaster is used
- Urock issue: simplifed vs generalised vectors HOT 7
- Urock: intermittant NumberFormatException HOT 30
- Urock: Processing issue HOT 2
- UMEP for Processing not installing on QGIS 3.22 HOT 3
- URock Prepare doesn't create BUILDINGS_WITH_HEIGHT HOT 14
- Python error when running the Morphometric Calculator (Point) algorithm HOT 6
- Error when installing UMEP for processing HOT 6
- Urock prepare: problems tmp/ folder? HOT 13
- URock problem HOT 7
- SOLWEIG warning HOT 7
- UMEP Processing / URock v2023a - crashes with Java Exception No transformation found from epsg:31255 to epsg:4326 HOT 13
- Urock prepare: building footprint optional? HOT 7
- SystemExit: 'jaydebeapi' Python package is missing HOT 10
- Trouble with Numba using Python 3.12 HOT 29
- UMEP for processing and UMEP error installing HOT 10
- UMEP > Post-Processor > Solar Radiation > SEBE (Visualisation). HOT 1
- UMEP Python Packages installing error HOT 4
- URock questions - wind speed height and roughness HOT 14
- outlier in SEBE results running on a grid HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from umep-processing.