Closed Nesp closed 5 months ago
I should say I am using a Mac with a Python version 3.8.8
I would say that this could be related to errors in some Python base packages, but not sure. Could you please provide the full errot message please? Could you also provide the packages versions your running, in particular de version of python_utils?
Dear enekomartinmartinez,
thank you for your help.
This is the full error message.
AttributeError Traceback (most recent call last)
Thanks, seems that the problem arises with progressbar package. Nevertheless it is imported as progressbar
the version that should be used is progressbar2, could you check that you are using progressbar2 or uninstall progressbar and install progressbar2? If you have installed PySD using pip, conda or requirements.txt you should have the correct version. But if you have installed it by hand maybe you may have installed progressbar instead of progressbar2.
Thanks a lot for your suggestion! I installed it with pip. And checked: I have progressbar2 installed, not progressbar. Here is the additional info about the packages. What am I missing?
Name: python-utils Version: 3.6.0 Summary: Python Utils is a module with some convenient utilities not included with the standard Python install Home-page: https://github.com/WoLpH/python-utils Author: Rick van Hattem Author-email: Wolph@wol.ph License: BSD Location: ... Requires: typing-extensions Required-by: progressbar2
Name: progressbar2 Version: 4.2.0 Summary: A Python Progressbar library to provide visual (yet text based) progress to long running operations. Home-page: https://github.com/WoLpH/python-progressbar Author: Rick van Hattem (Wolph) Author-email: wolph@wol.ph License: BSD Location: ... Requires: python-utils Required-by: pysd
Hi @Nesp
It seems that the problem is more related to progressbar2
dependencies. I have been checking the CI test we are using, and we didn't have that problem. We run them on Windows and Linux with Python3.7 progressbar2-4.2.0
python-utils-3.5.2
and with Python3.10 progressbar2-4.2.0
python-utils-3.6.0
. We could add Mac to the CI, but it doesn't make a lot of sense to me as our code doesn't depend on the machine architecture and seems to be a bug related to progressbar2.
I suggest creating a new environment on your computer and installing only progressbar2-4.2.0
with python-utils-3.6.0
and the same Python version you are using. Then, try to import progressbar
. If the problem persists, open an issue in their repo, as they set the python-utils dependency.
Feel free to let me know if you need any help in the process, and I could try to help. I am sorry that I don't have a Mac machine or VM to test the issue properly.
Dear all,
I am trying to import pysd and I get the following error: _module 'pythonutils.types' has no attribute 'ParamSpec'
I tried updating my Python, and checking manually if all dependencies were installed. But, I am still getting this error.
Can you help? Thank you!