You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"TypeError: not all arguments converted during string formatting" exception is thrown here:
File "/app/build-and-test-webapp/nita-webapp/ngcn_workbench/ngcn/networktypeparser.py", line 176, in normalizeZipFile
logger.debug("os.replace(" + tmp + "/tmp1/" + projectbase, tmp + "/tmp2/" + projectname + ")")
Message: 'os.replace(/tmp/tmpp0gaqzff/tmp1/ebgp_wan'
Arguments: ('/tmp/tmpp0gaqzff/tmp2/ebgp_wan_0.3)',)
The same behavior in a python shell, logging methods expect first format string as a first argument and if there no format symbols throws this exception:
log.debug("a",'/tmp/tmpp0gaqzff/tmp2/ebgp_wan_0.3)')
--- Logging error ---
Traceback (most recent call last):
File "/usr/local/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/logging/init.py", line 1083, in emit
msg = self.format(record)
File "/usr/local/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/logging/init.py", line 927, in format
return fmt.format(record)
File "/usr/local/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/logging/init.py", line 663, in format
record.message = record.getMessage()
File "/usr/local/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/logging/init.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "", line 1, in
Message: 'a'
Arguments: ('/tmp/tmpp0gaqzff/tmp2/ebgp_wan_0.3)',)
"TypeError: not all arguments converted during string formatting" exception is thrown here:
File "/app/build-and-test-webapp/nita-webapp/ngcn_workbench/ngcn/networktypeparser.py", line 176, in normalizeZipFile
logger.debug("os.replace(" + tmp + "/tmp1/" + projectbase, tmp + "/tmp2/" + projectname + ")")
Message: 'os.replace(/tmp/tmpp0gaqzff/tmp1/ebgp_wan'
Arguments: ('/tmp/tmpp0gaqzff/tmp2/ebgp_wan_0.3)',)
The same behavior in a python shell, logging methods expect first format string as a first argument and if there no format symbols throws this exception:
File "/usr/local/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/logging/init.py", line 663, in format
record.message = record.getMessage()
File "/usr/local/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/logging/init.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "", line 1, in
Message: 'a'
Arguments: ('/tmp/tmpp0gaqzff/tmp2/ebgp_wan_0.3)',)
This is working example:
The text was updated successfully, but these errors were encountered: