You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, install mentalist using sudo python3 setup.py install
Then first, let's solve this error ->
AttributeError: module 'locale' has no attribute 'format'. Did you mean: '_format'?
In VSCode (or your favorite text editor), Open /usr/local/lib/python3.12/dist-packages/Mentalist-1.0-py3.12.egg/mentalist/view/main.py.
Search for locale.format
Replace it with locale.format_string
Repeat steps from 1 to 3 for file adder.py
Now, let's solve this ->
AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?
Open /usr/local/lib/python3.12/dist-packages/Mentalist-1.0-py3.12.egg/mentalist/model.py
Replace the whole function as below (Line approx- 456 to 468)
Check for any indentation errors after pasting the code.
result = True
signature = inspect.signature(self.__class__.__init__)
param_names = [param.name for param in signature.parameters.values()]
for name in param_names:
if name in ['self', 'controller']:
continue
if (name in other.__dict__) and (self.__dict__[name] != other.__dict__[name]):
result = False
return result
If you are getting other locale related errors, run following commands.
First, install mentalist using
sudo python3 setup.py install
Then first, let's solve this error ->
Now, let's solve this ->
If you are getting other locale related errors, run following commands.
Done!
Hope this helps. If you face any other issues, please comment below.
The text was updated successfully, but these errors were encountered: