Yadedaily installation and mpmath error (focal)

Asked by Jérôme Duriez

Hi,

I tried to install yadedaily on a new Ubuntu 20.04 machine, following https://yade-dem.org/doc/installation.html#packages. Package installation seemed to be successful but, at launch time, I got:

jerome.duriez@XXX:~$ yadedaily
Traceback (most recent call last):
  File "/usr/bin/yadedaily", line 29, in <module>
    import mpmath
ModuleNotFoundError: No module named 'mpmath'

I guess it is about a missing python3-mpmath package, which did not seem to be installed as a prerequisite of yadedaily. The Windows-framework discussion at [*] suggested an extra manual installation is indeed necessary.

Is that the intended behavior for installing yadedaily ?

Thanks,

Jérôme

[*] https://<email address hidden>/msg23028.html

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Robert Caulk
Solved:
Last query:
Last reply:
Revision history for this message
Robert Caulk (rcaulk) said :
#1

Hey,

And if you install python3-mpmath manually, I guess it runs fine? Seems we need to fix the packaging of yadedaily for 20.04...

Cheers,

Robert

Revision history for this message
Jérôme Duriez (jduriez) said :
#2

It does ! You kind of answered my question, if you (can) turn your comment in an answer, I'll mark the question solved (and open an issue only if you ask to) thanks to you ;-)

Revision history for this message
Best Robert Caulk (rcaulk) said :
#3

oh nice! I will make an issue on gitlab so that the packaging experts can look at/fix this :-)

Revision history for this message
Jérôme Duriez (jduriez) said :
#4

Thanks Robert Caulk, that solved my question.

Revision history for this message
Janek Kozicki (cosurgi) said :
#5

Yes, please. It did throw in this line:

https://gitlab.com/yade-dev/trunk/-/blob/master/lib/high-precision/ToFromPythonConverter.hpp#L31

note the comment: // this code is never compiled if python3-mpmath package is unavailable.

:) Package was built on system which had python3-mpmath.

Revision history for this message
Anton Gladky (gladky-anton) said :
#6
Revision history for this message
Janek Kozicki (cosurgi) said :
#7
Revision history for this message
Bruno Chareyre (bruno-chareyre) said :
#8

Magic