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: 'CommonRegex' object has no attribute 'ssn_number' #47

Open
tlgevers opened this issue Feb 23, 2022 · 2 comments
Open

Comments

@tlgevers
Copy link

I am attempting to parse the following test-data.txt with version commonregex==1.5.4:

2523088780
social security number: 428-34-4474
this is far less expensive than the alternative
114 jeffery street
usa
from commonregex import CommonRegex

with open('./test-data.txt') as data:
    parsed_text = CommonRegex(data.read())

and receiving the error:

parsed_text.ssn_number 

>>> AttributeError: 'CommonRegex' object has no attribute 'ssn_number'

no problems with emails, phones, etc:

>>> parsed_text.emails

['trullly@gmail.com']

Appreciate it

@mhmcdonald
Copy link

@tlgevers This is because the package on pypi 1.5.4 was last published on August 29, 2014. If you install this directly from this github repo, your code will work

@brootware
Copy link

thank you @mhmcdonald , was actually facing the same error with phones_with_exts. Going forward is pypi package going to be maintained? @madisonmay

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

3 participants