Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 653302 - dev-python/cryptography-2.1.4 - No module named _cffi_backend
Summary: dev-python/cryptography-2.1.4 - No module named _cffi_backend
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-16 14:56 UTC by mbe
Modified: 2018-05-22 19:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,89.58 KB, text/plain)
2018-04-16 14:56 UTC, mbe
Details
info.txt (info.txt,6.28 KB, text/plain)
2018-04-16 14:56 UTC, mbe
Details
env.log (env.log,118.78 KB, text/plain)
2018-04-16 14:57 UTC, mbe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mbe 2018-04-16 14:56:04 UTC
Created attachment 527570 [details]
build.log

Hello,

it crashes here:

* python2_7: running distutils-r1_run_phase distutils-r1_python_compile
/usr/bin/python2.7 setup.py build
Traceback (most recent call last):
  File "setup.py", line 307, in <module>
    **keywords_with_side_effects(sys.argv)
  File "/usr/lib64/python2.7/site-packages/setuptools/__init__.py", line 129, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib64/python2.7/distutils/core.py", line 111, in setup
    _setup_distribution = dist = klass(attrs)
  File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 334, in __init__
    _Distribution.__init__(self, attrs)
  File "/usr/lib64/python2.7/distutils/dist.py", line 287, in __init__
    self.finalize_options()
  File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 468, in finalize_options
    ep.load()(self, ep.name, value)
  File "/usr/lib64/python2.7/site-packages/cffi/setuptools_ext.py", line 193, in cffi_modules
    add_cffi_module(dist, cffi_module)
  File "/usr/lib64/python2.7/site-packages/cffi/setuptools_ext.py", line 49, in add_cffi_module
              [--selective {True,y,n}] [--sync-submodule {glsa,news,profiles}]
    execfile(build_file_name, mod_vars)
  File "/usr/lib64/python2.7/site-packages/cffi/setuptools_ext.py", line 25, in execfile
    exec(code, glob, glob)
  File "src/_cffi_src/build_openssl.py", line 107, in <module>
    extra_link_args=extra_link_args(compiler_type()),
  File "src/_cffi_src/utils.py", line 49, in build_ffi_for_binding
    extra_link_args=extra_link_args,
  File "src/_cffi_src/utils.py", line 57, in build_ffi
    ffi = FFI()
  File "/usr/lib64/python2.7/site-packages/cffi/api.py", line 46, in __init__
    import _cffi_backend as backend
ImportError: No module named _cffi_backend
Comment 1 mbe 2018-04-16 14:56:41 UTC
Created attachment 527572 [details]
info.txt
Comment 2 mbe 2018-04-16 14:57:08 UTC
Created attachment 527574 [details]
env.log
Comment 3 mbe 2018-05-22 19:19:44 UTC
Python team, any update on this?
Comment 4 mbe 2018-05-22 19:37:53 UTC
I have fixed this issue with changing permissions for the installed libraries:

# chmod 777 /usr/lib64/python2.7/site-packages/_cffi_backend.so
# chmod 777 /usr/lib64/python3.5/site-packages/_cffi_backend.cpython-35m-x86_64-linux-gnu.so
# chmod 777 /usr/lib64/python3.6/site-packages/_cffi_backend.cpython-36m-x86_64-linux-gnu.so