cellpy icon indicating copy to clipboard operation
cellpy copied to clipboard

AttributeError: module 'pathlib' has no attribute '_windows_flavour' on import with Python 3.12

Open jbrizuela17 opened this issue 8 months ago • 1 comments

Describe the bug Mamba reports incompatibility with cellpy version 1.0.2 when attempting to install it in a Python 3.12 environment. This contradicts the release notes for cellpy 1.0.2, which explicitly state added support for Python 3.12.

*cellpy version: 1.0.2 *Python version: 3.12.10 *Operating System: Windows

To Reproduce

input:
mamba install cellpy=1.0.2

output:
error     libmamba Could not solve for environment specs
    The following packages are incompatible
    ├─ cellpy =1.0.2 * is installable with the potential options
    │   ├─ cellpy 1.0.2 would require
    │   │   └─ python >=3.10,<3.11.0a0 *, which can be installed;
    │   └─ cellpy 1.0.2 would require
    │       └─ python >=3.11,<3.12.0a0 *, which can be installed;
    └─ pin on python 3.12.* =* * is not installable because it requires
            └─ python =3.12 *, which conflicts with any installable versions previously reported.
critical libmamba Could not solve for environment specs

Expected behavior cellpy version 1.0.2 should install successfully in a Python 3.12 environment, as indicated by the release notes which state: "Dropped support for python 3.9 and added support for python 3.12 (and probably beyond) by upgrading OtherPaths".

Desktop (please complete the following information):

  • OS: Windows
  • Version 11

jbrizuela17 avatar Apr 15 '25 12:04 jbrizuela17

Working on fixing the conda package (it was currently restricted to python 3.10 and python 3.11) Use either pip or uv to install until it is fully resolved (issue #333)

jepegit avatar May 05 '25 13:05 jepegit

Hopefully fixed now (issue #333).

jepegit avatar May 14 '25 17:05 jepegit