Closed johnlawerance closed 4 months ago
I have exactly this error from a fresh clone (macbook air M1, 16Gb, macOS 14.4) and using the optimizations as mentioned here. I don't understand what to do with the info on the 'Fixes sympy...' link above?
@josfaber
In the meantime manually installing mpmath-1.3.0 in your venv fixes the problem.
Is fixed by https://github.com/pytorch/rl/pull/1988
Checklist
What happened?
On Ubuntu 23.10 the version of mpmath pip installs to satisfy the sympy package is 1.4.0a0 which does not have the rational attribute. Short term fix could be to update pip requirements.
AttributeError: module 'mpmath' has no attribute 'rational'
Steps to reproduce the problem
./webui.sh
What should have happened?
Version 1.3.0 of mpmath with rational should be installed instead.
What browsers do you use to access the UI ?
Google Chrome
Sysinfo
Console logs
Additional information
Manually installing mpmath-1.3.0 fixes the problem. -- I'm happy to PR whatever is deemed an appropriate solution (update requirements to cap mpmath below 1.4.0, update sympy version to do the same, etc.)