Page 1 of 1

SOLVED: invalid literal for int()

Posted: Fri Aug 17, 2007 2:48 pm
by scuba303
got some problems starting up
hope this is right in bug, cause getting something different than a int seems for me to be a bug.

Code: Select all

Starting up .. home is C:\OpenEMM .. found codebase .. found database.
Removed stale file C:\OpenEMM\var\run\openemm.stop.
Removed stale file C:\OpenEMM\webapps\openemm\htdocs\WEB-INF\sessions\srun_conso
le.db.
Removed stale file C:\OpenEMM\webapps\openemm\htdocs\WEB-INF\sessions\srun_redir
ection.db.
Running, press return for termination: Exception in thread Spool ADMIN:
Traceback (most recent call last):
  File "C:\Python25\lib\threading.py", line 462, in __bootstrap
    self.run()
  File "C:\OpenEMM\bin\scripts\semu.py", line 535, in run
    self.spool.execute ()
  File "C:\OpenEMM\bin\scripts\semu.py", line 511, in execute
    e.setup (self.path, qfname, dfname)
  File "C:\OpenEMM\bin\scripts\semu.py", line 287, in setup
    self.mailingID = int (mid, 16)
ValueError: invalid literal for int() with base 16: '14e8T1'
edit: thank you for the help. problem solved

Posted: Fri Aug 17, 2007 3:20 pm
by ud
This is a bug with a slightly too simple regular expression. You can fix this by editing the file bin\scripts\semu.py and replace line 241 (original):

Code: Select all

parseFID = re.compile ('^qf([0-9A-Z]{6})[0-9A-Z]{3}([0-9A-Z]{8})$', re.IGNORECASE)
with this line (please ensure to keep indention):

Code: Select all

parseFID = re.compile ('^qf([0-9A-F]{6})[0-9A-Z]{3}([0-9A-F]{8})$', re.IGNORECASE)
-- ud