-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'EnergySystem' object has no attribute 'signals' #43
Comments
Hi Michael, I tried to reproduce what you did but I do not get an error mesage when running basic_example.py (oemof.solph\v0.3.x\basic_example) with oemof v0.3.1 and Python 3.7.3. It actually works fine. However, I do not understand what was modified in your code. Line 68 in basic_example.py is the import of matplotlib, as far as I see. Did you try to run the example without any modifications? |
Hello Michael, Can you maybe send your csv file, so that I can also check if it runs? Additionally I also ran the |
Hi Jakob,
sorry, I changed code in line 87:
#filename = os.path.join(os.path.dirname(__file__), 'basic_example.csv')
filename = 'basic_example.csv'
When running without that modification, the csv-file is not found.
The error message received after the modification is the following:
[cid:image001.jpg@01D52202.B93FC1E0]
I am using Python 3.7.0. Might that cause the problem?
Kind regards, Michael
|
Yes, see attached.
|
Hello Michael, from
I understand that you just changed this line By the way I am using python 3.6.7 and it is still working. So I don't think it is because of the version of python. |
I get the attached error message. The same happens when running other simple files which worked under v0.2.3.
|
Why do you think it has to do with the csv-file. The error message comes from the new blinker.signals introduced in v0.3. What blinker version do you have installed? Did you install oemof 0.3.1 or did you update from v0.2.x? |
I have up-dated oemof in Anaconda Promt with "pip install oemof --upgrade" from v0.2.3 to v0.3.1 |
By the way, basic_example.py runs now. I did not make any change except adapting:
|
To check whether these changes are made, we released v0.3.1. If this really the reason for the fail, I would suggest to close this issue but to open a new one: The error message should be more speaking. |
I think there is no need for another Issue because this might belong to https://github.com/oemof/oemof/issues/514 (Error handling oemof app development). |
I just installed oemof v0.3.1 via Anaconda Promt and tried running basic_example.py. I modified only line 68 to filename = 'basic_example.csv' and stored this file in the same directory as the code. I get the error message shown in the headline. Here the screenshot from spyder:
The text was updated successfully, but these errors were encountered: