-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AssertionError
when importing cf
and cfunits
#21
Labels
bug
Something isn't working
Comments
AssertionError
when importingAssertionError
when importing cf
and cfunits
The unittests on the main branch are not up to date. There is a new test suite on a private branch that is soon to be released.
Sent from BlueMail
…On May 6, 2021, 11:06, at 11:06, Zachary Burnett ***@***.***> wrote:
when testing on an Anaconda environment, I get the following error:
```
tests/test_configuration.py:None (tests/test_configuration.py)
tests\test_configuration.py:6: in <module>
from pyschism import ModelDomain, ModelDriver, Stations
C:\Environments\CoupledModelDriver\lib\site-packages\pyschism-0.0.11-py3.8.egg\pyschism\__init__.py:4:
in <module>
from pyschism.param import Param
C:\Environments\CoupledModelDriver\lib\site-packages\pyschism-0.0.11-py3.8.egg\pyschism\param\__init__.py:1:
in <module>
from pyschism.param.param import Param
C:\Environments\CoupledModelDriver\lib\site-packages\pyschism-0.0.11-py3.8.egg\pyschism\param\param.py:8:
in <module>
from pyschism.domain import ModelDomain
C:\Environments\CoupledModelDriver\lib\site-packages\pyschism-0.0.11-py3.8.egg\pyschism\domain.py:8:
in <module>
from pyschism.forcing.tides.bctypes import BoundaryCondition
C:\Environments\CoupledModelDriver\lib\site-packages\pyschism-0.0.11-py3.8.egg\pyschism\forcing\__init__.py:2:
in <module>
from pyschism.forcing.atmosphere import GlobalForecastSystem
C:\Environments\CoupledModelDriver\lib\site-packages\pyschism-0.0.11-py3.8.egg\pyschism\forcing\atmosphere\__init__.py:1:
in <module>
from pyschism.forcing.atmosphere import nws
C:\Environments\CoupledModelDriver\lib\site-packages\pyschism-0.0.11-py3.8.egg\pyschism\forcing\atmosphere\nws\__init__.py:2:
in <module>
from pyschism.forcing.atmosphere.nws import nws2
C:\Environments\CoupledModelDriver\lib\site-packages\pyschism-0.0.11-py3.8.egg\pyschism\forcing\atmosphere\nws\nws2\__init__.py:1:
in <module>
from pyschism.forcing.atmosphere.nws.nws2.nws2 import NWS2
C:\Environments\CoupledModelDriver\lib\site-packages\pyschism-0.0.11-py3.8.egg\pyschism\forcing\atmosphere\nws\nws2\nws2.py:10:
in <module>
from pyschism.forcing.atmosphere.nws.nws2.sflux import SfluxDataset
C:\Environments\CoupledModelDriver\lib\site-packages\pyschism-0.0.11-py3.8.egg\pyschism\forcing\atmosphere\nws\nws2\sflux.py:9:
in <module>
import cf
C:\Environments\CoupledModelDriver\lib\site-packages\cf_python-3.8.0-py3.8.egg\cf\__init__.py:155:
in <module>
import cfunits
C:\Environments\CoupledModelDriver\lib\site-packages\cfunits\__init__.py:46:
in <module>
from .units import Units
C:\Environments\CoupledModelDriver\lib\site-packages\cfunits\units.py:232:
in <module>
assert(0 == _ut_unmap_symbol_to_unit(_ut_system, _c_char_p(b'Sv'),
_UT_ASCII))
E AssertionError
```
_Originally posted by @zacharyburnettNOAA in
noaa-ocs-modeling/CoupledModelDriver#93 (comment)
I have verified that I have `udunits2`, `cfdm`, and `cfunits` installed
from the `conda-forge` channel; however. Additionally, I found the
following referencing this issue:
> If you get an error that looks like `assert(0 ==
_ut_unmap_symbol_to_unit(_ut_system, _c_char_p(b'Sv'), _UT_ASCII))`
then setting the `UDUNITS2_XML_PATH` environment variable is the likely
solution.
https://ncas-cms.github.io/cfunits/installation.html
However, I can't seem to find `udunits2.xml` anywhere in my Conda
environment, so cannot set `UDUNITS2_XML_PATH` correctly.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#21
|
related to #22 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I made an Anaconda environment with
pyschism
and the following:However, when importing
pyschism
I get the following error:Originally posted by @zacharyburnettNOAA in noaa-ocs-modeling/CoupledModelDriver#93 (comment)
I found the following referencing this issue:
https://ncas-cms.github.io/cfunits/installation.html
However, I can't seem to find
udunits2.xml
anywhere in my Conda environment, so cannot setUDUNITS2_XML_PATH
correctly.The text was updated successfully, but these errors were encountered: