[ 
https://issues.apache.org/jira/browse/MESOS-1010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14176016#comment-14176016
 ] 

Till Toenshoff commented on MESOS-1010:
---------------------------------------

Turned out that my specific case was cause by a faulty python egg being 
previously installed - our tests prefer installed eggs instead of a built one, 
hence I was always getting that same error, no matter what I tried.

Doing a {{./bin/mesos-tests.sh --gtest_filter="*Python*" --verbose}} turned up 
the issue:
{noformat}
[ RUN      ] ExamplesTest.PythonFramework
Using temporary directory '/tmp/ExamplesTest_PythonFramework_QyHagx'
Traceback (most recent call last):
  File 
"/Users/till/Development/mesos/build/../src/examples/python/test_framework.py", 
line 25, in <module>
    import mesos.native
  File "/usr/local/lib/python2.7/site-packages/mesos/native/__init__.py", line 
17, in <module>
    from ._mesos import MesosExecutorDriverImpl
ImportError: 
dlopen(/usr/local/lib/python2.7/site-packages/mesos/native/_mesos.so, 2): 
Symbol not found: __ZN6google14FlagRegistererC1EPKcS2_S2_S2_PvS3_
  Referenced from: /usr/local/lib/python2.7/site-packages/mesos/native/_mesos.so
  Expected in: flat namespace
 in /usr/local/lib/python2.7/site-packages/mesos/native/_mesos.so
../../src/tests/script.cpp:83: Failure
Failed
python_framework_test.sh exited with status 1
[  FAILED  ] ExamplesTest.PythonFramework (169 ms)
{noformat}

In the above case, the test was using a previously installed egg 
({{/usr/local/lib/python2.7/site-packages/mesos/native/_mesos.so}}. After 
removing that bugger manually from my python installation, everything went back 
to normal.


> Python extension build is broken if gflags-dev is installed
> -----------------------------------------------------------
>
>                 Key: MESOS-1010
>                 URL: https://issues.apache.org/jira/browse/MESOS-1010
>             Project: Mesos
>          Issue Type: Bug
>          Components: build, python api
>         Environment: Fedora 20, amd64. GCC: 4.8.2.
>            Reporter: Nikita Vetoshkin
>
> In my environment mesos build from master results in broken python api module 
> {{_mesos.so}}:
> {noformat}
> nekto0n@ya-darkstar ~/workspace/mesos/src/python $ 
> PYTHONPATH=build/lib.linux-x86_64-2.7/ python -c "import _mesos"
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
> ImportError: 
> /home/nekto0n/workspace/mesos/src/python/build/lib.linux-x86_64-2.7/_mesos.so:
>  undefined symbol: _ZN6google14FlagRegistererC1EPKcS2_S2_S2_PvS3_
> {noformat}
> Unmangled version of symbol looks like this:
> {noformat}
> google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, 
> char const*, void*, void*)
> {noformat}
> During {{./configure}} step {{glog}} finds {{gflags}} development files and 
> starts using them, thus *implicitly* adding dependency on {{libgflags.so}}. 
> This breaks Python extensions module and perhaps can break other mesos 
> subsystems when moved to hosts without {{gflags}} installed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to