× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I see that python3 has the cryptography library but not python2 .  I am on V7R4 and python 2.7.17 installed through the Open Source Package manager (the only way OSS has been installed on this machine).  I get the following error:

bash-4.4$ pip2 install cryptography
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting cryptography
  Using cached https://files.pythonhosted.org/packages/be/60/da377e1bed002716fb2d5d1d1cab720f298cb33ecff7bf7adea72788e4e4/cryptography-2.8.tar.gz
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... error
    ERROR: Command errored out with exit status 1:
     command: /QOpenSys/pkgs/bin/python2 /QOpenSys/pkgs/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpV3U20Q
         cwd: /tmp/pip-install-CW5LUD/cryptography
    Complete output (41 lines):
    Traceback (most recent call last):
      File "/QOpenSys/pkgs/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
        main()
      File "/QOpenSys/pkgs/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
        json_out['return_val'] = hook(**hook_input['kwargs'])
      File "/QOpenSys/pkgs/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 110, in prepare_metadata_for_build_wheel
        return hook(metadata_directory, config_settings)
      File "/tmp/pip-build-env-3ziLDd/overlay/lib/python2.7/site-packages/setuptools/build_meta.py", line 156, in prepare_metadata_for_build_wheel
        self.run_setup()
      File "/tmp/pip-build-env-3ziLDd/overlay/lib/python2.7/site-packages/setuptools/build_meta.py", line 142, in run_setup
        exec(compile(code, __file__, 'exec'), locals())
      File "setup.py", line 275, in <module>
        **keywords_with_side_effects(sys.argv)
      File "/tmp/pip-build-env-3ziLDd/overlay/lib/python2.7/site-packages/setuptools/__init__.py", line 145, in setup
        return distutils.core.setup(**attrs)
      File "/QOpenSys/pkgs/lib/python2.7/distutils/core.py", line 111, in setup
        _setup_distribution = dist = klass(attrs)
      File "/tmp/pip-build-env-3ziLDd/overlay/lib/python2.7/site-packages/setuptools/dist.py", line 447, in __init__
        k: v for k, v in attrs.items()
      File "/QOpenSys/pkgs/lib/python2.7/distutils/dist.py", line 287, in __init__
        self.finalize_options()
      File "/tmp/pip-build-env-3ziLDd/overlay/lib/python2.7/site-packages/setuptools/dist.py", line 735, in finalize_options
        ep.load()(self, ep.name, value)
      File "/tmp/pip-build-env-3ziLDd/overlay/lib/python2.7/site-packages/cffi/setuptools_ext.py", line 217, in cffi_modules
        add_cffi_module(dist, cffi_module)
      File "/tmp/pip-build-env-3ziLDd/overlay/lib/python2.7/site-packages/cffi/setuptools_ext.py", line 49, in add_cffi_module
        execfile(build_file_name, mod_vars)
      File "/tmp/pip-build-env-3ziLDd/overlay/lib/python2.7/site-packages/cffi/setuptools_ext.py", line 25, in execfile
        exec(code, glob, glob)
      File "src/_cffi_src/build_openssl.py", line 106, in <module>
        extra_link_args=extra_link_args(compiler_type()),
      File "src/_cffi_src/utils.py", line 57, in build_ffi_for_binding
        extra_link_args=extra_link_args,
      File "src/_cffi_src/utils.py", line 65, in build_ffi
        ffi = FFI()
      File "/tmp/pip-build-env-3ziLDd/overlay/lib/python2.7/site-packages/cffi/api.py", line 48, in __init__
        import _cffi_backend as backend
    ImportError: Could not load module /tmp/pip-build-env-3ziLDd/overlay/lib/python2.7/site-packages/_cffi_backend.so.
        The local-exec model was used for thread-local
           storage, but the module is not the main program.
    Examine the .loader section header with the 'dump -Hv' command.
    ----------------------------------------
ERROR: Command errored out with exit status 1: /QOpenSys/pkgs/bin/python2 /QOpenSys/pkgs/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpV3U20Q Check the logs for full command output.

Searches turned up nothing useful.cffi is installed: (with "pip2 install cffi") just can't quite sort out what the error is trying to tell me except that _cffi_backend.so shared object isn't found.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.