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

[Bug] Stocks/FA/enterprise - Error: 'Namespace' object has no attribute 'source' #4154

Closed
deeleeramone opened this issue Feb 6, 2023 · 21 comments
Labels
bug Fix bug

Comments

@deeleeramone
Copy link
Contributor

Just trying out the latest merge to the develop branch, the ticker loaded is AAPL.

2023 Feb 06, 18:27 (🦋) /stocks/fa/ $ enterprise

Error: 'Namespace' object has no attribute 'source'
@JerBouma
Copy link
Contributor

JerBouma commented Feb 7, 2023

Everything works fine. On ef12295f commit? Seems like your repo didn't correctly update.

image

@deeleeramone
Copy link
Contributor Author

It works on the main branch:
Screenshot 2023-02-07 at 6 32 07 AM

On Develop branch, I get the changes to the menu, but enterprise does not work.

(obb-m1) Danglewoods-MacBook-Pro:OpenBBTerminal danglewood$ git branch
* (HEAD detached at origin/develop)

Screenshot 2023-02-07 at 6 35 39 AM

@JerBouma
Copy link
Contributor

JerBouma commented Feb 7, 2023

What commit are you on, I am on the develop branch.

@JerBouma
Copy link
Contributor

JerBouma commented Feb 7, 2023

Seems your data_sources_default.json is not updated. Please pull the latest develop commit.

@deeleeramone
Copy link
Contributor Author

HEAD is now at ef12295f33 Remove code of legacy jupyter lab extensions from the repo (#4146)

@JerBouma
Copy link
Contributor

JerBouma commented Feb 7, 2023

@deeleeramone
Copy link
Contributor Author

Negative, mine is not old.

Screenshot 2023-02-07 at 6 42 50 AM

@deeleeramone
Copy link
Contributor Author

I think you're the one with old code, your branch is missing a function that was added in 2.3.1:

Screenshot 2023-02-07 at 6 46 18 AM

This is yours:
Screenshot 2023-02-07 at 6 44 29 AM

@jmaslek
Copy link
Collaborator

jmaslek commented Feb 7, 2023

can't reproduce:

╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── OpenBB Terminal v2.3.1 (https://openbb.co) ─╯
2023 Feb 07, 09:48 (🦋) /stocks/fa/ $ enterprise

                                        AAPL Enterprise                                        
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━┓
┃                                 ┃ 2018      ┃ 2019      ┃ 2020      ┃ 2021      ┃ 2022      ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Symbol                          │ AAPL      │ AAPL      │ AAPL      │ AAPL      │ AAPL      │
├─────────────────────────────────┼───────────┼───────────┼───────────┼───────────┼───────────┤
│ Stock price                     │ 53.060    │ 62.263    │ 115.050   │ 148.640   │ 149.450   │
├─────────────────────────────────┼───────────┼───────────┼───────────┼───────────┼───────────┤
│ Number of shares                │ 19.822 B  │ 18.471 B  │ 17.352 B  │ 16.701 B  │ 16.216 B  │
├─────────────────────────────────┼───────────┼───────────┼───────────┼───────────┼───────────┤
│ Market capitalization           │ 1.052 T   │ 1.150 T   │ 1.996 T   │ 2.482 T   │ 2.423 T   │
├─────────────────────────────────┼───────────┼───────────┼───────────┼───────────┼───────────┤
│ Add total debt                  │ 114.483 B │ 108.047 B │ 112.436 B │ 124.719 B │ 120.069 B │
├─────────────────────────────────┼───────────┼───────────┼───────────┼───────────┼───────────┤
│ Minus cash and cash equivalents │ 25.913 B  │ 48.844 B  │ 38.016 B  │ 34.940 B  │ 23.646 B  │
├─────────────────────────────────┼───────────┼───────────┼───────────┼───────────┼───────────┤
│ Enterprise value                │ 1.140 T   │ 1.209 T   │ 2.071 T   │ 2.572 T   │ 2.520 T   │
└─────────────────────────────────┴───────────┴───────────┴───────────┴───────────┴───────────┘

@JerBouma
Copy link
Contributor

JerBouma commented Feb 7, 2023

Just to make sure we aren't missing anything, nuked my entire repo and pulled everything back and still same effect. This is on @deeleeramone side. Closing issue.

image

@JerBouma JerBouma closed this as completed Feb 7, 2023
@deeleeramone
Copy link
Contributor Author

@deeleeramone
Copy link
Contributor Author

right on the website, the data_sources_default.json file is missing the filings function.

@deeleeramone deeleeramone reopened this Feb 7, 2023
@JerBouma
Copy link
Contributor

JerBouma commented Feb 7, 2023

Please delete your entire repo (or make a new folder) and pull everything back in and check back with us if it still doesn't work. Otherwise, close the issue.

@deeleeramone
Copy link
Contributor Author

I'm looking directly on GitHub at data_sources_default.json file. Deleting my entire repo will do nothing for this. It is missing the filings function.

@JerBouma
Copy link
Contributor

JerBouma commented Feb 7, 2023

It's merged into sec but you won't see that since.. older version.

@deeleeramone
Copy link
Contributor Author

what? I think you're talking about something else entirely.

@deeleeramone
Copy link
Contributor Author

This function is not part of the FA menu, and is not supposed to be.

Screenshot 2023-02-07 at 6 57 38 AM

@deeleeramone
Copy link
Contributor Author

Please stop telling me I have an "old version". How is that possible?

It's merged into sec but you won't see that since.. older version.

Screenshot 2023-02-07 at 7 00 43 AM

@deeleeramone
Copy link
Contributor Author

deeleeramone commented Feb 7, 2023

Please restore the filings function to its original location and with the functionality that was included with it.

@JerBouma
Copy link
Contributor

JerBouma commented Feb 7, 2023

I've nuked my entire repository, deleted everything and pulled it back in. No issue whatsoever regarding enterprise. Given I see all the sources missing in your screenshot I see that there is something going wrong in your repository. Also given @jmaslek has no issues either, it must be something in your repository which is why I ask you to make a new one to validate.

No one can reproduce this issue so far.

@deeleeramone
Copy link
Contributor Author

I found the culprit. Deleting my folder would not have done anything for it, as it is an .env thing. The /settings menu does not take kindly to changes to the /settings/source. Had to manually change the .env file.

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

No branches or pull requests

3 participants