Skip to content

Installation error when python is 3.11+ #69

@KangMSPeter

Description

@KangMSPeter

Hi!

Just want to first say I really appreciate this tool and other tools from netneurolab!

I just want to bring your attention on the error I got from the installation. While I have it installed in one of my environment with python=3.10, I tried to install this tool again on my new python=3.13 environment.

Used command:

python pyls/setup.py install                                                                                                                                                                   

Error:

Details

/home/peter/pyls/versioneer.py:564: SyntaxWarning: invalid escape sequence '\s'
mo = re.search(r'=\s*"(.*)"', line)
Traceback (most recent call last):

File "/home/peter/pyls/setup.py", line 13, in version=versioneer.get_version(), ~~~~~~~~~~~~~~~~~~~~~~^^

File "/home/peter/pyls/versioneer.py", line 1480, in get_version return get_versions()["version"] ~~~~~~~~~~~~^^

File "/home/peter/pyls/versioneer.py", line 1412, in get_versions cfg = get_config_from_root(root)

File "/home/peter/pyls/versioneer.py", line 342, in get_config_from_root parser = configparser.SafeConfigParser() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?

Temporary fix:
It seems like the configparser.SafeConfigParser() is not available when I tried with 3.13. When I specified python=3.10, it successfully installed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions