Comments (5)
Hi @wcwoo, this error is caused by the root pysteps repository folder being recognized as the pysteps package. Any directory on sys.path with a name that matches the package name (pysteps in this case) that is being looked for, will be recognized as contributing modules and sub-packages to that package. The error is happening because the the first directory in sys.path is the current working directory.
More information about this here.
from pysteps.
Hi @wcwoo!
What is your working directory?
I was able to reproduce your error when launching python from within the pysteps folder with the source code:
(pysteps) -bash-4.2$ pwd
/home/ned/pysteps
(pysteps) -bash-4.2$ python
Python 3.6.6 |Anaconda, Inc.| (default, Oct 9 2018, 12:34:16)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pysteps
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ned/pysteps/pysteps/__init__.py", line 15, in <module>
from . import motion
File "/home/ned/pysteps/pysteps/motion/__init__.py", line 3, in <module>
from .interface import get_method
File "/home/ned/pysteps/pysteps/motion/interface.py", line 5, in <module>
from pysteps.motion.vet import vet
File "/home/ned/pysteps/pysteps/motion/vet.py", line 30, in <module>
from pysteps.motion._vet import _warp, _cost_function
ModuleNotFoundError: No module named 'pysteps.motion._vet'
>>>
Moving to any other folder avoids the error:
(pysteps) -bash-4.2$ cd examples/
(pysteps) -bash-4.2$ pwd
/home/ned/pysteps/examples
(pysteps) -bash-4.2$ python
Python 3.6.6 |Anaconda, Inc.| (default, Oct 9 2018, 12:34:16)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pysteps
Pysteps configuration file found at: /home/ned/.pysteps/pystepsrc
>>>
I'm not sure what it's causing the problem, my guess is that there is some sort of path conflict when pysteps is imported from within its main directory. Do you have a better idea @aperezhortal? Is there an easy fix we can implement?
from pysteps.
My working directory was just /home/wcwoo/pysteps
. I confirm that invoking python
from another directory avoids the problem. Thanks!
(pysteps) wcwoo@wcwoo-VirtualBox:~/pysteps$ cd examples
(pysteps) wcwoo@wcwoo-VirtualBox:~/pysteps/examples$ python
Python 3.6.7 | packaged by conda-forge | (default, Nov 21 2018, 03:09:43)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pysteps
Pysteps configuration file found at: /home/wcwoo/.local/lib/python3.6/site-packages/pysteps-0.2-py3.6-linux-x86_64.egg/pysteps/pystepsrc
from pysteps.
OK, so this is actually normal behavior rather than a bug. Thanks @aperezhortal for the explanation!
from pysteps.
I see. Thanks for your explanations.
from pysteps.
Related Issues (20)
- how to import my own dataset (.tiff) HOT 2
- location parameter L2 in the SAL verification HOT 6
- Insert Nowcasting Model PhaSt in the pySTEPS package HOT 11
- STEPS-blending: Losing small scale features in the first time steps and other issues HOT 4
- STEPS-blending: deterministic mode not working
- Install pysteps on Mac with Apple silicon processors HOT 4
- fft_method pyfftw causes unexpected noise additions when using multi-threading HOT 5
- missing module HOT 3
- Satellite data as input for pysteps HOT 3
- Structure parameter in SAL verification metric
- No reproducibility of steps blended nowcast when using noise_stddev_adj='auto' HOT 4
- Possibility of generating intermediate values between data points? HOT 2
- Add Kalman-filter based post-processing to blending scheme HOT 1
- Cannot update coverage reports to codecov
- CI fails to install pysteps on macos-latest
- Can pysteps be applied to prediction of non-radar rainfall data? for example imerg? HOT 3
- Advection Correction HOT 4
- When running the MRMS data, the following error occurs HOT 8
- CRPS calculation HOT 1
- a problem with clip_domain HOT 2
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 pysteps.