Installing the openwsman-python package doesn’t work. Configure’ing the 
fence-agents source tree fails because it still can’t find the pywsman module. 
I thought that it might be because it’s looking in 
/usr/lib/python-x/site-packages rather than /usr/lib64/python-x/site-packages 
(or vice versa…I can’t remember…) but when I looked at the output, it was 
definitely looking in the directory that had pywsman.py/pyc/pyo or whatever it 
was.

--
 
[ jR ]
  M: +1 (703) 628-2621
  @: ja...@eramsey.org
 
  there is no path to greatness; greatness is the path

On 8/10/16, 12:40 PM, "Jan Pokorný" <jpoko...@redhat.com> wrote:

    On 09/08/16 20:20 +0000, Jason A Ramsey wrote:
    > Here’s the output I now get out of pip install pywsman:
    > 
    > < stupiderrormessage >
    > 
    > # pip install pywsman
    > DEPRECATION: Python 2.6 is no longer supported by the Python core team, 
please upgrade your Python. A future version of pip will drop support for 
Python 2.6
    > Collecting pywsman
    > 
/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318:
 SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name 
Indication) extension to TLS is not available on this platform. This may cause 
the server to present an incorrect TLS certificate, which can cause validation 
failures. You can upgrade to a newer version of Python to solve this. For more 
information, see 
https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
    >   SNIMissingWarning
    > 
/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122:
 InsecurePlatformWarning: A true SSLContext object is not available. This 
prevents urllib3 from configuring SSL appropriately and may cause certain SSL 
connections to fail. You can upgrade to a newer version of Python to solve 
this. For more information, see 
https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
    >   InsecurePlatformWarning
    >   Using cached pywsman-2.5.2-1.tar.gz
    > Building wheels for collected packages: pywsman
    >   Running setup.py bdist_wheel for pywsman ... error
    >   Complete output from command /usr/bin/python -u -c "import setuptools, 
