GithubHelp home page GithubHelp logo

Comments (6)

robot-army avatar robot-army commented on July 24, 2024

(oops, prematurely submitted this issue)

I don't spend much of my time in Python or Linux, so I'm sure it's something simple I'm missing... running from the wrong directory, some weird configuration or whatever, but I'd appreciate any help I can get on this.

Thanks!

from modest-py.

robot-army avatar robot-army commented on July 24, 2024

OK, so I switched to Conda on windows instead, as I was running out of steam on this, and after installing the pyfmi dependency, and getting the visual C++ build tools to install that...6 GB or more... I can run this.

However, the version that seems to be shipping with Conda is the 0.0.9 release, and the simple example (as it's written) depends on MODESTGA, which was added since this release.

Anyone have any advice on next steps?

from modest-py.

robot-army avatar robot-army commented on July 24, 2024

OK, so I had to:

pip install --upgrade --user pyqtwebengine==5.12
pip install --upgrade --user pyqt5==5.12
conda update anaconda
conda install spyder=5.0.5
pip install .\modest-py-master\

and I was able to run the example, with some fixes to the os.path.join() lines to get it pointing at the right directory.

Let's see how we go...

from modest-py.

krzysztofarendt avatar krzysztofarendt commented on July 24, 2024

Hello, I reproduced this issue. When running examples/simple/simple.py and other examples I was getting:

[Errno 2] No such file or directory: 'examples/simple/resources/Simple2R1C_ic_linux64.fmu'

However, it was also followed by another error:

OSError: libgfortran.so.3: cannot open shared object file: No such file or directory

I'm not sure why it stopped working suddenly (some Ubuntu upgrade?), but this helped:

> sudo apt-get install libgfortran3

Also, it's better to first clone the repository if you want to run examples, because this way you make sure you have all needed files on disk. pip install modestpy does not download examples. It downloads only the modestpy package.

Therefore:

> git clone https://github.com/sdu-cfei/modest-py.git
> cd modest-py
> virtualenv -p python3 venv
> source venv/bin/activate
> pip install -e .
> python examples/simple/simple.py

Let me know if it helped.

from modest-py.

robot-army avatar robot-army commented on July 24, 2024

OK great, I got it up and running in windows, but I'll try again under linux with these instructions.

As an aside, with my FMU and parameters I'm getting

C:\Users\rwhite\Anaconda3\lib\site-packages\pandas\core\arraylike.py:364: RuntimeWarning: overflow encountered in square
 result = getattr(ufunc, method)(*inputs, **kwargs)

or fmi2GetReal failed with status 3.quite regularly.

I'll try and sanitize my setup and make it into something that reproduces it reliably to post in a separate issue.

from modest-py.

krzysztofarendt avatar krzysztofarendt commented on July 24, 2024

@robot-army , the overflow error means you are multiplying too large numbers (unable to save the result with a given number of bits). If your FMU works fine with the default parameters and fails during the parameter tuning in modestpy, then probably your parameter ranges are too large for this FMU. Try running modestpy with smaller parameter ranges.

I'm closing this issue as it seems the original problem was solved.

from modest-py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.