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

DNS has no attribute Type #83

Closed
mvogelgesang opened this issue Jun 7, 2018 · 3 comments
Closed

DNS has no attribute Type #83

mvogelgesang opened this issue Jun 7, 2018 · 3 comments
Labels
duplicate This issue or pull request already exists or is covered in another issue or pull request

Comments

@mvogelgesang
Copy link

I am having difficulty running trustymail against any domains and receiving a "AttributeError: module 'DNS' has no attribute 'Type'" error. The error below is the same

Background info:
Macbook air
Using pyenv to manage Python versions
Python v3.6.5
Built locally using tag v0.5.5

Other workarounds attempted

  • Run against other versions of Python 3.4.0, 2.7.0
  • Run against latest on develop (61aaee4)
  • Install and run via pip install trustymail

Output

$ python scripts/trustymail gsa.gov
Traceback (most recent call last):
  File "scripts/trustymail", line 179, in <module>
    main()
  File "scripts/trustymail", line 76, in main
    import trustymail.trustymail as tmail
  File "/Users/me/Sites/trustymail/trustymail/trustymail.py", line 11, in <module>
    import spf
  File "/Users/me/.pyenv/versions/3.6.5/lib/python3.6/site-packages/spf.py", line 111, in <module>
    if not hasattr(DNS.Type, 'SPF'):
AttributeError: module 'DNS' has no attribute 'Type'
@h-m-f-t
Copy link
Member

h-m-f-t commented Jun 7, 2018

Thanks for the report, @mvogelgesang. This is a known issue, caused because the macOS filesystem is case-insensitive (by default).

@mvogelgesang
Copy link
Author

Thanks @h-m-f-t. Apologies, I must have overlooked it prior to creating the issue.

@jsf9k jsf9k added the duplicate This issue or pull request already exists or is covered in another issue or pull request label Jun 7, 2018
@jsf9k
Copy link
Member

jsf9k commented Jun 7, 2018

No worries, @mvogelgesang. I'm closing this issue as a duplicate.

@jsf9k jsf9k closed this as completed Jun 7, 2018
mcdonnnj added a commit that referenced this issue Jan 23, 2023
mcdonnnj added a commit that referenced this issue Jan 23, 2023
…ock_style_sequence

Switch to Block-Style Sequence for Python Versions in build Workflow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists or is covered in another issue or pull request
Projects
None yet
Development

No branches or pull requests

3 participants