python - import error does not occurs only when required library is installed while repl is running -


i'm trying test cppyy module in pypy. cppyy requires reflex library, installed it. without it, error occurs

>>>> import cppyy                   traceback (most recent call last):   file "<stdin>", line 1, in <module> importerror: missing reflection library libcppyy_backend.so 

while python repl still runing, install reflex library , after that, 'import cppyy' works. however, when close repl , run again , try import cppyy, not works again(the error above). point when install reflex library while repl running, 'import cppyy' succeeds.
think real problem not cppyy or reflex , there have been similiar problems python repl. know how fix it?

i think you're confused behavior of pypy (which bug, should reported http://bugs.pypy.org/ ):

if type import cppyy once, fails importerror shown above, inconsistently, trying again import cppyy "works". of course, broken module.

to answer real question, seems failed install libcppyy_backend.so. make sure @ right place, documented.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -