Skip to content

spike2rawio.py broken in pip package #1089

@matiusz

Description

@matiusz

The package for Neo available in pip is broken - after installing it on Python 3.10 by pip install neo file spike2rawio.py contains some junk leftover code that is broken and prevents the script from working -

/usr/local/lib/python3.7/dist-packages/neo/rawio/spike2rawio.py in _parse_header(self)
     66                 from pprint import pprint
     67                 pprint(chan_info)
---> 68                 exit()
     69 
     70 

NameError: name 'exit' is not defined

This piece of code in lines 66-68 is not seen anywhere on the repository and on equivalent (0.10) release on GitHub. Removing this code seems to make the script work fine.

PS. I've never actually used your library and only got interested in the issue by this SO question , so I'm afraid I won't be able to help with any further debugging of the issue but I think whatever I provided should be enough to fix it.

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