Git Product home page Git Product logo

Comments (8)

biglimp avatar biglimp commented on September 26, 2024

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.

evbla avatar evbla commented on September 26, 2024

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.

j3r3m1 avatar j3r3m1 commented on September 26, 2024

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.

evbla avatar evbla commented on September 26, 2024

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.

j3r3m1 avatar j3r3m1 commented on September 26, 2024

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.

evbla avatar evbla commented on September 26, 2024

I am using numba version 0.56.4. And no it is not the first time using UMEP.

from umep-processing.

j3r3m1 avatar j3r3m1 commented on September 26, 2024

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.

biglimp avatar biglimp commented on September 26, 2024

As this seems solved, I will close this.

from umep-processing.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.