Closed jpmvferreira closed 2 years ago
I think your Python version is, ironically, too new for nose:
>>> import sys
>>> print(sys.version)
3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110]
>>> from collections import Callable
<stdin>:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
This shouldn't come as a surprise since nose is apparently unmaintained. I don't think it it's a cause for worry though, CLASS itself (or rather, its Python equivalent, classy) should work fine (maybe modulo some Python 2 → 3 migration bugs) without nose.
Ah, thanks. That message should have showed in the traceback, it would save an issue!
Anyways, since this is a virtual environment, I will downgrade my Python to version 3.9 where it should still get it working, just to be sure everything is alright.
Hi there,
On a new installation of CLASS, the automated tests fails, while running other tests work fine.
Here's my procedure to replicate the issue. (Note: I'm using micromamba, an alternative package manager which is fully compatible with the conda package manager, using the same repository (conda-forge), which is available under the alias
mm
)Running
./class explanatory.ini
orimport classy
from inside the Python REPL and the filetemp.py
suggested in the Wiki of this repository (after adapting it to Python3 as it is written in Python2) works fine.I should state that I am completely new to CLASS, and I have no idea whether I should be worried about this or not, as it doesn't look like an error from CLASS, since it fails rather quickly, but rather something in the automated testing which is failing. Any help will be greatly appreciated!
System: