SOLVED: invalid literal for int()

Use this forum to report bugs and to check for bugfixes and new releases of OpenEMM

Moderator: moderator

scuba303
Posts: 6
Joined: Thu Aug 16, 2007 11:35 am

SOLVED: invalid literal for int()

Post 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
Last edited by scuba303 on Fri Aug 17, 2007 4:16 pm, edited 1 time in total.
windows 2003 rs2
open emm 5.1.1
ActivePython-2.5.1.1-win32-x86.msi
MySQL-python-1.2.2.win32-py2.5.exe
jdk-6u2-windows-i586-p.exe
ud
Posts: 154
Joined: Thu Aug 17, 2006 9:56 am
Location: Munich, Germany
Contact:

Post 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
Post Reply