Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Issue when building agents #202

Open
CaleHarr opened this issue Jun 14, 2020 · 4 comments
Open

Issue when building agents #202

CaleHarr opened this issue Jun 14, 2020 · 4 comments

Comments

@CaleHarr
Copy link

Hi Davoud,
Thanks for writing such an innovative package.
I'm having an issue when trying to run the 'one household one firm with logic' example, specifically with the line:
firms = simulation.build_agents(Firm, 'firm', 1)
This may be a noob issue in which case apologies, but it's not letting me create a firm and stating 'TypeError: Firm() takes no arguments'. The same happens when I switch the lines to put household first. Please let me know if there's any further info I can provide to help with diagnostics,

Thanks,
Cale

@DavoudTaghawiNejad
Copy link
Member

DavoudTaghawiNejad commented Jun 16, 2020 via email

@rht
Copy link
Member

rht commented Jun 17, 2020

Maybe @CaleCornelius was referring to the code in https://github.com/AB-CE/examples/tree/master/examples/one_household_one_firm_with_logic verbatim. However, I can't test this in latest abcEconomics due to the change in flexx API. See #203.

@CaleHarr
Copy link
Author

Hi Both,
Can confirm I was attempting to run that example verbatim, but I then modified the build agent line to attempt to input the number directly in case that was tripping it over. I'm using Spyder as my IDE in case that's material.

Thanks,
Cale

@rht
Copy link
Member

rht commented Jun 18, 2020

@CaleCornelius how did you install abcEconomics? From pip? From this github repo? From the requirements.txt of the examples repo? What version is it on?

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

No branches or pull requests

3 participants