Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnicodeDecodeError #57

Open
glasscat opened this issue Nov 5, 2020 · 3 comments
Open

UnicodeDecodeError #57

glasscat opened this issue Nov 5, 2020 · 3 comments

Comments

@glasscat
Copy link

glasscat commented Nov 5, 2020

Mac 10.15.4
Python 2.7
xUnique 4.1.4

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 20: ordinal not in range(128)

@truebit
Copy link
Owner

truebit commented Nov 9, 2020

More details pls

@carlosalban
Copy link

carlosalban commented Aug 24, 2021

I just encountered this as well (Python 2.7.16):

  File "scripts/xUnique.py", line 575, in <module>
    main()
  File "scripts/xUnique.py", line 552, in main
    xunique = XUnique(xcode_proj_path, options.verbose)
  File "scripts/xUnique.py", line 104, in __init__
    self.proj_json = self.pbxproj_to_json()
  File "scripts/xUnique.py", line 127, in pbxproj_to_json
    json_unicode_str = decoded_string(sp_co(pbproj_to_json_cmd))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 216, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 394, in __init__
    errread, errwrite)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)Traceback (most recent call last):
  File "scripts/xUnique.py", line 575, in <module>
    main()
  File "scripts/xUnique.py", line 552, in main
    xunique = XUnique(xcode_proj_path, options.verbose)
  File "scripts/xUnique.py", line 104, in __init__
    self.proj_json = self.pbxproj_to_json()
  File "scripts/xUnique.py", line 127, in pbxproj_to_json
    json_unicode_str = decoded_string(sp_co(pbproj_to_json_cmd))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 216, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 394, in __init__
    errread, errwrite)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)

@truebit
Copy link
Owner

truebit commented Aug 25, 2021

@carlosalban could you please post sp_co(pbproj_to_json_cmd) output for debug? or just send me the project file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants