Am I doing something wrong? #337
Replies: 5 comments 5 replies
-
|
What version of edgartools is in your conda environment !pip show edgartoolsList the functions on the walmart = Company("0000104169")
wmt_filings = walmart.get_filings(form=['10-K'])
file_0 = wmt_filings[0]
attachments = file_0.attachments
attachment = attachments.get_by_index(0)
attachment.view()
methods = sorted([a for a in dir(attachment) if not a.startswith('_') and callable(getattr(attachment, a))]) |
Beta Was this translation helpful? Give feedback.
-
|
You have an older version of edgartools. Update and retry pip install -U edgartools |
Beta Was this translation helpful? Give feedback.
-
|
In an anaconda cell run Then try again |
Beta Was this translation helpful? Give feedback.
-
|
Thanks Dwight. I think the issue is I am running python 3.8 and need to run python 3.10 or higher?
From: Dwight Gunning ***@***.***>
Sent: Wednesday, November 12, 2025 8:17 AM
To: dgunning/edgartools ***@***.***>
Cc: AKS2346 ***@***.***>; Comment ***@***.***>
Subject: Re: [dgunning/edgartools] Am I doing something wrong? (Discussion #337)
In an anaconda cell run
!pip install -U edgartools
!pip show edgartools
Then try again
-
Reply to this email directly, view it on GitHub<#337 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AB2FNJN3EJUPXWLMOCKXYAD34MXK5AVCNFSM6AAAAACA2LQXGGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIOJUG43DEMY>.
You are receiving this because you commented.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
|
Oh ok. Yes the minimal Python version is 3.10 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
So far it looks like a great tool for Edgar, but I can't get all the codes in tutorial to work. Am I doing something wrong?
I'm using Jupyterlab in Anaconda
conda version : 22.9.0
python version : 3.8.13.final.0
platform : win-64
When I run this snippet:
from edgar import *
set_identity("my email")
walmart = Company("0000104169")
wmt_filings = walmart.get_filings(form=['10-K'])
file_0 = wmt_filings[0]
attachments_0 = file_0.attachments[0]
attachments_0.view()
I got the following error:
AttributeError Traceback (most recent call last)
Input In [160], in <cell line: 7>()
5 file_0 = wmt_filings[0]
6 attachments_0 = file_0.attachments[0]
----> 7 attachments_0.view()
File ~\Anaconda3\lib\site-packages\pydantic\main.py:811, in BaseModel.getattr(self, item)
808 return super().getattribute(item) # Raises AttributeError if appropriate
809 else:
810 # this is the current error
--> 811 raise AttributeError(f'{type(self).name!r} object has no attribute {item!r}')
AttributeError: 'Attachment' object has no attribute 'view'
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions