Skip to content

get_version_using_pkgresources does not work properly #9

@smarie

Description

@smarie
import makefun
found_version, detailed_results = get_module_version(makefun)
print(detailed_results)

yields

Version '1.8.0' found for module 'makefun' by strategy 'get_unzipped_wheel_or_egg_version', after the following failed attempts:
 - Attempts for module 'makefun':
   - <get_module_version_attr>: module 'makefun' has no attribute '__version__'
   - <get_version_using_pkgresources>: Another distribution of the same package (with version '1.8.0') is installed, but is not the one that was imported
   - <get_builtin_module_version>: Module makefun is not a built-in module
   - <get_unzipped_wheel_or_egg_version>: SUCCESS: 1.8.0

While it should have found it sooner, in get_version_using_pkgresources. The error message is not right: I am using the installed package, not any fancy one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions