Issue 912758: AskFolder (EasyDialogs) does not work? (original) (raw)
I previously was using this code:
#fss , ok = macfs.GetDirectory('Folder to search:')
Which worked fine on Python v2.3 on MOSX v10.3.
But, I am updating the code to use:
test = EasyDialogs.AskFolder ( message="Please choose a folder to process", defaultLocation=".", wanted=string)
Which results in:
Traceback (most recent call last): File "Panther:Users:benjamin:Desktop:Python:finders:re-dup- file.py", line 59, in ? test = EasyDialogs.AskFolder ( message="Please choose a folder to process", defaultLocation=".", wanted=string) AttributeError: 'module' object has no attribute 'AskFolder'
If I run the EasyDialogs.py self test, it dies (without a traceback), right after the following code:
rv = AskFileForSave(wanted=Carbon.File.FSRef, savedFileName="%s.txt"%s) Message("rv.as_pathname: %s"%rv.as_pathname())
Which the AskFolder test is what appears to be crashing the EasyDialogs test... (Since the pathname test message is appearing during the self test).
Logged In: YES user_id=45365
Sorry for being so late replying to this: I missed it.
But: I cannot repeat this. Could you please test again, to see that there wasn't some transient problem? Please run with "pythonw -v" and verify that you're getting the correct EasyDialogs, not some modified (incomplete) copy. If you still see the problem: please reopen the bug report, and supply exact version of Python and MacOS, plus the output of "pythonw -v" of your code and "dir(EasyDialogs)".