Open sturmk opened 2 weeks ago
Hi, and welcome to PyNE! :wave: Thanks for opening your first issue. We recommend that you include information such as the version of PyNE you're working with (eg, develop branch or a specific version), the platform you are operating on, the expected behavior, and the actual behavior you are bringing our attention to. The more deatil you provide, the better others in this community will be able to help you.
Update: seems to be a general issue with Pyne on Ubuntu 23.10. On Ubuntu 22.04 LTS, installation and usage of pyne is flawless. This would also be interesting to try on the freshly released Ubuntu 24.04 LTS
We'll definitely have to dig into the 24.04 and see what new surprises await!
Python has been updated, and we need to update our code accordingly. The current logic of the code is that if it sends a RuntimeError, the test will pass. However, with the new update, I think, Python>3.10 also checks for a UnicodeDecodeError. Therefore, we need to modify our code to include this as well.
pytest.raises([RuntimeError, UnicodeDecodeError], lambda: mat["word"])
Describe the Bug
When using any functionality related to materials, I get an UnicodeDecodeError. Specifically, running the test
test_material.py
triggers this issue reliably.To Reproduce
Run pyne tests.
Expected Behavior
No error.
Screenshots or Code Snippets
Please complete the following information regarding your system: