Re: Problems with GPGME1.8 and Python 3.5 bindings
Hi, Jean-François Schaffwrites: > Thank you Justus for your advice, I could fix that and use the lib > from Python. Good. > I had not realized that both gpg and gpg2 are installed by default on > Ubuntu 16.04 LTS. How is that related to your problem? > Do you know if there is any plan to better document the python > bindings in the GPGME doc? Yes, there are plans. There currently is no documentation, because we wanted to find a solution that would cover GPGME as well as all bindings. Last year we spoke about that at one of our hackathons, and decided to give Sphinx a shot. > I may be able to help with that if needed. Help is always needed. However, the first step is to integrate Sphinx in our build system. If you feel up to that, great! We'd need a DCO From you. If you wanted to write documentation, also great, but that is not what we need right now. Cheers, Justus PS: You wrote almost the same mail yesterday. That is not helping... signature.asc Description: PGP signature ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: Problems with GPGME1.8 and Python 3.5 bindings
Hi, 2017-02-13 11:46 GMT+01:00 Justus Winter: > Hi :) > > Jean-François Schaff writes: > >> I'm new to gpg, and trying to use the Python bindings included in >> PGPME. I'm using Ubuntu 16.04 LTS. >> >> I have done the following things: > ... >> - compiled and installed gpgme-1.8.0 >> >> Everything seems to build and install as expected, but when I finally >> try to use the python package (import gpg) I get the following error: >> >> (venv) jfs@Danube-linux:~/webdev/mms$ python >> Python 3.5.2 (default, Nov 17 2016, 17:05:23) >> [GCC 5.4.0 20160609] on linux >> Type "help", "copyright", "credits" or "license" for more information. > import gpg >> Traceback (most recent call last): > ... >> ImportError: >> /home/jfs/webdev/mms/venv/local/lib/python3.5/site-packages/gpg/_gpgme.cpython-35m-x86_64-linux-gnu.so: >> symbol gpgme_pubkey_algo_string, version GPGME_1.1 not defined in file >> libgpgme.so.11 with link time reference > > gpgme_pubkey_algo_string is new in GPGME 1.7. This suggests that the > version 1.8 that you built is not picked up. How you resolve that is > really up to you and your needs. You could for example add the > $your_install_prefix/lib to LD_LIBRARY_PATH in your bin/activate script. > > > Cheers, > Justus Thank you Justus for your advice, I could fix that and use the lib from Python. I had not realized that both gpg and gpg2 are installed by default on Ubuntu 16.04 LTS. Do you know if there is any plan to better document the python bindings in the GPGME doc? I may be able to help with that if needed. Cheers, Jean-François ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: Problems with GPGME1.8 and Python 3.5 bindings
Hi, Thanks for your advice, I could fix that and use the lib from Python. Do you know if there is any plan to better document the python bindings in the GPGME doc? I may be able to help with that if needed. Cheers Jean-François Schaff 2017-02-13 11:46 GMT+01:00 Justus Winter: > Hi :) > > Jean-François Schaff writes: > > > I'm new to gpg, and trying to use the Python bindings included in > > PGPME. I'm using Ubuntu 16.04 LTS. > > > > I have done the following things: > ... > > - compiled and installed gpgme-1.8.0 > > > > Everything seems to build and install as expected, but when I finally > > try to use the python package (import gpg) I get the following error: > > > > (venv) jfs@Danube-linux:~/webdev/mms$ python > > Python 3.5.2 (default, Nov 17 2016, 17:05:23) > > [GCC 5.4.0 20160609] on linux > > Type "help", "copyright", "credits" or "license" for more information. > import gpg > > Traceback (most recent call last): > ... > > ImportError: /home/jfs/webdev/mms/venv/local/lib/python3.5/site- > packages/gpg/_gpgme.cpython-35m-x86_64-linux-gnu.so: > > symbol gpgme_pubkey_algo_string, version GPGME_1.1 not defined in file > > libgpgme.so.11 with link time reference > > gpgme_pubkey_algo_string is new in GPGME 1.7. This suggests that the > version 1.8 that you built is not picked up. How you resolve that is > really up to you and your needs. You could for example add the > $your_install_prefix/lib to LD_LIBRARY_PATH in your bin/activate script. > > > Cheers, > Justus > ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: Problems with GPGME1.8 and Python 3.5 bindings
Hi :) Jean-François Schaffwrites: > I'm new to gpg, and trying to use the Python bindings included in > PGPME. I'm using Ubuntu 16.04 LTS. > > I have done the following things: ... > - compiled and installed gpgme-1.8.0 > > Everything seems to build and install as expected, but when I finally > try to use the python package (import gpg) I get the following error: > > (venv) jfs@Danube-linux:~/webdev/mms$ python > Python 3.5.2 (default, Nov 17 2016, 17:05:23) > [GCC 5.4.0 20160609] on linux > Type "help", "copyright", "credits" or "license" for more information. import gpg > Traceback (most recent call last): ... > ImportError: > /home/jfs/webdev/mms/venv/local/lib/python3.5/site-packages/gpg/_gpgme.cpython-35m-x86_64-linux-gnu.so: > symbol gpgme_pubkey_algo_string, version GPGME_1.1 not defined in file > libgpgme.so.11 with link time reference gpgme_pubkey_algo_string is new in GPGME 1.7. This suggests that the version 1.8 that you built is not picked up. How you resolve that is really up to you and your needs. You could for example add the $your_install_prefix/lib to LD_LIBRARY_PATH in your bin/activate script. Cheers, Justus signature.asc Description: PGP signature ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users