Comments (3)
The crash did occur when importing roopy.root2array.root_numpy
, e.g. like this:
python -c 'import rootpy.root2array'
I did reinstall rootpy, and as before librootnumpy
seems to have been compiled successfully:
creating build/temp.macosx-10.7-x86_64-2.7/rootpy/root2array/root_numpy
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -pipe -O2 -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I/Users/deil/bin/root/root_v5.32.02.source/include -Irootpy/root2array/root_numpy/ -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c rootpy/root2array/root_numpy/_librootnumpy.cxx -o build/temp.macosx-10.7-x86_64-2.7/rootpy/root2array/root_numpy/_librootnumpy.o -pthread -m64 -I/Users/deil/bin/root/root_v5.32.02.source/include
In file included from rootpy/root2array/root_numpy/_librootnumpy.cxx:14:
rootpy/root2array/root_numpy/TreeStructure.h:155:17: warning: unused variable 'ok' [-Wunused-variable]
int ok = find_coltype(leaf,ct,cv);
^
rootpy/root2array/root_numpy/TreeStructure.h:242:19: warning: unused variable 'tmp' [-Wunused-variable]
char* tmp = PyString_AsString(pytype);
^
rootpy/root2array/root_numpy/TreeStructure.h:391:21: warning: unused variable 'rt' [-Wunused-variable]
const char* rt = leaf->GetTypeName();
^
rootpy/root2array/root_numpy/TreeStructure.h:526:17: warning: unused variable 'ilocal' [-Wunused-variable]
int ilocal = bc.LoadTree(iEntry);
^
rootpy/root2array/root_numpy/TreeStructure.h:514:13: warning: unused variable 'kkk' [-Wunused-variable]
int kkk = PyArray_DescrConverter(numpy_descr,&descr);
^
rootpy/root2array/root_numpy/_librootnumpy.cxx:175:12: warning: unused variable 'tree' [-Wunused-variable]
TTree* tree=NULL;
^
rootpy/root2array/root_numpy/_librootnumpy.cxx:178:15: warning: unused variable 'array' [-Wunused-variable]
PyObject* array=NULL;
^
rootpy/root2array/root_numpy/_librootnumpy.cxx:205:12: warning: unused variable 'tree' [-Wunused-variable]
TTree* tree=NULL;
^
rootpy/root2array/root_numpy/_librootnumpy.cxx:208:15: warning: unused variable 'array' [-Wunused-variable]
PyObject* array=NULL;
^
9 warnings generated.
/usr/bin/clang++ -bundle -undefined dynamic_lookup -isysroot / -L/opt/local/lib build/temp.macosx-10.7-x86_64-2.7/rootpy/root2array/root_numpy/_librootnumpy.o -o build/lib.macosx-10.7-x86_64-2.7/rootpy/root2array/root_numpy/_librootnumpy.so -L/Users/deil/bin/root/root_v5.32.02.source/lib -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lpthread -Wl,-rpath,/Users/deil/bin/root/root_v5.32.02.source/lib -lm -ldl -m64 -L/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib
Also now the segfault during the docs build is gone, there are only a few warnings:
http://dl.dropbox.com/u/4923986/bug_reports/rootpy_docs2.log
I don't know what changed, the backtrace from the root_numpy import mentioned ROOT::TROOT, and this (still) crashes for me on Mac and Linux:
python -c 'import ROOT; ROOT.TROOT()'
Hmm, I guess this issue might be resolved.
from rootpy.
The docs need some attention... I've fixed all warnings and errors and removed root_numpy from the list of documented modules since it should really be invisible to users.
python -c 'import ROOT; ROOT.TROOT()'
This also crashes for me... Looks like a double delete?
from rootpy.
I've filed a ROOT bug report about the crash when creating ROOT.TROOT()
here:
https://savannah.cern.ch/bugs/?94478
It's classified as spam at the moment, though, apparently their bug reported has been configured to detect stupid things like trying to construct a second object for a signleton class. :-)
Thanks for the quick fixes in rootpy!
from rootpy.
Related Issues (20)
- RootPy installation - ROOT cannot be imported? HOT 1
- Errors when installing with latest recommended ROOT HOT 2
- How to deal with roopy features that are adapted by PYROOT?
- Fill an STL vector of vectors HOT 3
- root errors turn always in python exceptions HOT 1
- Crash from import rootpy when HOME in not set.
- invalid escape sequence in BaseTree.DRAW_PATTERN
- rootpy.org no longer available HOT 4
- Error in unpickly root file with python3 HOT 8
- rootpy.io.file.walk gets slower the longer you "walk" HOT 1
- RDataFrame support?
- rootpy and ROOT 6.18 HOT 5
- Can't import rootpy in Python 3.8 HOT 5
- byteplay implementation incompatible with Python 3.8 opcode changes
- rootpy build failure with ROOT 6.20
- rootpy incompatible with the new PyROOT HOT 2
- Warning in <TClass::Init>: no dictionary for class RooSTLRefCountList<RooAbsArg> is available
- Change cache location? HOT 2
- Axis ticks hidden behind histogram despite sufficiently large zorder HOT 1
- Rootpy/Pyroot Python 3.8 for Windows 11 HOT 1
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 rootpy.