Comments (3)
Installing cartopy on windows is sometimes complicated. I did not add it to the dependecies in the setup for the pip installation because of that. I will modify the code to only use cartopy when its properly installed and needed. The modeling framework does not require cartopy.
Things to troubleshoot:
-
Try importing cartopy directly when you activate the environment. If its successful, try to use it with a simple example to see if it works well. Otherwise trying installing it with
conda install -c conda-forge cartopy
-
You can install the pyESD package in edit model with the -e flag, then comment out the import cartopy line in the ESD_utils
Please update me when you try this while I try to fix the package. Thanks for the raising this issue
from pyesd.
Hi Dan, Sorry for re-opening, I couldn't actually check when you asked me to.
But this is strange error here.
Installing
from pyESD.standardizer import MonthlyStandardizer, StandardScaling
from pyESD.ESD_utils import store_pickle, store_csv
from pyESD.splitter import KFold
from pyESD.ESD_utils import Dataset
import pandas as pd
shows no error.
Where as:
from pyESD.Weatherstation import read_weatherstationnames
gives the following error:
ModuleNotFoundError Traceback (most recent call last)
~\AppData\Roaming\Python\Python39\site-packages\pyESD\predictand.py in <module>
18 try:
---> 19 from standardizer import MonthlyStandardizer, NoStandardizer
20 from feature_selection import RecursiveFeatureElimination, TreeBasedSelection, SequentialFeatureSelection
ModuleNotFoundError: No module named 'standardizer'
During handling of the above exception, another exception occurred:
ImportError Traceback (most recent call last)
~\AppData\Roaming\Python\Python39\site-packages\pyESD\StationOperator.py in <module>
18 from .standardizer import MonthlyStandardizer
---> 19 from .predictand import PredictandTimeseries
20 from .teleconnections import NAO, SCAN, EA, EAWR, MEI
~\AppData\Roaming\Python\Python39\site-packages\pyESD\predictand.py in <module>
28 from .feature_selection import RecursiveFeatureElimination, TreeBasedSelection, SequentialFeatureSelection
---> 29 from .models import Regressors
30 from .ensemble_models import EnsembleRegressor
~\AppData\Roaming\Python\Python39\site-packages\pyESD\models.py in <module>
24 from sklearn.ensemble import RandomForestRegressor, ExtraTreesRegressor, BaggingRegressor, AdaBoostRegressor
---> 25 from sklearn.ensemble import HistGradientBoostingRegressor, GradientBoostingRegressor
26 from sklearn.model_selection import cross_val_score, cross_validate, cross_val_predict
ImportError: cannot import name 'HistGradientBoostingRegressor' from 'sklearn.ensemble' (C:\Windows\Anaconda3-2021.11\lib\site-packages\sklearn\ensemble\__init__.py)
During handling of the above exception, another exception occurred:
ModuleNotFoundError Traceback (most recent call last)
~\AppData\Roaming\Python\Python39\site-packages\pyESD\Weatherstation.py in <module>
24 try:
---> 25 from .StationOperator import StationOperator
26 except:
~\AppData\Roaming\Python\Python39\site-packages\pyESD\StationOperator.py in <module>
21 except:
---> 22 from Predictor_Generator import *
23 from standardizer import MonthlyStandardizer
ModuleNotFoundError: No module named 'Predictor_Generator'
During handling of the above exception, another exception occurred:
ModuleNotFoundError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_3120/1331661768.py in <module>
----> 1 from pyESD.Weatherstation import read_weatherstationnames
~\AppData\Roaming\Python\Python39\site-packages\pyESD\Weatherstation.py in <module>
25 from .StationOperator import StationOperator
26 except:
---> 27 from StationOperator import StationOperator
28
29
ModuleNotFoundError: No module named 'StationOperator'
For a very long time it was "Cartopy"
Now it is the one mentioned above, and the one below:
from pyESD.Weatherstation import read_station_csv
Error:
ModuleNotFoundError Traceback (most recent call last)
~\AppData\Roaming\Python\Python39\site-packages\pyESD\predictand.py in <module>
18 try:
---> 19 from standardizer import MonthlyStandardizer, NoStandardizer
20 from feature_selection import RecursiveFeatureElimination, TreeBasedSelection, SequentialFeatureSelection
ModuleNotFoundError: No module named 'standardizer'
During handling of the above exception, another exception occurred:
ImportError Traceback (most recent call last)
~\AppData\Roaming\Python\Python39\site-packages\pyESD\StationOperator.py in <module>
18 from .standardizer import MonthlyStandardizer
---> 19 from .predictand import PredictandTimeseries
20 from .teleconnections import NAO, SCAN, EA, EAWR, MEI
~\AppData\Roaming\Python\Python39\site-packages\pyESD\predictand.py in <module>
28 from .feature_selection import RecursiveFeatureElimination, TreeBasedSelection, SequentialFeatureSelection
---> 29 from .models import Regressors
30 from .ensemble_models import EnsembleRegressor
~\AppData\Roaming\Python\Python39\site-packages\pyESD\models.py in <module>
24 from sklearn.ensemble import RandomForestRegressor, ExtraTreesRegressor, BaggingRegressor, AdaBoostRegressor
---> 25 from sklearn.ensemble import HistGradientBoostingRegressor, GradientBoostingRegressor
26 from sklearn.model_selection import cross_val_score, cross_validate, cross_val_predict
ImportError: cannot import name 'HistGradientBoostingRegressor' from 'sklearn.ensemble' (C:\Windows\Anaconda3-2021.11\lib\site-packages\sklearn\ensemble\__init__.py)
During handling of the above exception, another exception occurred:
ModuleNotFoundError Traceback (most recent call last)
~\AppData\Roaming\Python\Python39\site-packages\pyESD\Weatherstation.py in <module>
24 try:
---> 25 from .StationOperator import StationOperator
26 except:
~\AppData\Roaming\Python\Python39\site-packages\pyESD\StationOperator.py in <module>
21 except:
---> 22 from Predictor_Generator import *
23 from standardizer import MonthlyStandardizer
ModuleNotFoundError: No module named 'Predictor_Generator'
During handling of the above exception, another exception occurred:
ModuleNotFoundError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_3120/1431239707.py in <module>
----> 1 from pyESD.Weatherstation import read_station_csv
~\AppData\Roaming\Python\Python39\site-packages\pyESD\Weatherstation.py in <module>
25 from .StationOperator import StationOperator
26 except:
---> 27 from StationOperator import StationOperator
28
29
ModuleNotFoundError: No module named 'StationOperator'
Is it something to do with station data?
Also, do I need to download ERA5 data manually and use that for ERA5_Direc?
from pyesd.
Hi Dan, Sorry for re-opening, I couldn't actually check when you asked me to. But this is strange error here. Installing
from pyESD.standardizer import MonthlyStandardizer, StandardScaling from pyESD.ESD_utils import store_pickle, store_csv from pyESD.splitter import KFold from pyESD.ESD_utils import Dataset import pandas as pd
shows no error. Where as:
from pyESD.Weatherstation import read_weatherstationnames
gives the following error:
ModuleNotFoundError Traceback (most recent call last) ~\AppData\Roaming\Python\Python39\site-packages\pyESD\predictand.py in <module> 18 try: ---> 19 from standardizer import MonthlyStandardizer, NoStandardizer 20 from feature_selection import RecursiveFeatureElimination, TreeBasedSelection, SequentialFeatureSelection ModuleNotFoundError: No module named 'standardizer' During handling of the above exception, another exception occurred: ImportError Traceback (most recent call last) ~\AppData\Roaming\Python\Python39\site-packages\pyESD\StationOperator.py in <module> 18 from .standardizer import MonthlyStandardizer ---> 19 from .predictand import PredictandTimeseries 20 from .teleconnections import NAO, SCAN, EA, EAWR, MEI ~\AppData\Roaming\Python\Python39\site-packages\pyESD\predictand.py in <module> 28 from .feature_selection import RecursiveFeatureElimination, TreeBasedSelection, SequentialFeatureSelection ---> 29 from .models import Regressors 30 from .ensemble_models import EnsembleRegressor ~\AppData\Roaming\Python\Python39\site-packages\pyESD\models.py in <module> 24 from sklearn.ensemble import RandomForestRegressor, ExtraTreesRegressor, BaggingRegressor, AdaBoostRegressor ---> 25 from sklearn.ensemble import HistGradientBoostingRegressor, GradientBoostingRegressor 26 from sklearn.model_selection import cross_val_score, cross_validate, cross_val_predict ImportError: cannot import name 'HistGradientBoostingRegressor' from 'sklearn.ensemble' (C:\Windows\Anaconda3-2021.11\lib\site-packages\sklearn\ensemble\__init__.py) During handling of the above exception, another exception occurred: ModuleNotFoundError Traceback (most recent call last) ~\AppData\Roaming\Python\Python39\site-packages\pyESD\Weatherstation.py in <module> 24 try: ---> 25 from .StationOperator import StationOperator 26 except: ~\AppData\Roaming\Python\Python39\site-packages\pyESD\StationOperator.py in <module> 21 except: ---> 22 from Predictor_Generator import * 23 from standardizer import MonthlyStandardizer ModuleNotFoundError: No module named 'Predictor_Generator' During handling of the above exception, another exception occurred: ModuleNotFoundError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_3120/1331661768.py in <module> ----> 1 from pyESD.Weatherstation import read_weatherstationnames ~\AppData\Roaming\Python\Python39\site-packages\pyESD\Weatherstation.py in <module> 25 from .StationOperator import StationOperator 26 except: ---> 27 from StationOperator import StationOperator 28 29 ModuleNotFoundError: No module named 'StationOperator'
For a very long time it was "Cartopy" Now it is the one mentioned above, and the one below:
from pyESD.Weatherstation import read_station_csv
Error:
ModuleNotFoundError Traceback (most recent call last) ~\AppData\Roaming\Python\Python39\site-packages\pyESD\predictand.py in <module> 18 try: ---> 19 from standardizer import MonthlyStandardizer, NoStandardizer 20 from feature_selection import RecursiveFeatureElimination, TreeBasedSelection, SequentialFeatureSelection ModuleNotFoundError: No module named 'standardizer' During handling of the above exception, another exception occurred: ImportError Traceback (most recent call last) ~\AppData\Roaming\Python\Python39\site-packages\pyESD\StationOperator.py in <module> 18 from .standardizer import MonthlyStandardizer ---> 19 from .predictand import PredictandTimeseries 20 from .teleconnections import NAO, SCAN, EA, EAWR, MEI ~\AppData\Roaming\Python\Python39\site-packages\pyESD\predictand.py in <module> 28 from .feature_selection import RecursiveFeatureElimination, TreeBasedSelection, SequentialFeatureSelection ---> 29 from .models import Regressors 30 from .ensemble_models import EnsembleRegressor ~\AppData\Roaming\Python\Python39\site-packages\pyESD\models.py in <module> 24 from sklearn.ensemble import RandomForestRegressor, ExtraTreesRegressor, BaggingRegressor, AdaBoostRegressor ---> 25 from sklearn.ensemble import HistGradientBoostingRegressor, GradientBoostingRegressor 26 from sklearn.model_selection import cross_val_score, cross_validate, cross_val_predict ImportError: cannot import name 'HistGradientBoostingRegressor' from 'sklearn.ensemble' (C:\Windows\Anaconda3-2021.11\lib\site-packages\sklearn\ensemble\__init__.py) During handling of the above exception, another exception occurred: ModuleNotFoundError Traceback (most recent call last) ~\AppData\Roaming\Python\Python39\site-packages\pyESD\Weatherstation.py in <module> 24 try: ---> 25 from .StationOperator import StationOperator 26 except: ~\AppData\Roaming\Python\Python39\site-packages\pyESD\StationOperator.py in <module> 21 except: ---> 22 from Predictor_Generator import * 23 from standardizer import MonthlyStandardizer ModuleNotFoundError: No module named 'Predictor_Generator' During handling of the above exception, another exception occurred: ModuleNotFoundError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_3120/1431239707.py in <module> ----> 1 from pyESD.Weatherstation import read_station_csv ~\AppData\Roaming\Python\Python39\site-packages\pyESD\Weatherstation.py in <module> 25 from .StationOperator import StationOperator 26 except: ---> 27 from StationOperator import StationOperator 28 29 ModuleNotFoundError: No module named 'StationOperator'
Is it something to do with station data?
Also, do I need to download ERA5 data manually and use that for ERA5_Direc?
from pyesd.
Related Issues (2)
- No Module error : pyESD HOT 4
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 pyesd.