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

setup fail by github repo of latest release version #248

Open
RahulkumarRV opened this issue Mar 21, 2024 · 0 comments
Open

setup fail by github repo of latest release version #248

RahulkumarRV opened this issue Mar 21, 2024 · 0 comments

Comments

@RahulkumarRV
Copy link

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?

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

1 participant