Open lguez opened 3 years ago
Looking at your config I see that you have your environment at /mnt/Licorne/miniconda3/envs/iris
and your home at /home/guez/.condarc
. I know that we had similar issues on Windows when users had similar configurations using different drives. Never got a report on Linux though.
Can you try having them in the same mounted partition just to confirm that is the problem?
I trashed my whole conda installation, reinstalled miniconda in my home directory, reinstalled the environment iris with the same packages and I get the same error:
New output from conda list after reinstallation:
New output from conda info after reinstallation:
I just tried:
conda create --name TEST python=3.9 iris ipython pyqt --channel conda-forge --yes
conda activate TEST
ipython --matplotlib
and it worked:
> ipython --matplotlib
Python 3.9.0 | packaged by conda-forge | (default, Oct 14 2020, 22:59:50)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.19.0 -- An enhanced Interactive Python. Type '?' for help.
Using matplotlib backend: TkAgg
In [1]: import iris
In [2]: import cf_units
The packages are virtually the same as the ones in your setup. Maybe the problem is in your ipython+matplotlib config file. Anything in there that could be the culprint?
Yes, I have:
$ cat ~/.config/matplotlib/matplotlibrc
backend: Qt5Agg
That should not matter but can you try TkAgg
just to eliminate that possibility?
The problem disappears when I replace Qt5Agg by TkAgg in my file matplotlibrc.
Can you reproduce the problem with Qt5Agg?
Nope. Works for me too :-/
@lguez Apologies for being late to the party here...
Is this still an issue for you?
We've made several changes since you raised this issue to improve the robustness of installing cf-units
. I'm curious as to whether this is now a solved problem.
Can you please confirm either way, thanks :+1:
Note that, you can now pip install cf-units
as binary wheels on both linux
x86_64, and macos
x86_64 and arm64.
Hello. I have just tried again creating the conda environment and importing cf_units. I still have the same error.
Issue:
I installed with:
If I run ipython and import cf_units, it works. But if I add the option
--matplotlib
to ipython, it fails to open UDUNITS-2 XML unit database:I saw that this problem has been reported before as Windows-specific. But I am on Linuxmint 20.
Environment (
conda list
):Details about
conda
and system (conda info
):