tokenize;__file__='/tmp/pip-build-bvG1Jf/pywsman/setup.py';exec(compile(getattr(tokenize,
 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" 
bdist_wheel -d /tmp/tmp3R7Zz5pip-wheel- --python-tag cp26:
    >   No version.i.in file found -- Building from sdist.
    >   /usr/lib/python2.6/site-packages/setuptools/dist.py:364: UserWarning: 
Normalizing '2.5.2-1' to '2.5.2.post1'
    >     normalized_version,
    >   running bdist_wheel
    >   running build
    >   running build_ext
    >   building '_pywsman' extension
    >   swigging openwsman.i to openwsman_wrap.c
    >   swig -python -I/tmp/pip-build-bvG1Jf/pywsman -I/usr/include/openwsman 
-features autodoc -o openwsman_wrap.c openwsman.i
    >   wsman-client.i:44: Warning(504): Function _WsManClient must have a 
return type.
    >   wsman-client.i:61: Warning(504): Function _WsManClient must have a 
return type.
    >   creating build
    >   creating build/temp.linux-x86_64-2.6
    >   gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall 
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv 
-DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE 
-fPIC -fwrapv -fPIC -I/tmp/pip-build-bvG1Jf/pywsman -I/usr/include/openwsman 
-I/usr/include/python2.6 -c openwsman.c -o 
build/temp.linux-x86_64-2.6/openwsman.o
    >   gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall 
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv 
-DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE 
-fPIC -fwrapv -fPIC -I/tmp/pip-build-bvG1Jf/pywsman -I/usr/include/openwsman 
-I/usr/include/python2.6 -c openwsman_wrap.c -o 
build/temp.linux-x86_64-2.6/openwsman_wrap.o
    >   openwsman_wrap.c: In function ‘_WsXmlDoc_string’:
    >   openwsman_wrap.c:3225: warning: implicit declaration of function 
‘ws_xml_dump_memory_node_tree_enc’
    >   openwsman_wrap.c: In function ‘__WsXmlNode_size’:
    >   openwsman_wrap.c:3487: warning: implicit declaration of function 
‘ws_xml_get_child_count_by_qname’
    >   openwsman_wrap.c: In function ‘epr_t_cmp’:
    >   openwsman_wrap.c:3550: warning: passing argument 2 of ‘epr_cmp’ 
discards qualifiers from pointer target type
    >   /usr/include/openwsman/wsman-epr.h:163: note: expected ‘struct epr_t *’ 
but argument is of type ‘const struct epr_t *’
    >   openwsman_wrap.c: In function ‘epr_t_string’:
    >   openwsman_wrap.c:3556: warning: implicit declaration of function 
‘epr_to_string’
    >   openwsman_wrap.c:3556: warning: return makes pointer from integer 
without a cast
    >   openwsman_wrap.c: In function ‘epr_t_selector_names’:
    >   openwsman_wrap.c:3575: error: ‘key_value_t’ undeclared (first use in 
this function)
    >   openwsman_wrap.c:3575: error: (Each undeclared identifier is reported 
only once
    >   openwsman_wrap.c:3575: error: for each function it appears in.)
    >   openwsman_wrap.c:3575: error: ‘p’ undeclared (first use in this 
function)
    >   openwsman_wrap.c: In function ‘_WS_CONTEXT_parse_enum_request’:
    >   openwsman_wrap.c:3821: error: too many arguments to function 
‘wsman_parse_enum_request’
    >   openwsman_wrap.c: In function ‘WsManTransport_get_username’:
    >   openwsman_wrap.c:3917: warning: implicit declaration of function 
‘wsman_transport_get_userName’
    >   openwsman_wrap.c:3917: warning: return makes pointer from integer 
without a cast
    >   openwsman_wrap.c: In function ‘WsManTransport_get_password’:
    >   openwsman_wrap.c:3923: warning: implicit declaration of function 
‘wsman_transport_get_password’
    >   openwsman_wrap.c:3923: warning: return makes pointer from integer 
without a cast
    >   openwsman_wrap.c: In function ‘WsManTransport_get_proxy_username’:
    >   openwsman_wrap.c:3929: warning: implicit declaration of function 
‘wsman_transport_get_proxy_username’
    >   openwsman_wrap.c:3929: warning: return makes pointer from integer 
without a cast
    >   openwsman_wrap.c: In function ‘WsManTransport_get_proxy_password’:
    >   openwsman_wrap.c:3935: warning: implicit declaration of function 
‘wsman_transport_get_proxy_password’
    >   openwsman_wrap.c:3935: warning: return makes pointer from integer 
without a cast
    >   openwsman_wrap.c: In function ‘client_opt_t_get_flags’:
    >   openwsman_wrap.c:4063: warning: implicit declaration of function 
‘wsmc_get_action_option’
    >   openwsman_wrap.c: In function ‘client_opt_t_set_fragment’:
    >   openwsman_wrap.c:4090: warning: implicit declaration of function 
‘wsmc_set_fragment’
    >   openwsman_wrap.c: In function ‘client_opt_t_set_cim_namespace’:
    >   openwsman_wrap.c:4096: warning: implicit declaration of function 
‘wsmc_set_cim_ns’
    >   openwsman_wrap.c: In function ‘client_opt_t_set_reference’:
    >  openwsman_wrap.c:4102: warning: implicit declaration of function 
‘wsmc_set_reference’
    >   openwsman_wrap.c: In function ‘client_opt_t_add_option’:
    >   openwsman_wrap.c:4109: warning: implicit declaration of function 
‘wsmc_add_option’
    >   openwsman_wrap.c: In function ‘client_opt_t_add_property__SWIG_1’:
    >   openwsman_wrap.c:4118: warning: implicit declaration of function 
‘wsmc_add_property_epr’
    >   openwsman_wrap.c: In function ‘init_pywsman’:
    >   openwsman_wrap.c:14963: error: ‘_WS_PASS_AUTH’ undeclared (first use in 
this function)
    >   error: command 'gcc' failed with exit status 1
    
    No wonder that you run into missing symbols when you are mixing the
    versions of the binaries/devel files (libwsman-devel installed from
    a native RPM repository, likely in version 2.2.3) and the Python
    bindings (obtained from in PyPI in substantially newer version,
    2.5.2).
    
    Why haven't you simply installed openwsman-python package?
    
    Definitely, you'd be better off using the same version of the codebase
    for both (http://openwsman.github.io/).
    
    -- 
    Jan (Poki)
    

_______________________________________________
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

Reply via email to