Coder Social home page Coder Social logo

pycrypt's Introduction

Pycrypt

A fast Cython extension for TwoFish encryption in Python.

pycrypt's People

Contributors

kyopo avatar laverdet avatar noctem avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

johnforeland

pycrypt's Issues

Error installing pycrypt on Raspberry Pi 3

So after the latest commit, the -march=native argument when compiling with gcc is causing an error on Raspberry Pi 3 due to cpu auto-detection not working there (see https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=139091&p=922980)

It says I could update gcc to gcc6, but then the gcc6 command must be used, as gcc will still be the old one. It also says this fix is backborted to gcc4, but raspbian has not updated it yet.

Would it be possible to check if using a Raspberry PI 2/3 after setup.py:11, then instead of adding "-march=native", add "-march=armv8-a" for RPi3 only or "-march=armv6" (or just remove -march=native option) to build for all RPis. (copy pasted from url above)

Error when installing:

  building 'pycrypt' extension
  creating build
  creating build/temp.linux-armv7l-2.7
  gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/lib/python2.7.13/include/python2.7 -c pycrypt.c -o build/temp.linux-armv7l-2.7/pycrypt.o -O3 -march=native
  error: command 'gcc' terminated by signal 6
  
  ----------------------------------------
  Failed building wheel for pycrypt
  Running setup.py clean for pycrypt
Failed to build pycrypt
Installing collected packages: pycrypt
  Running setup.py install for pycrypt ... -*** Error in `gcc': double free or corruption (top): 0x00807fb0 ***
error
    Complete output from command /home/pi/pogo/RocketMap/venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-U_cb5L/pycrypt/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-njl2Lb-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/pogo/RocketMap/venv/include/site/python2.7/pycrypt:
    running install
    running build
    running build_ext
    building 'pycrypt' extension
    creating build
    creating build/temp.linux-armv7l-2.7
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/lib/python2.7.13/include/python2.7 -c pycrypt.c -o build/temp.linux-armv7l-2.7/pycrypt.o -O3 -march=native
    error: command 'gcc' terminated by signal 6
    
    ----------------------------------------
Command "/home/pi/pogo/RocketMap/venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-U_cb5L/pycrypt/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-njl2Lb-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/pogo/RocketMap/venv/include/site/python2.7/pycrypt" failed with error code 1 in /tmp/pip-build-U_cb5L/pycrypt/

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.