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

importing aestimo solver throws and error, dependency on aeslibs #41

Open
DRA-chaos opened this issue Jan 12, 2023 · 3 comments
Open

importing aestimo solver throws and error, dependency on aeslibs #41

DRA-chaos opened this issue Jan 12, 2023 · 3 comments

Comments

@DRA-chaos
Copy link

Describe the bug
If run on google colab or visual studio, post pip install aestimo or !apt-get install aestimo , importing the aestimo sovler fails to work. While using the 1-D solver, an error on finding the 'aeslibs' module comes up : ModuleNotFoundError: No module named 'aeslibs'.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '.Google Colab..'
  2. type the code
  3. import aestimo.aestimo as solver
    import aestimo.config as ac
    ac.messagesoff = False
    import aestimo.database as adatabase
    import numpy as np
    import matplotlib.pyplot as plt
    import copy
    from pprint import pprint

Expected behavior
ModuleNotFoundError: No module named 'aeslibs'.

Screenshots
image

Desktop (please complete the following information):

  • Browser [Chrome]
@sblisesivdin
Copy link
Collaborator

Sorry for late reply. I never executed aestimo on Google Colab, but maybe we need to import aeslib modules with relative path with using "." So just put a dot before aeslib imports. I hope it works.

@keaip
Copy link

keaip commented Oct 7, 2023

Importing aeslib modules with relative path with using ".", as Prof. Lisesivdin suggested, does work!

@Jamshad30
Copy link

Importing aeslib modules with relative path with using ".", as Prof. Lisesivdin suggested, does work!

But this gives error in google colab.

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

4 participants