Comments (4)
Hi Jun,
Try using this command instead:
conda env create -f environment.yml
The name of the virtual env will match whatever is in the yml file, in this case gcpy.
from gcpy.
Thanks Lizzie! It works now. I use "conda env create gcpy/docs/environment.yml"
from gcpy.
Hi all,
I set up the gcpy environment. The xarray and xbpch in my gcpy environment are 0.11.3 and 0.3.4. I run jupyter notebook using my gcpy environment. However, I still run into the first problem Prof. Prasad had, as follows:
_ #---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
in
2 import numpy as np
3 import xarray as xr
----> 4 import xbpch
5 import gcpy
6
~/anaconda3/envs/gcpy/lib/python3.6/site-packages/xbpch/init.py in
5 pass
6
----> 7 from . bpch import BPCHFile
8 from . core import open_bpchdataset, open_mfbpchdataset
~/anaconda3/envs/gcpy/lib/python3.6/site-packages/xbpch/bpch.py in
9 import os
10
---> 11 from xarray.core.pycompat import OrderedDict
12
13 from . uff import FortranFile
ImportError: cannot import name 'OrderedDict'_
Any thoughts about this?
Jun
from gcpy.
Hi Jun, xbcph was updated over the weekend to correct the incompatibility with xarray. This does not explain why you are having issues with xbpch 0.3.4 + xarray 0.11.3, since OrderedDict is include in 0.11.3. However, maybe updating both xbpch and xarray to the latest versions will make the issue moot.
I updated to xbpch 0.3.5 and xarray 0.12.1 and am able to import gcpy successfully. Try this and see if it helps.
xarray 0.12.1 py_0
xbpch 0.3.5 pypi_0 pypi
xesmf 0.1.1 pypi_0 pypi
xlrd 1.2.0 py36_0
xlsxwriter 1.1.2 py36_0
xlwings 0.15.1 py36_0
xlwt 1.2.0 py36h5ad1178_0
xz 5.2.4 h1de35cc_4
yaml 0.1.7 hc338f04_2
zeromq 4.2.5 h0a44026_1
zict 0.1.3 py36_0
zlib 1.2.11 h1de35cc_3
zstd 1.3.7 h5bba6e5_0
(gcpy) ~/gc/python/gcpy $ ipython
Python 3.6.7 |Anaconda custom (64-bit)| (default, Oct 23 2018, 14:01:38)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.2.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import xarray
In [2]: import gcpy
In [3]:
from gcpy.
Related Issues (20)
- GCPy 1.4.1 usages of seaborn-talk is deprecated in older matplotlib versions HOT 2
- Problems creating virtual environment compatible with GCPy 1.4.1 HOT 1
- Plot parallelization off failing in GCPy 1.4.1 HOT 4
- [FEATURE REQUEST] Transport tracer benchmark improvements HOT 2
- Make GCPy a conventional Python package HOT 7
- file_regrid.py creates GCHP restart files with variable name `DELPDRY` instead of `DELP_DRY` HOT 1
- pip install geoschem-gcpy==1.4.2 fails with error due to awscli version HOT 2
- [FEATURE REQUEST] Clean up start/end time usages in benchmark scripts HOT 1
- [FEATURE REQUEST] Transport Tracers benchmark for less than one year HOT 2
- Feature request: Add benchmark results paths and other related info to the the `config` object
- Combine Ref and Dev in the same file for TransportTracers mass conservation tables HOT 1
- Bugs about automatic regridding for cube-sphere when plotting HOT 5
- Feature request: Add a script to scrape timing info from benchmark simulation log files HOT 4
- Can't generate zonal differences for global vs nested model output
- GCPy not properly recognizing 0.125x0.15625 lat-lon grid HOT 4
- Replace whitespace with underscores in benchmark plot/table version labels and file names HOT 1
- RnPbBe budget table benchmark code assumes initial restart is run resolution HOT 1
- Documentation updates for GCPy 1.5.0 HOT 1
- Combine Ref and Dev output in the TransportTracers budget table
- GCPy installation from PyPI (via Pip) does not work due to not finding xesmf version 0.5.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 gcpy.