Closed Sontras closed 6 years ago
The problem is that you are using Python version 2 while the whole project has been designed for version 3. I forgot to add a specific parameter in the setup file to tell pip that it needs to use Python 3 and only this version.
I'm fixing this for a next release, in the meanwhile you should use pip3 instead of pip and everything will run smoothly :)
Thank you for your issue :+1:
Hello and thanks for the reply,
my MacPort python installation is also bit messed up.
Thanks
Just in case someone is running into the same problems with macOS Sierra:
You have to have Xcode installed.
You have to have /usr/local/bin
in your PATH variable.
Install Xcode command line tools and homebrew
# xcode-select --install
# ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install python3
# brew install python
Install btlejack
# sudo -H pip3 install btlejack
Cheers
Actually, looking at this error message, the OP was using Python 3, but on MacOS you might not have your console set up as UTF-8 (in my experience there are some funny python 2 libraries that won't work anymore if you do that). So the easier fix for this problem is:
export LC_CTYPE=utf-8
export PYTHONIOENCODING=utf-8
At least that worked for me
macOS 10.12.6
If I convert README.rst to ASCII with
iconv -c -f UTF-8 -t ascii README.rst.bak > README.rst
everything works fine.