Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when importing Aerospike #227

Closed
jpedroantunes opened this issue Sep 19, 2018 · 5 comments
Closed

Error when importing Aerospike #227

jpedroantunes opened this issue Sep 19, 2018 · 5 comments

Comments

@jpedroantunes
Copy link

jpedroantunes commented Sep 19, 2018

When trying to import Aerospike Python Client (v3.4.1) using Python 3.6.5 in a VirtualEnv (using Linux Mint 19) I'm getting this error message;

ImportError: /opt/pyenv/apisd/lib/python3.6/site-packages/aerospike.cpython-36m-x86_64-linux-gnu.so: undefined symbol: SSLv23_client_method

I've already tried this solution #214 and it isn't working :/

@aerospikerobertmarks
Copy link
Contributor

Were you able to build the C client using the steps from #214 or was that the step which failed?

@jpedroantunes
Copy link
Author

jpedroantunes commented Sep 20, 2018

Were you able to build the C client using the steps from #214 or was that the step which failed?

When executing the command AEROSPIKE_C_HOME=$PWD DOWNLOAD_C_CLIENT=0 pip install --no-cache-dir aerospike from #214 I get this error message:

    src/main/client/type.c:892:22: error: ‘as_config_lua {aka struct as_config_lua_s}’ has no member named ‘system_path’; did you mean ‘user_path’?
        strcpy(config.lua.system_path, PyString_AsString(py_lua_system_path));
                          ^~~~~~~~~~~
                          user_path
    src/main/client/type.c:913:22: error: ‘as_config_lua {aka struct as_config_lua_s}’ has no member named ‘system_path’; did you mean ‘user_path’?
        strcpy(config.lua.system_path, system_path);
                          ^~~~~~~~~~~
                          user_path
    src/main/client/type.c:916:15: error: ‘as_config_lua {aka struct as_config_lua_s}’ has no member named ‘system_path’; did you mean ‘user_path’?
        config.lua.system_path[0] = '\0';
                   ^~~~~~~~~~~
                   user_path
    error: command 'gcc' failed with exit status 1
    
    ----------------------------------------
Command "/opt/pyenv/apisd/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-emp04rn9/aerospike/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-odgk5tgw/install-record.txt --single-version-externally-managed --compile --install-headers /opt/pyenv/apisd/include/site/python3.6/aerospike" failed with error code 1 in /tmp/pip-install-emp04rn9/aerospike/

@aerospikerobertmarks
Copy link
Contributor

Ok. I forgot that the Python client version 3.4.1 depends on the C client version 4.3.14 . So for now, to get that to work, it's necessary to build the C client at the tagged version 4.3.14 .
e.g. From the C client directory

git checkout 4.3.14
git submodule update --init
make clean
make
AEROSPIKE_C_HOME=$PWD DOWNLOAD_C_CLIENT=0 pip install --no-cache-dir aerospike

This is a lot of steps, and we're working to make it simpler.

The next version of the Python client (3.4.2) works with the newest C client, so once that gets released on Pypi, which should be today or early next week, the solution mentioned in #214 should work.

Thanks for bringing up the issue!

@jpedroantunes
Copy link
Author

Ok. I forgot that the Python client version 3.4.1 depends on the C client version 4.3.14 . So for now, to get that to work, it's necessary to build the C client at the tagged version 4.3.14 .
e.g. From the C client directory

git checkout 4.3.14
git submodule update --init
make clean
make
AEROSPIKE_C_HOME=$PWD DOWNLOAD_C_CLIENT=0 pip install --no-cache-dir aerospike

This is a lot of steps, and we're working to make it simpler.

The next version of the Python client (3.4.2) works with the newest C client, so once that gets released on Pypi, which should be today or early next week, the solution mentioned in #214 should work.

Thanks for bringing up the issue!

Thanks! Now it worked =D

@alon-dotan-starkware
Copy link

any chance to get this issue solved in a better way?
like, push 2 different versions to pip repo?
we use erogenous environments, ubuntu 18.04, arch, latest fedora to build and develop our product, this issue makes the dependency maintenance much more complicated then he need to be...
Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants