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

PyFMI 2.13.0 - problem with conda-forge installation #238

Closed
janpeter19 opened this issue May 22, 2024 · 22 comments · Fixed by #236
Closed

PyFMI 2.13.0 - problem with conda-forge installation #238

janpeter19 opened this issue May 22, 2024 · 22 comments · Fixed by #236

Comments

@janpeter19
Copy link

Hi,

I install PyFMI 2.13.0 using conda from conda-forge into Ubuntu 22.04 LTS and it does not work.
(I use Python 3.10.12 and Numpy 1.26.4 and Assimulo 3.5.1).

The problem is that when the FMU is loaded I get an error message about Assimulo as follows:

ValueError: assimulo.problem.cProblem size changed, may indicate binary incompatibility. Expected 32 from C header, got 24 from PyObject

It seems also not possible to now use the earlier PyFMI version 2.12.0.

@PeterMeisrimelModelon
Copy link
Collaborator

@jschueller Do you have an idea what could be the issue here?

From my understanding of the error message (from similar reported issue with numpy), this is likely due to a mismatch of the (Assimulo?) version build used to build PyFMI, vs the one actually installed.

@jschueller
Copy link
Contributor

pyfmi just needed a rebuild, should be ok now

@janpeter19
Copy link
Author

janpeter19 commented May 23, 2024 via email

@janpeter19
Copy link
Author

janpeter19 commented May 23, 2024 via email

@jschueller
Copy link
Contributor

[3.8-3.11] is ok but 3.12 is not supported yet because of assimulo fortran codes

@janpeter19
Copy link
Author

janpeter19 commented May 23, 2024 via email

@PeterMeisrimelModelon
Copy link
Collaborator

@jschueller Thanks for fixing this.

Am I missing something with the Assimulo fortran codes? The codes should be fine to compile when using std:legacy, or is there some other issues you came across while working on replacing setuptools?

/Peter

@jschueller
Copy link
Contributor

jschueller commented May 23, 2024

same issue: the fortran codes prevent us from using setuptools and force us to find a replacement for distutils
are the fortran solver actually mandatory for running pyfmi ?

@PeterMeisrimelModelon
Copy link
Collaborator

We do intend to keep the Fortran solvers, can you elaborate a bit on the issues with Fortran? (Maybe more suitable in the Assimulo repo in some issue or MR)

@jschueller
Copy link
Contributor

see modelon-community/Assimulo#98
we have pyfmi with python 3.12 now (with assimulo fortran solvers disabled though)
I believe this can be closed now

@janpeter19
Copy link
Author

janpeter19 commented Jun 8, 2024 via email

@jschueller
Copy link
Contributor

I think you can pick any version if you dont need the solvers explicitly

@janpeter19
Copy link
Author

janpeter19 commented Jun 8, 2024 via email

@jschueller
Copy link
Contributor

yes, this is fine

@janpeter19
Copy link
Author

janpeter19 commented Jun 9, 2024 via email

@modelonrobinandersson
Copy link
Member

Hi @janpeter19 has this issue been resolved?

@janpeter19
Copy link
Author

janpeter19 commented Jun 12, 2024 via email

@modelonrobinandersson
Copy link
Member

Hi @janpeter19, now I understand, thanks for the clarification!

@jschueller
Copy link
Contributor

You script is incorrect: your are mixing packages from defaults channel, I suggest to use miniforge instead of miniconda

@janpeter19
Copy link
Author

janpeter19 commented Jun 13, 2024 via email

@jschueller
Copy link
Contributor

@janpeter19
Copy link
Author

janpeter19 commented Jun 13, 2024 via email

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

Successfully merging a pull request may close this issue.

4 participants