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
I am running into an issue in artifactory 0.1.17 on python 2.7.14 (32 bit).
The code parsed.append(intern(x)) in pathlib._Flavour.parse_parts() is raising the exception TypeError: intern() argument 1 must be string, not unicode.
I found that this is ultimately due to configparser.ConfigParser.read() in artifactory.read_config() returning unicode strings, but those are never converted via str(s) anywhere.
I was able to workaround this with the following code:
import artifactory
# fix for bug in artifactory module, caused by unicode/str issues
artifactory.read_global_config()
new_config = {}
for section in artifactory.global_config:
new_config[str(section)] = artifactory.global_config[section]
artifactory.global_config[section] = None
artifactory.global_config = new_config
The text was updated successfully, but these errors were encountered:
I am running into an issue in artifactory 0.1.17 on python 2.7.14 (32 bit).
The code
parsed.append(intern(x))
inpathlib._Flavour.parse_parts()
is raising the exceptionTypeError: intern() argument 1 must be string, not unicode
.I found that this is ultimately due to
configparser.ConfigParser.read()
inartifactory.read_config()
returning unicode strings, but those are never converted viastr(s)
anywhere.I was able to workaround this with the following code:
The text was updated successfully, but these errors were encountered: