Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linopy.version not found with pip install? #187

Closed
fneum opened this issue Oct 28, 2023 · 4 comments
Closed

linopy.version not found with pip install? #187

fneum opened this issue Oct 28, 2023 · 4 comments

Comments

@fneum
Copy link
Member

fneum commented Oct 28, 2023

from linopy.version import version as __version__

Gives ModuleNotFoundError when installed from PyPI, but not with development version pip install -e .

@FabianHofmann
Copy link
Collaborator

FabianHofmann commented Oct 29, 2023

does that mean you cannot import linopy when installed from pypi at all? or is just the call linopy.__version__ which fails?

@fneum
Copy link
Member Author

fneum commented Oct 29, 2023

Could not import linopy if installed from PyPI

@FabianHofmann
Copy link
Collaborator

I just tested this and it works fine:

conda create -n test python==3.11
python -m pip install linopy
python
import linopy
linopy.Model()

The version is also displayed correctly.

@fneum
Copy link
Member Author

fneum commented Oct 29, 2023

Must have been a local error. Your code works for me, too and now I can't reproduce.

@fneum fneum closed this as completed Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants