Skip to content
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

Closed
baumconsult opened this issue Jun 13, 2019 · 11 comments
Closed

Comments

@baumconsult
Copy link

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:

grafik

@jakob-wo
Copy link

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?

@oakca
Copy link
Member

oakca commented Jun 13, 2019

Hello Michael,

Can you maybe send your csv file, so that I can also check if it runs?

Additionally I also ran the basic_example.py and it works as @jakob-wo said.

@baumconsult
Copy link
Author

baumconsult commented Jun 13, 2019 via email

@baumconsult
Copy link
Author

baumconsult commented Jun 13, 2019 via email

@oakca
Copy link
Member

oakca commented Jun 13, 2019

Hello Michael,

from

sorry, I changed code in line 87:

I understand that you just changed this line filename = os.path.join(os.path.dirname(__file__), 'basic_example.csv') to filename = 'basic_example.csv', so basically you are still using the same csv file. I did the same change, and it is still solving.

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.

@baumconsult
Copy link
Author

baumconsult commented Jun 13, 2019 via email

@uvchik
Copy link
Member

uvchik commented Jun 14, 2019

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?

@baumconsult
Copy link
Author

I have up-dated oemof in Anaconda Promt with "pip install oemof --upgrade" from v0.2.3 to v0.3.1

@baumconsult
Copy link
Author

By the way, basic_example.py runs now. I did not make any change except adapting:

nominal_capacity to nominal_storage_capacity
initial_capacity to initial_storage_level
capacity_loss to loss_rate

@p-snft
Copy link
Member

p-snft commented Jun 17, 2019

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.

@jakob-wo
Copy link

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants