Comments (7)
I think the issue is with root_numpy
, can you try running import root_numpy
from within a Python session?
Assuming that fails, try to see if upgrading it helps:
pip install --upgrade root_numpy
from root_pandas.
Hi, for your information I will be uploading the most up-to-date version to PyPI really shortly. You should for sure try things out with that 4.8.0 version.
from root_pandas.
FYI version 4.8.0 is now on PyPI, see https://pypi.org/project/root-numpy/. Let us know how it goes, @goi42. Thanks.
from root_pandas.
As expected, import root_numpy
fails with a similar error. Unfortunately, I am unable to update:
$ pip install root_numpy --upgrade
Collecting root_numpy
Downloading https://files.pythonhosted.org/packages/d5/5f/82f5111c22599676eb8b5f9b1bf85c38dcc7995d52cd6b4a8f5f5caa4659/root_numpy-4.8.0.tar.gz (520kB)
100% |████████████████████████████████| 522kB 8.3MB/s
Building wheels for collected packages: root-numpy
Running setup.py bdist_wheel for root-numpy ... error
Complete output from command /Users/michael/anaconda2/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/zq/pwp8f9td4_9cb_b28mhfpffr0000gp/T/pip-install-iPwoK2/root-numpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /private/var/folders/zq/pwp8f9td4_9cb_b28mhfpffr0000gp/T/pip-wheel-WhLfk3 --python-tag cp27:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.6-x86_64-2.7
creating build/lib.macosx-10.6-x86_64-2.7/root_numpy
copying root_numpy/_graph.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
copying root_numpy/_sample.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
copying root_numpy/__init__.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
copying root_numpy/_warnings.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
copying root_numpy/_array.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
copying root_numpy/setup_utils.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
copying root_numpy/info.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
copying root_numpy/_matrix.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
copying root_numpy/_hist.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
copying root_numpy/_tree.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
copying root_numpy/_utils.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
copying root_numpy/_evaluate.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
creating build/lib.macosx-10.6-x86_64-2.7/root_numpy/tests
copying root_numpy/tests/test_utils.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tests
copying root_numpy/tests/test_hist.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tests
copying root_numpy/tests/test_tree.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tests
copying root_numpy/tests/test_sample.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tests
copying root_numpy/tests/test_array.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tests
copying root_numpy/tests/__init__.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tests
copying root_numpy/tests/test_evaluate.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tests
creating build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/__init__.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
creating build/lib.macosx-10.6-x86_64-2.7/root_numpy/extern
copying root_numpy/extern/ordereddict.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/extern
copying root_numpy/extern/__init__.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/extern
copying root_numpy/extern/six.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/extern
creating build/lib.macosx-10.6-x86_64-2.7/root_numpy/tmva
copying root_numpy/tmva/_data.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tmva
copying root_numpy/tmva/__init__.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tmva
copying root_numpy/tmva/tests.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tmva
copying root_numpy/tmva/_evaluate.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tmva
copying root_numpy/testdata/directories.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/object2.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/struct.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/test.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/vary1.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/single1.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/fixed2.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/trees.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/ntuple.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/fixed1.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/vary2.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/string.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/single2.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/vector.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/object1.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
running build_ext
building 'root_numpy._librootnumpy' extension
creating build/temp.macosx-10.6-x86_64-2.7
creating build/temp.macosx-10.6-x86_64-2.7/root_numpy
creating build/temp.macosx-10.6-x86_64-2.7/root_numpy/src
gcc -fno-strict-aliasing -I/Users/michael/anaconda2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iroot_numpy/src -I/Users/michael/anaconda2/include/python2.7 -I/Users/michael/anaconda2/lib/python2.7/site-packages/numpy/core/include -c root_numpy/src/_librootnumpy.cpp -o build/temp.macosx-10.6-x86_64-2.7/root_numpy/src/_librootnumpy.o -pthread -stdlib=libc++ -std=c++11 -m64 -I/Applications/root_build/include -Wno-unused-function -Wno-write-strings
clang: error: invalid deployment target for -stdlib=libc++ (requires OS X 10.7 or later)
error: command 'gcc' failed with exit status 1
----------------------------------------
Failed building wheel for root-numpy
Running setup.py clean for root-numpy
Failed to build root-numpy
Installing collected packages: root-numpy
Found existing installation: root-numpy 4.7.3
Uninstalling root-numpy-4.7.3:
Successfully uninstalled root-numpy-4.7.3
Running setup.py install for root-numpy ... error
Complete output from command /Users/michael/anaconda2/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/zq/pwp8f9td4_9cb_b28mhfpffr0000gp/T/pip-install-iPwoK2/root-numpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/zq/pwp8f9td4_9cb_b28mhfpffr0000gp/T/pip-record-OFytw3/install-record.txt --single-version-externally-managed --compile:
running install
_
_ __ ___ ___ | |_ _ __ _ _ _ __ ___ _ __ _ _
| '__/ _ \ / _ \| __| | '_ \| | | | '_ ` _ \| '_ \| | | |
| | | (_) | (_) | |_ | | | | |_| | | | | | | |_) | |_| |
|_| \___/ \___/ \__|___|_| |_|\__,_|_| |_| |_| .__/ \__, | 4.8.0
|_____| |_| |___/
writing 'root_numpy/config.json'
running build
running build_py
creating build
creating build/lib.macosx-10.6-x86_64-2.7
creating build/lib.macosx-10.6-x86_64-2.7/root_numpy
copying root_numpy/_graph.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
copying root_numpy/_sample.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
copying root_numpy/__init__.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
copying root_numpy/_warnings.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
copying root_numpy/_array.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
copying root_numpy/setup_utils.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
copying root_numpy/info.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
copying root_numpy/_matrix.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
copying root_numpy/_hist.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
copying root_numpy/_tree.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
copying root_numpy/_utils.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
copying root_numpy/_evaluate.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
creating build/lib.macosx-10.6-x86_64-2.7/root_numpy/tests
copying root_numpy/tests/test_utils.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tests
copying root_numpy/tests/test_hist.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tests
copying root_numpy/tests/test_tree.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tests
copying root_numpy/tests/test_sample.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tests
copying root_numpy/tests/test_array.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tests
copying root_numpy/tests/__init__.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tests
copying root_numpy/tests/test_evaluate.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tests
creating build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/__init__.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
creating build/lib.macosx-10.6-x86_64-2.7/root_numpy/extern
copying root_numpy/extern/ordereddict.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/extern
copying root_numpy/extern/__init__.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/extern
copying root_numpy/extern/six.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/extern
creating build/lib.macosx-10.6-x86_64-2.7/root_numpy/tmva
copying root_numpy/tmva/_data.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tmva
copying root_numpy/tmva/__init__.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tmva
copying root_numpy/tmva/tests.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tmva
copying root_numpy/tmva/_evaluate.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tmva
copying root_numpy/testdata/directories.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/object2.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/struct.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/test.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/vary1.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/single1.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/fixed2.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/trees.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/ntuple.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/fixed1.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/vary2.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/string.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/single2.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/vector.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/object1.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
copying root_numpy/config.json -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
running build_ext
building 'root_numpy._librootnumpy' extension
creating build/temp.macosx-10.6-x86_64-2.7
creating build/temp.macosx-10.6-x86_64-2.7/root_numpy
creating build/temp.macosx-10.6-x86_64-2.7/root_numpy/src
gcc -fno-strict-aliasing -I/Users/michael/anaconda2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iroot_numpy/src -I/Users/michael/anaconda2/include/python2.7 -I/Users/michael/anaconda2/lib/python2.7/site-packages/numpy/core/include -c root_numpy/src/_librootnumpy.cpp -o build/temp.macosx-10.6-x86_64-2.7/root_numpy/src/_librootnumpy.o -pthread -stdlib=libc++ -std=c++11 -m64 -I/Applications/root_build/include -Wno-unused-function -Wno-write-strings
clang: error: invalid deployment target for -stdlib=libc++ (requires OS X 10.7 or later)
error: command 'gcc' failed with exit status 1
----------------------------------------
Rolling back uninstall of root-numpy
Command "/Users/michael/anaconda2/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/zq/pwp8f9td4_9cb_b28mhfpffr0000gp/T/pip-install-iPwoK2/root-numpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/zq/pwp8f9td4_9cb_b28mhfpffr0000gp/T/pip-record-OFytw3/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/zq/pwp8f9td4_9cb_b28mhfpffr0000gp/T/pip-install-iPwoK2/root-numpy/
Note that I am running macOS 10.14.2.
from root_pandas.
Can you try setting the deployment target environment variable while installing?
MACOSX_DEPLOYMENT_TARGET=10.9 pip install root_numpy --upgrade
from root_pandas.
Thank you, that's resolved it:
$ MACOSX_DEPLOYMENT_TARGET=10.9 pip install root_numpy --upgrade
Collecting root_numpy
Using cached https://files.pythonhosted.org/packages/d5/5f/82f5111c22599676eb8b5f9b1bf85c38dcc7995d52cd6b4a8f5f5caa4659/root_numpy-4.8.0.tar.gz
Building wheels for collected packages: root-numpy
Running setup.py bdist_wheel for root-numpy ... done
Stored in directory: /Users/michael/Library/Caches/pip/wheels/f0/3c/18/62ccf3aec0284175916617d699f179d7cdbe4de0c7070be2a5
Successfully built root-numpy
Installing collected packages: root-numpy
Found existing installation: root-numpy 4.7.3
Uninstalling root-numpy-4.7.3:
Successfully uninstalled root-numpy-4.7.3
Successfully installed root-numpy-4.8.0
In [1]: import root_numpy
In [2]: import root_pandas
from root_pandas.
Glad that magic worded. I'm no Mac user so no clue why ;-).
from root_pandas.
Related Issues (20)
- ROOT 6.12 HOT 4
- Installation Instructions? HOT 1
- Problem installing root_pandas with anaconda HOT 11
- get_matching_variables is slow with many variables, columns
- Error if first file of the list does not contain the tree HOT 1
- Move to a BSD-3 license HOT 4
- IndexError when read_root used with chunksize returns an empty iterator HOT 1
- Recursive brace expansion is broken HOT 1
- Installing root_pandas on lxplus HOT 5
- Change error message in to_root when two columns have the same name HOT 1
- root_pandas randomly shuffles index of columns HOT 1
- read_root not compatible to new pandas version HOT 2
- Cannot install root_pandas on Google colab HOT 3
- to_root and read_root fail on macOS HOT 8
- Error while reading file from http://opendata.cern.ch/record/10 HOT 6
- Reading file with chunksize now gives iterator error HOT 2
- Segmentation fault with ROOT 6.22/02 HOT 1
- Installing with pip 21.0.1 does not work, as pip tries to use wheel but doesn't fall back on setup.py install HOT 7
- Parallel processing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from root_pandas.