Comments (6)
(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.
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.
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.
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.
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.
@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)
- Logging should not interfere with the logger of the parent application HOT 1
- Add simple GUI HOT 1
- Add FMPy support HOT 9
- Python 3 support HOT 3
- Unit test fails on Debian 9 HOT 1
- Replace the GA implementation HOT 3
- FMU created with OpenModelica HOT 7
- Add win64 FMUs in examples and unit tests HOT 1
- Upload v. 0.0.8 to PyPi HOT 1
- run.tests() fails on Linux (WSL2, Ubuntu 18.04) HOT 1
- Unrecognized argument passed to SciPy solver HOT 1
- modestga zero division error HOT 2
- modestga: cannot start a new process HOT 1
- Catch an exception from FMU if solver failed and continue estimation HOT 5
- ValueError when time is floating point in _select_lp HOT 1
- FMUs stored in Temp folder HOT 5
- Does not work on Ubuntu 20.04 HOT 1
- Switch to pytest HOT 1
- Refactor code with black and isort HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modest-py.