Giter Site home page Giter Site logo

sign failed with return value -1 about py-wsse HOT 3 OPEN

orcasgit avatar orcasgit commented on September 16, 2024
sign failed with return value -1

from py-wsse.

Comments (3)

brad avatar brad commented on September 16, 2024

@kmiloaguilar Can you please share on which version of Python this occured? Also, the output of pip freeze. I just reran the Travis tests and was unable to reproduce the issue there or locally in a Python 3.4 virtualenv.

from py-wsse.

kmiloaguilar avatar kmiloaguilar commented on September 16, 2024

Python version = 2.7.13
OS: macOS 10.12.2

Pip freeze? is the same one in here since I created a virtualenv just for this.

from py-wsse.

0xbepresent avatar 0xbepresent commented on September 16, 2024

It's the same for me.

Python version = 2.7.10
OS: macOS = 10.12.3

platform darwin -- Python 2.7.10 -- py-1.4.30 -- pytest-2.7.2
rootdir: /Users/misa/development/webpaysoap/env/lib/python2.7/site-packages/wsse/py-wsse, inifile:
collected 1 items

test/test_signing.py F

================================================================================================= FAILURES =================================================================================================
___________________________________________________________________________________________ test_sign_and_verify ___________________________________________________________________________________________
test/test_signing.py:20: in test_sign_and_verify
    signed = signing.sign(envelope, key_path, cert_path)
wsse/signing.py:139: in sign
    ctx.sign(signature)
src/xmlsec/ds.pyx:79: in xmlsec.ds.SignatureContext.sign (src/xmlsec/ds.c:1966)
    ???
E   Error: (u'sign failed with return value', -1)


But I tested also with a linux platform and the test passed, so the problem maybe is in a library which is different in mac OS.

(.venv) asim@ubuntu:~/py-wsse$ python runtests.py
=========================================================================================== test session starts ============================================================================================
platform linux2 -- Python 2.7.12, pytest-3.0.6, py-1.4.32, pluggy-0.4.0
rootdir: /home/asim/py-wsse, inifile:
collected 1 items

test/test_signing.py .

========================================================================================= 1 passed in 0.34 seconds =========================================================================================

from py-wsse.

Related Issues (16)

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.