Re: [Mailman-Developers] New to mailman

On Dec 21, 2012, at 02:49 PM, Sandesh Agrawal wrote:
Did you type this into the interpreter prompt? If so, how did you start Python? Where exactly did you "run this"?
Note that the standard Python interpreter doesn't have its sys.path set up to import from the eggs directory. Use bin/py for that.
(If you're wondering what the difference is between bin/py
and bin/mailman shell
, it's that the latter does all the Mailman initializations necessary to
operate Mailman. E.g. it inits the log system, the ZCA, etc.)
Cheers, -Barry

Did you type this into the interpreter prompt? If so, how did you start Python? Where exactly did you "run this"?
Yes i was using python's default interpreter which was causing problems. /bin/py worked.
While making "class FakeArgs" for starting master process in mailman, i am doing config = make_config(), which gives the following error :
[config_file = os.path.join(os.path.dirname(config.filename), new_config) File "/usr/lib/python2.6/posixpath.py", line 119, in dirname i = p.rfind('/') + 1 AttributeError: 'NoneType' object has no attribute 'rfind'
i searched everything regarding this but could not find how to resolve it

Did you type this into the interpreter prompt? If so, how did you start Python? Where exactly did you "run this"?
Yes i was using python's default interpreter which was causing problems. /bin/py worked.
While making "class FakeArgs" for starting master process in mailman, i am doing config = make_config(), which gives the following error :
[config_file = os.path.join(os.path.dirname(config.filename), new_config) File "/usr/lib/python2.6/posixpath.py", line 119, in dirname i = p.rfind('/') + 1 AttributeError: 'NoneType' object has no attribute 'rfind'
i searched everything regarding this but could not find how to resolve it
participants (2)
-
Barry Warsaw
-
Sandesh Agrawal