Code Monkey home page Code Monkey logo

Comments (7)

chrisburr avatar chrisburr commented on May 29, 2024

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.

eduardo-rodrigues avatar eduardo-rodrigues commented on May 29, 2024

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.

eduardo-rodrigues avatar eduardo-rodrigues commented on May 29, 2024

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.

goi42 avatar goi42 commented on May 29, 2024

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.

chrisburr avatar chrisburr commented on May 29, 2024

Can you try setting the deployment target environment variable while installing?

MACOSX_DEPLOYMENT_TARGET=10.9 pip install root_numpy --upgrade

from root_pandas.

goi42 avatar goi42 commented on May 29, 2024

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.

eduardo-rodrigues avatar eduardo-rodrigues commented on May 29, 2024

Glad that magic worded. I'm no Mac user so no clue why ;-).

from root_pandas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.