Skip to content

Python 3.12 incompatibility #171

@nachobacanful

Description

@nachobacanful

Describe the bug
Incompatibility with Python3.12

To Reproduce
Steps to reproduce the behavior:

  1. Install Python 3.12
  2. try to install QuNetSim with python 3.12 via source.

Expected behavior
It installs

System:

  • OS: Linux
  • Python Version: 3.12

Additional context

File "/tmp/pip-install-d3va927h/matplotlib_e523aa53e62047199068608501c29b62/versioneer.py", line 401, in get_config_from_root
          parser = configparser.SafeConfigParser()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?

in python 3.12 SafeConfigParser no longer exists.

Solution

  • Use ConfigParser instead.
  • Or downgrade to python 3.11
    • change project docs to reflect that python version needs to be below 3.12

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions