-
Notifications
You must be signed in to change notification settings - Fork 218
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
SyntaxError: Non-ASCII character '\xc3' in file ./ia on line 3 #420
Comments
Interesting, I have not seen this issue before and am unable to replicate it. I'm not sure what's going on here, but I'll see what I can do. Thanks for the report! |
Thanks a lot :) And if there's a workaround for M1 in the mean time, I'm all ears! https://archive.org/details/amiga-ireland |
Update: not sure if this is due to brew upgrades, but there's been some change. This is what I get now for output for "ia help". Different results for python2 and python3.
|
The first traceback shows that contextlib2 no longer supports Python 2 (which has been EOL for nearly two years now). It was indeed dropped recently. The second traceback is what I'd expect with any invocation that doesn't call the binary. The binary already contains Python and all package dependencies; because the latter aren't actually installed on the system, your system |
I see. The docs at the link in my first post say that the "requirement for using the binaries is that you have Python installed on a Unix-like operating system." Workaround: Installing internetarchive with brew on the command line has given me a functioning binary. |
My mistake, I was thinking of something else there. Python itself actually isn't packaged and does need to be installed. |
I'm assuming there must be a difference between the direct binary available at the link in my first post and what is provided by home-brew. But I'm happy to have a working setup again. For anyone else having the issues in my 1st or 3rd post, just get it from a repo such as brew/apt and not from https://archive.org/services/docs/api/internetarchive/installation.html#binaries Edit: @jjjake posted advice below. Better to heed that. |
Yes, the brew installation is completely unrelated to the ia-pex binary. As far as I can see from the formula, it seems to simply install Python 3.9 and the ia Python package with its dependencies directly (in an isolated manner). |
For the record, I would not suggest using
|
@jjjake With Python 2 support dropped, I'm pretty sure this is no longer relevant and can be closed. |
Just downloaded the ia binary linked at https://archive.org/services/docs/api/internetarchive/installation.html#binaries
I did chmod +x but anytime I run, with or without arguments, it I get the following:
Python 2.7.16
macOS 11.4 (Big Sur) M1 processor.
Edit (more info): Shell % echo $LANG
en_IE.UTF-8
Same error explained on stackoverflow: https://stackoverflow.com/questions/26899235/python-nltk-syntaxerror-non-ascii-character-xc3-in-file-sentiment-analysis
The text was updated successfully, but these errors were encountered: