Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8771435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:47:14+00:00 2026-06-13T17:47:14+00:00

I am having a problem with importing and using the dnspython or easyzone modules

  • 0

I am having a problem with importing and using the dnspython or easyzone modules for Python in my Django project. I have also tried this script outside of DJango with the same issue so I am pretty sure the issue is unrelated to the framework.

I have a simple script that will open and parse zone file for the dns records inside. I have no issues importing the easyzone or dns modules, but when I try to access any of the methods inside I get this error:

Traceback (most recent call last):
    File "fabfile.py", line 6, in <module>
    z = easyzone.zone_from_file('example.com', '/var/namedb/example.com')
AttributeError: 'module' object has no attribute 'zone_from_file'

I have installed dnspython and easy install via easy_install with no issues. I can import the modules at the top of my script without error, it even shows me the path to the library in the IDE helper. But when trying to access any methods within easyzone or dns I get an error, also the code completion on the IDE will not list any methods either which leads me to believe it is a path issue or how I am importing them.

Here is my code where it fails:

import os
import csv
import easyzone
import dns

z = easyzone.zone_from_file('example.com', '/var/namedb/example.com')

Looking inside the module in the code I can clearly see these methods exist, what am I doing wrong to not be able to access them?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T17:47:15+00:00Added an answer on June 13, 2026 at 5:47 pm

    You need to correct the import; from the developer sourcecode hosting homepage:

    from easyzone import easyzone
    z = easyzone.zone_from_file('example.com', '/var/namedb/example.com')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im having problem in my UIscrollView ,this is what I have done: Whenever a
I have been having some trouble with matplotlib since I started using python. When
I am having problems importing Python's random module using Eclipse. It creates a red
I'm having trouble creating a UDF for a piglatin script I'm using. My problem
I'm having this problem using the knockout.mapping plugin in conjunction with RequireJS. Basically, the
I am having problem using mvc:resources in spring 3.1 configuration. Initially i was working
I am having problem to get a numerical value for this expression where I
I'm having problem with datagrid view. I have attached an image with the code
hello I am having problem related to https:// . I have used FB.getLoginStatus(function(response) function
I am having a problem in this code. what i am trying to do

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.