Installation difficulties - MacOS Sierra, Macbook Pro Late 2016
Hi, I love savReaderWriter. I just got a new computer and am having difficulties installing it. I use miniconda. When I type 'sudo pip install savReaderWriter' Everything appears to copy fine until I get the following error:
copying savReaderWriter/test_data/metadata_copy_test.sav -> build/lib/savReaderWriter/test_data Traceback (most recent call last): File "<string>", line 1, in <module> File "/private/tmp/pip-build-fjsm67l1/savReaderWriter/setup.py", line 129, in <module> cmdclass=versioneer.get_cmdclass() File "/Users/user1/miniconda3/lib/python3.5/distutils/core.py", line 148, in setup dist.run_commands() File "/Users/user1/miniconda3/lib/python3.5/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/Users/user1/miniconda3/lib/python3.5/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/Users/user1/miniconda3/lib/python3.5/site-packages/setuptools-27.2.0-py3.5.egg/setuptools/command/install.py", line 61, in run File "/Users/user1/miniconda3/lib/python3.5/distutils/command/install.py", line 539, in run self.run_command('build') File "/Users/user1/miniconda3/lib/python3.5/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/Users/user1/miniconda3/lib/python3.5/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/private/tmp/pip-build-fjsm67l1/savReaderWriter/versioneer.py", line 773, in run _build.run(self) File "/Users/user1/miniconda3/lib/python3.5/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/Users/user1/miniconda3/lib/python3.5/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/Users/user1/miniconda3/lib/python3.5/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/Users/user1/miniconda3/lib/python3.5/site-packages/setuptools-27.2.0-py3.5.egg/setuptools/command/build_py.py", line 53, in run File "/Users/user1/miniconda3/lib/python3.5/site-packages/setuptools-27.2.0-py3.5.egg/setuptools/command/build_py.py", line 123, in build_package_data File "/Users/user1/miniconda3/lib/python3.5/distutils/cmd.py", line 348, in copy_file dry_run=self.dry_run) File "/Users/user1/miniconda3/lib/python3.5/distutils/file_util.py", line 125, in copy_file log.info("%s %s -> %s", action, src, dir) File "/Users/user1/miniconda3/lib/python3.5/distutils/log.py", line 44, in info self._log(INFO, msg, args) File "/Users/user1/miniconda3/lib/python3.5/distutils/log.py", line 34, in _log stream.write('%s\n' % msg) UnicodeEncodeError: 'ascii' codec can't encode character '\xdf' in position 39: ordinal not in range(128)
----------------------------------------
Command "/Users/user1/miniconda3/bin/python -u -c "import setuptools, tokenize;file='/private/tmp/pip-build-fjsm67l1/savReaderWriter/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-60ycc47_-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-fjsm67l1/savReaderWriter/
Comments (4)
-
repo owner -
repo owner sorry, never mind the question about the username. I read it from my phone which is not so easy, but now I see your username is simply 'user1'. :-)
-
repo owner Hi again,
One of my coleagues was kind enough to install savReaderWriter on his personal Mac. It worked fine with conda using Python 3.5
locale: LANG="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_CTYPE="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_ALL="en_US.UTF-8" Perhaps relevant for building: macbook$ xcode-select --help Usage: xcode-select [options] Print or change the path to the active developer directory. This directory controls which tools are used for the Xcode command line tools (for example, xcodebuild) as well as the BSD development commands (such as cc and make). Options: -h, --help print this help message and exit -p, --print-path print the path of the active developer directory -s <path>, --switch <path> set the path for the active developer directory --install open a dialog for installation of the command line developer tools -v, --version print the xcode-select version -r, --reset reset to the default command line tools path macbook$ xcode-select -p /Applications/Xcode.app/Contents/Developer macbook$ gcc --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 8.0.0 (clang-800.0.42.1) Target: x86_64-apple-darwin16.4.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
So perhaps this is an installation issue rather than an issue with savReaderWriter? I'll close this issue for now, but feel free to re-open it if you think this is an error in savReaderWriter.
Best wishes, Albert-Jan
-
repo owner - changed status to invalid
- Log in to comment
Hi,
Does your user name have a non-ascii character in it? What do you see when you run pip with the verbose flag? What is the output of the
locale
command? Btw, Mac OS (in particular Sierra) is a bit problematic, because I (still) don't regularly test with Mac OS.Regards, Albert-Jan