You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have installed the current repo and latest release zip, during the python setup.py install package installed successfully, but when I imported the package as
import pysheds.grid as Grid
it throw error as
`Cell In[2], line 1
----> 1 from pysheds.grid import Grid
File c:\Python312\Lib\site-packages\pysheds-0.3.5-py3.12.egg\pysheds\grid.py:7
5 _HAS_NUMBA = False
6 if _HAS_NUMBA:
----> 7 from pysheds.sgrid import sGrid as Grid # noqa: F401
8 else:
9 from pysheds.pgrid import Grid as Grid # noqa: F401
File c:\Python312\Lib\site-packages\pysheds-0.3.5-py3.12.egg\pysheds\sgrid.py:30
27 from pysheds.sview import View, ViewFinder
29 # Import numba functions
---> 30 import pysheds._sgrid as _self
31 from . import projection
33 class sGrid():
File c:\Python312\Lib\site-packages\pysheds-0.3.5-py3.12.egg\pysheds_sgrid.py:8
4 from numba.types import float64, int64, uint32, uint16, uint8, boolean, UniTuple, Tuple, List, DictType, void
6 # Functions for 'flowdir'
----> 8 @njit(int64[:,:](float64[:,:], float64, float64, UniTuple(int64, 8), boolean[:,:],
9 int64, int64, int64),
10 parallel=True,
...
339 self._locator = locator
340 # Use filename base name as module name to avoid conflict between
341 # foo/init.py and foo/foo.py
RuntimeError: cannot cache function '_d8_flowdir_numba': no locator available for file 'c:\Python312\Lib\site-packages\pysheds-0.3.5-py3.12.egg\pysheds\_sgrid.py'`
when i directly install the pysheds i works fine, why it is show this error when setup locally?
The text was updated successfully, but these errors were encountered:
I have installed the current repo and latest release zip, during the python setup.py install package installed successfully, but when I imported the package as
import pysheds.grid as Grid
it throw error as
`Cell In[2], line 1
----> 1 from pysheds.grid import Grid
File c:\Python312\Lib\site-packages\pysheds-0.3.5-py3.12.egg\pysheds\grid.py:7
5 _HAS_NUMBA = False
6 if _HAS_NUMBA:
----> 7 from pysheds.sgrid import sGrid as Grid # noqa: F401
8 else:
9 from pysheds.pgrid import Grid as Grid # noqa: F401
File c:\Python312\Lib\site-packages\pysheds-0.3.5-py3.12.egg\pysheds\sgrid.py:30
27 from pysheds.sview import View, ViewFinder
29 # Import numba functions
---> 30 import pysheds._sgrid as _self
31 from . import projection
33 class sGrid():
File c:\Python312\Lib\site-packages\pysheds-0.3.5-py3.12.egg\pysheds_sgrid.py:8
4 from numba.types import float64, int64, uint32, uint16, uint8, boolean, UniTuple, Tuple, List, DictType, void
6 # Functions for 'flowdir'
----> 8 @njit(int64[:,:](float64[:,:], float64, float64, UniTuple(int64, 8), boolean[:,:],
9 int64, int64, int64),
10 parallel=True,
...
339 self._locator = locator
340 # Use filename base name as module name to avoid conflict between
341 # foo/init.py and foo/foo.py
RuntimeError: cannot cache function '_d8_flowdir_numba': no locator available for file 'c:\Python312\Lib\site-packages\pysheds-0.3.5-py3.12.egg\pysheds\_sgrid.py'`
when i directly install the pysheds i works fine, why it is show this error when setup locally?
The text was updated successfully, but these errors were encountered: