isshininu Posted May 9 Share Posted May 9 Experiencing a troubles using script Python script (courtecy of xentax). When I leave path_Directory = raw_input("path\\") getting arror that raw_input not defined, and when I edit path to source files like in commented out line above in script, to be like this: path_Directory = "D:\\Program Files\\Middle-earth. Shadow of Mordor\\Arch05\\!!Unpack\\models\\weapons\\player_weapons\\player_sword01\\" (literally the line from script) executing this script throws an error File "ShadowOfMordor_tex_converter_v1.1.py", line 51, in <module> print("format: " + format) TypeError: can only concatenate str (not "bytes") to str 8556_ShadowOfMordor_tex_converter_v1.1.py.7z Link to comment Share on other sites More sharing options...
DKDave Posted May 9 Share Posted May 9 16 minutes ago, isshininu said: Experiencing a troubles using script Python script (courtecy of xentax). When I leave path_Directory = raw_input("path\\") getting arror that raw_input not defined, and when I edit path to source files like in commented out line above in script, to be like this: path_Directory = "D:\\Program Files\\Middle-earth. Shadow of Mordor\\Arch05\\!!Unpack\\models\\weapons\\player_weapons\\player_sword01\\" (literally the line from script) executing this script throws an error File "ShadowOfMordor_tex_converter_v1.1.py", line 51, in <module> print("format: " + format) TypeError: can only concatenate str (not "bytes") to str 8556_ShadowOfMordor_tex_converter_v1.1.py.7z 1.37 kB · 1 download Try amending "raw_input" to just "input" - raw_input is for an older version of Python. Link to comment Share on other sites More sharing options...
ikskoks Posted May 10 Share Posted May 10 Remove this line from the script: print("format: " + format) Or change it to something like: print("format: " + str(format.decode("utf8"))) Also it's bether to use environemnt variables for paths, so you could do something like this: path_Directory = os.environ["MY_PATH_DIRECTORY"] and then set such environemnt value in Windows (or in IDE config) and execute script Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now