Comments (2)
@Volk3rJ We haven't built a conda package for Python 3.12 yet. What you're getting is likely an old (v1.0.0) pure Python version of pymt. We've been working through our maintenance backlog recently and pymt is on our list of things to triage and update.
Python 3.11 will work (we have a conda package for it); also, building pymt from source will work.
from pymt.
@mdpiper, thanks for these suggestions, and also for your work on:
Here's a bit more info to help you/us collectively solve the challenge.
In your response to this issue:
You described that you need to update pymt because it's:
- not built for Python 3.12, and
- incompatible with recent changes to gimli.units.
I addressed both of those issues as I've been working through your new examples now (temporarily) at https://babelizer.readthedocs.io/en/mdpiper-add-cxx-example/.
Using this environment.yml file, I succeeded at building a conda environment for both Mac and Windows with:
- python=3.11
- pymt=1.3.1
- gimli.units=0.3.1
# Before reorg (https://github.com/mcflugen/gimli/pull/18)
# to prevent import error with pymt=1.3.1
That cleared the gimli.units
import error, but then led to this error:
>>> from pymt.models import HeatC
Traceback (most recent call last):
File "/Users/aaufdenkampe/miniconda3/envs/wrap-all/lib/python3.11/site-packages/model_metadata/modelmetadata.py", line 69, in __init__
param = parameter_from_dict(params[name]).as_dict()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/aaufdenkampe/miniconda3/envs/wrap-all/lib/python3.11/site-packages/model_metadata/model_parameter.py", line 160, in parameter_from_dict
return IntParameter(value, **kwds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/aaufdenkampe/miniconda3/envs/wrap-all/lib/python3.11/site-packages/model_metadata/model_parameter.py", line 386, in __init__
raise ValueError(
ValueError: value must be either an int or a string that can be converted to an int (3650.0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/aaufdenkampe/miniconda3/envs/wrap-all/lib/python3.11/site-packages/pymt/__init__.py", line 6, in <module>
MODELS = ModelCollection()
^^^^^^^^^^^^^^^^^
File "/Users/aaufdenkampe/miniconda3/envs/wrap-all/lib/python3.11/site-packages/pymt/model_collection.py", line 22, in __new__
models.append(ModelCollection.load_entry_point(entry_point))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/aaufdenkampe/miniconda3/envs/wrap-all/lib/python3.11/site-packages/pymt/model_collection.py", line 69, in load_entry_point
Model = bmi_factory(model)
^^^^^^^^^^^^^^^^^^
File "/Users/aaufdenkampe/miniconda3/envs/wrap-all/lib/python3.11/site-packages/pymt/framework/bmi_bridge.py", line 778, in bmi_factory
class BmiWrapper(BmiCap):
File "/Users/aaufdenkampe/miniconda3/envs/wrap-all/lib/python3.11/site-packages/pymt/framework/bmi_bridge.py", line 780, in BmiWrapper
__doc__ = bmi_docstring(cls)
^^^^^^^^^^^^^^^^^^
File "/Users/aaufdenkampe/miniconda3/envs/wrap-all/lib/python3.11/site-packages/pymt/framework/bmi_docstring.py", line 103, in bmi_docstring
meta = ModelMetadata.from_obj(plugin)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/aaufdenkampe/miniconda3/envs/wrap-all/lib/python3.11/site-packages/model_metadata/modelmetadata.py", line 84, in from_obj
return cls(ModelMetadata.find(obj))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/aaufdenkampe/miniconda3/envs/wrap-all/lib/python3.11/site-packages/model_metadata/modelmetadata.py", line 71, in __init__
raise ValueError(f"{name}: unable to load parameter")
ValueError: run_duration: unable to load parameter
from pymt.
Related Issues (20)
- Fix broken links to Notebooks on Examples page HOT 1
- Discuss how to couple models of differing time and spatial resolutions HOT 1
- About model installation in pymt HOT 4
- About Sedflux3D model
- Testing National Water Model Notebooks HOT 1
- Making the pymt installation instructions more foolproof
- Coupling adapters for model component temporal mismatch
- CSDMS Workbench HOT 4
- Automated testing of the pymt Jupyter Notebooks HOT 3
- Listing pymt components HOT 2
- Missing udunits2 in installation HOT 4
- Incorrect dimension used for rectilinear grid in _BmiCap grid methods HOT 1
- List tutorial notebooks in the "Pymt Jupyter Notebooks" HydroShare resource HOT 2
- Error exiting Python after importing pymt
- Test netCDF files not found HOT 1
- Hydrotrend Ganges notebook hangs on initialize
- TimeInterpolator tests fail because of changes to scipy.interpolation.interp1d HOT 1
- shapely>=2.0 is incompatible with pymt HOT 1
- Roadmap for pymt? 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 pymt.