Skip to content

No Dunder method __version__ #928

@WilyMongooseZero

Description

@WilyMongooseZero
  • Description of issue

    When using nidmm or any of the other nimi python modules, calling module.version should return the version number of the software. For the purposes of automated system validation, programatically calling the version number to validate that someone has not altered the system is preferred. Additionally, and perhaps more importantly pip installs use the .version method to determine whether the currently installed version is higher or lower than an upgrade version, and without that method, the --force-reinstall operator must be used to update the module.

  • Steps to reproduce issue

import nidmm
nidmm.__version__
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2878, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-3-9cc93eb215e9>", line 1, in <module>
    nidmm.__version__
AttributeError: module 'nidmm' has no attribute '__version__'

Example of best practice:

import requests
requests.__version__
Out[5]: '2.19.1'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions