Giter Club home page Giter Club logo

Comments (7)

DigApis-Michael avatar DigApis-Michael commented on July 23, 2024

The Error is:

copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl
    running egg_info
    writing src/cryptography.egg-info/PKG-INFO
    writing dependency_links to src/cryptography.egg-info/dependency_links.txt
    writing entry points to src/cryptography.egg-info/entry_points.txt
    writing requirements to src/cryptography.egg-info/requires.txt
    writing top-level names to src/cryptography.egg-info/top_level.txt
    reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    no previously-included directories found matching 'docs/_build'
    warning: no previously-included files matching '*' found under directory 'vectors'
    writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
    running build_ext
    generating cffi module 'build/temp.linux-x86_64-3.6/_padding.c'
    creating build/temp.linux-x86_64-3.6
    generating cffi module 'build/temp.linux-x86_64-3.6/_constant_time.c'
    generating cffi module 'build/temp.linux-x86_64-3.6/_openssl.c'
    building '_openssl' extension
    creating build/temp.linux-x86_64-3.6/build
    creating build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-L5pQY2/python3.6-3.6.4~rc1=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -c build/temp.linux-x86_64-3.6/_openssl.c -o build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6/_openssl.o
    build/temp.linux-x86_64-3.6/_openssl.c:483:10: fatal error: openssl/opensslv.h: No such file or directory
     #include <openssl/opensslv.h>
              ^~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    
    ----------------------------------------
  Can't rollback cryptography, nothing uninstalled.
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-2zftfcbg/cryptography/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-_gadlt48-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-2zftfcbg/cryptography/

ENV: Kali VM 64 bit + apt-get install python3-pip

from anubis.

jonluca avatar jonluca commented on July 23, 2024

Hmmm looks like you'll also need openssl and various dependencies. Try:

sudo apt-get install python3-pip python-dev libssl-dev

Then try installing it.

from anubis.

DigApis-Michael avatar DigApis-Michael commented on July 23, 2024

@jonluca Hi Jonluca, thank you for such a quick response. Yep, I've insalled the devs, and it's installed successfully. Great tool, recommended by a friend.

from anubis.

jonluca avatar jonluca commented on July 23, 2024

Thanks!

I just tested it on my Kali box and I'm getting the same results. I'll work on this.

Thanks!

from anubis.

DigApis-Michael avatar DigApis-Michael commented on July 23, 2024

@jonluca the exact command for Kali is:

apt-get install build-essential libssl-dev libffi-dev python3-dev

Just for your reference, if needed. :-)

from anubis.

jonluca avatar jonluca commented on July 23, 2024

How odd. I ran sudo apt-get install build-essential libssl-dev libffi-dev python3-dev from here and it resolved my issue.

Make sure you do pip3 install ., as well.

Ah great to hear it worked for you!

from anubis.

DigApis-Michael avatar DigApis-Michael commented on July 23, 2024

@jonluca Hah, I just want to make sure the dev is also for python3 (I got a feeling from you readme that I'd better use all python3 for this, so....).

I also found a solution asking to install python-dev, without 3. But anyway, that's ok for this tool. Feeling safe. 😂

from anubis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.