Comments (6)
Did you get same error when you do an import netCDF4
?
How did you install py eddy tracker?
from py-eddy-tracker.
No I didn't get any error when importing netcdf4, I tried installing pyeddytracker in multiple ways:
on my local machine, both from terminal with pip and homebrew, and directly from jupyterlab.
I also work on remote machines and tried there, in the same ways. I always encountered some kind of issue when importing the dataset.grid, which is either related to numpy or netcdf4. Today I thought the problem was solved, but after restarting my kernel I find that I can't even import py_eddy_tracker anymore, because of numpy; I get the error:
AttributeError: module 'numpy' has no attribute 'ndarray'
Thank you for the help
from py-eddy-tracker.
I am having an issue with py_eddy_tracker.dataset.grid as well.
I had to recreate the py-eddy-tracker environment after a system upgrade in the remote machine.
I created the environment from the environment.yml file:
conda env create --file environment.yml
conda activate binder-pyeddytracker
python setup.py install
The error that comes for me:
ImportError Traceback (most recent call last)
Cell In[2], line 23
21 from py_eddy_tracker.gui import GUI
22 from py_eddy_tracker.tracking import Correspondances
---> 23 from py_eddy_tracker.dataset.grid import UnRegularGridDataset
24 from py_eddy_tracker.eddy_feature import Contours
File ~/miniconda3/envs/binder-pyeddytracker/lib/python3.10/site-packages/py_eddy_tracker/dataset/grid.py:8
5 from datetime import datetime
6 import logging
----> 8 from cv2 import filter2D
9 from matplotlib.path import Path as BasePath
10 from netCDF4 import Dataset
File ~/miniconda3/envs/binder-pyeddytracker/lib/python3.10/site-packages/cv2/__init__.py:181
176 if DEBUG: print("Extra Python code for", submodule, "is loaded")
178 if DEBUG: print('OpenCV loader: DONE')
--> 181 bootstrap()
File ~/miniconda3/envs/binder-pyeddytracker/lib/python3.10/site-packages/cv2/__init__.py:153, in bootstrap()
149 if DEBUG: print("Relink everything from native cv2 module to cv2 package")
151 py_module = sys.modules.pop("cv2")
--> 153 native_module = importlib.import_module("cv2")
155 sys.modules["cv2"] = py_module
156 setattr(py_module, "_native", native_module)
File ~/miniconda3/envs/binder-pyeddytracker/lib/python3.10/importlib/__init__.py:126, in import_module(name, package)
124 break
125 level += 1
--> 126 return _bootstrap._gcd_import(name[level:], package, level)
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
from py-eddy-tracker.
Did you have same error if you only do (env creation must install also py eddy tracker package):
conda env create --file environment.yml
conda activate binder-pyeddytracker
from py-eddy-tracker.
Yes
from py-eddy-tracker.
I don't know how to solve cv2 install problem, i am not able to reproduce this pb on several platform
from py-eddy-tracker.
Related Issues (20)
- Request for help HOT 3
- Bug with matplotlib 3.8
- pixel position of grid HOT 4
- Lifetime average HOT 3
- The function in the library tried to use Numba to speed up the computation, but received an array of type numpy.ma.MaskedArray that is not supported by Numba. HOT 2
- error about eddy_identification function HOT 2
- Eddies detected on land HOT 6
- Eddy kinetic energy of different types of eddies and its calculation HOT 1
- about from py_eddy_tracker.dataset.grid import RegularGridDataset HOT 1
- Eddy detection issue HOT 3
- batch identification of eddies over multiple days from a single netCDF file HOT 14
- Request for help: No extrema found in contour of xxx pixels in level xxx HOT 6
- Issue reading NEMO UnRegularGrid HOT 2
- grid_count and grid_stat error HOT 2
- The boundary cannot be closed normally, and the longitude and latitude of some points are wrongγ HOT 6
- How to store the eddy tracking results HOT 4
- Data is Empty
- Data is Empty HOT 1
- Cartopy projection 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 py-eddy-tracker.