Issue 2550776
Created on 2012-09-11 01:12 by jerrykan, last changed 2016-07-11 01:55 by rouilj.
msg4643 |
Author: [hidden] (jerrykan) |
Date: 2012-09-11 01:12 |
|
> Dear fellow Roundup users,
>
> I was trying to run the imapServer.py script on Windows Home Server SP2,
> but did not succeed.
>
> When starting the script according to the scheme
> >python imapServer.py C:\trackerhome
> imaps://tracker-mailaddress:password@imapserver
>
> I get the following errors:
> Traceback (most recent call last):
> File "imapServer.py", line 381, in <module>
> main()
> File "imapServer.py", line 357, in main
> log.setLevel(opts.verbose)
> File "C:\Python27\lib\logging\__init__.py", line 1108, in setLevel
> self.level = _checkLevel(level)
> File "C:\Python27\lib\logging\__init__.py", line 190, in _checkLevel
> raise TypeError("Level not an integer or a valid string: %r" % level)
> TypeError: Level not an integer or a valid string: None
>
> roundup-mailgw itself runs flawlessly using the same input. I would
> greatly appreciate if anybody could point me to what I am doing wrong.
>
> Best regards,
> Heiko
>
|
msg5832 |
Author: [hidden] (rouilj) |
Date: 2016-07-11 01:55 |
|
Look like and easy fix. The opts.verbose is not initialized unless you
use -v, -V -q or -Q. If you use one of those this error doesn't occur.
I patched the file to set opts.verbose to logging.WARNING if it
is set to None after the argument parser is done.
I was able to reproduce the problem and the problem is gone after
my patch.
See commit: 939dce88cfc2
|
|
Date |
User |
Action |
Args |
2016-07-11 01:55:28 | rouilj | set | status: new -> fixed type: crash messages:
+ msg5832 assignee: rouilj nosy:
+ rouilj resolution: fixed |
2012-09-11 01:15:59 | jerrykan | set | priority: normal keywords:
+ Effort-Low versions:
+ 1.4 |
2012-09-11 01:12:53 | jerrykan | create | |
|