Problem after installing SUAVE

253 views
Skip to first unread message

Vinicius Kazuhiko Quitakava Tanigawa

unread,
Apr 26, 2022, 3:29:59 PM4/26/22
to SUAVE FORUM
Hello SUAVE team,

I am trying to install SUAVE 2.5.2, however, I keep getting this error when I try to run the program. See the screenshot for more details.

With regards,

Vinicius Tanigawa
Снимка на екрана на 2022-04-26 16-26-13.png

Haoliang Yu

unread,
Apr 26, 2022, 11:31:39 PM4/26/22
to SUAVE FORUM
This means that SUAVE is not installed in your python environment.
I think you need to check your install.
Knight

Emilio

unread,
Apr 26, 2022, 11:53:20 PM4/26/22
to SUAVE FORUM
Hi Vinicius,
There's a small change with Python 3.10 that makes it not backwards compatible with earlier versions. I don't have an explanation as to why the Python developers made this change but it's simple. Add .abc to anywhere in SUAVE where it calls collections. For example:

from collections.abc import MutableMapping

Then reinstall SUAVE. 

-Emilio

Vinicius Kazuhiko Quitakava Tanigawa

unread,
Apr 28, 2022, 8:46:36 AM4/28/22
to SUAVE FORUM
Hi Emilio,

Thanks for the explanation, I did the changes and everything is working perfectly now.

With regards,

Vinicius Tanigawa

Vanessa Chung

unread,
Nov 3, 2023, 12:49:13 PM11/3/23
to SUAVE FORUM

Hi Emilio and Vinicius,

I am experiencing the same problem. Where in SUAVE did you add .abc? Is it in the setup.py?

Thanks for your help in advance.

Vanessa

Vanessa Chung

unread,
Nov 3, 2023, 1:05:22 PM11/3/23
to SUAVE FORUM
This is the error code I'm getting:

SUAVE error code.png
Message has been deleted

Seif Barketi

unread,
Sep 6, 2024, 7:17:18 PM9/6/24
to SUAVE FORUM
I guess you figured it out, but here's where to add .abc :
go to C:\Users\seife\anaconda3\Lib\site-packages\suave-2.5.0-py3.12.egg\SUAVE\Plugins\pint\ 
 Add .abc so you have "from collections.abc import.." instead of "from collections import.." to any file that's causing the error, for me it was compat and quantity 

Kilian Zimmer

unread,
Jan 23, 2025, 5:53:42 AMJan 23
to SUAVE FORUM
Hi, where exactly should I add .abc?
Reply all
Reply to author
Forward
0 new messages