BIND 10 #1851: finding python modules should not append

BIND 10 Development do-not-reply at isc.org
Tue Apr 10 01:27:26 UTC 2012


#1851: finding python modules should not append
-------------------------------------+-------------------------------------
                   Reporter:  jreed  |                 Owner:
                       Type:         |                Status:  new
  defect                             |             Milestone:
                   Priority:         |  Sprint-20120417
  medium                             |            Resolution:
                  Component:         |             Sensitive:  0
  Unclassified                       |           Sub-Project:  Core
                   Keywords:         |  Estimated Difficulty:  4
            Defect Severity:  N/A    |           Total Hours:  0
Feature Depending on Ticket:         |
        Add Hours to Ticket:  0      |
                  Internal?:  0      |
-------------------------------------+-------------------------------------

Comment (by jinmei):

 So, you've installed two sets of BIND10 python modules:

 - on under /var/users/jreed/dnsbench/.../site-packages
 - the other under /usr/local/lib/python3.x/site-packages or something,

 and the latter happens to be in the system's default PYTHONPATH, and
 then start the bind10 script that assumes that the modules are under
 /var/users/jreed/...?

 In that case, I suspect it's not (only) about appending the customized
 path to the default paths.  Other scripts executed by the boss process
 and other stand-alone BIND 10 python scripts such as loadzone will
 have the same problem, and if we want to make sure all of these use
 the expected paths, we need to set PYTHONPATH environment correctly.

 But I'm not sure if we want to do it within BIND 10 itself.
 Installing different sets of BIND 10 to different places seems to be
 quite unusual operation, and I suspect we might just ask such users to
 set the PYTHONPATH environment variable explicitly in their
 operational environment (in the shell, or a separate start script
 etc), rather than complicating the main code further.

-- 
Ticket URL: <http://bind10.isc.org/ticket/1851#comment:5>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list