Skip to content

ModuleNotFoundError: No module named 'hyperion._version' #227

@prerakgarg07

Description

@prerakgarg07

After the changes made to the version.py in commit #226 Hyperion throws the following error

In [1]: import hyperion
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Input In [1], in <cell line: 1>()
----> 1 import hyperion

File ~/codes/hyperion_base/hyperion/__init__.py:3, in <module>
      1 from __future__ import print_function, division
----> 3 from .version import __version__
      5 # Set up the test function
      6 _test_runner = None

File ~/codes/hyperion_base/hyperion/version.py:1, in <module>
----> 1 from hyperion._version import version as __version__
      2 __dev__ = 'dev' in __version__

ModuleNotFoundError: No module named 'hyperion._version'

My Hyperion installation instructions

git clone https://github.com/hyperion-rt/hyperion.git
cd hyperion
python setup.py install
git submodule init
git submodule update
./configure --prefix=$PATH TO MY ANACONDA 
make
make install 

There is no _version.py in my Hyperion directory. I tried to debug this and all I could find was that the file pyproject.toml has the command write_to = "hyperion/_version.py" but I don't know to execute it.

Is this a bug or do I need to update how I am installing Hyperion?

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