Skip to content
This repository has been archived by the owner on Feb 13, 2020. It is now read-only.

Is isign unmaintained? Is there a way to get it to work? #127

Open
rfay opened this issue Jul 2, 2019 · 6 comments
Open

Is isign unmaintained? Is there a way to get it to work? #127

rfay opened this issue Jul 2, 2019 · 6 comments

Comments

@rfay
Copy link

rfay commented Jul 2, 2019

Is this project maintained at all? Does pip install isign work on any platform? I've tried it on Ubuntu 18.04, Ubuntu 16.04, Debian 9, Debian 8. (I've also tried to build on macOS). It fails in each case.

Here's ubuntu 18.04:

apt-get update
apt-get install python-pip
pip install isign
root@9064f27a84cb:/# isign
Traceback (most recent call last):
  File "/usr/local/bin/isign", line 4, in <module>
    from isign import isign
  File "/usr/local/lib/python2.7/dist-packages/isign/isign.py", line 1, in <module>
    import archive
  File "/usr/local/lib/python2.7/dist-packages/isign/archive.py", line 8, in <module>
    from bundle import App, Bundle, is_info_plist_native
  File "/usr/local/lib/python2.7/dist-packages/isign/bundle.py", line 20, in <module>
    from signer import openssl_command
  File "/usr/local/lib/python2.7/dist-packages/isign/signer.py", line 14, in <module>
    from OpenSSL import crypto
  File "/usr/local/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import rand, crypto, SSL
  File "/usr/local/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 118, in <module>
    SSL_ST_INIT = _lib.SSL_ST_INIT
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
root@9064f27a84cb:/# isign -v
Traceback (most recent call last):
  File "/usr/local/bin/isign", line 4, in <module>
    from isign import isign
  File "/usr/local/lib/python2.7/dist-packages/isign/isign.py", line 1, in <module>
    import archive
  File "/usr/local/lib/python2.7/dist-packages/isign/archive.py", line 8, in <module>
    from bundle import App, Bundle, is_info_plist_native
  File "/usr/local/lib/python2.7/dist-packages/isign/bundle.py", line 20, in <module>
    from signer import openssl_command
  File "/usr/local/lib/python2.7/dist-packages/isign/signer.py", line 14, in <module>
    from OpenSSL import crypto
  File "/usr/local/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import rand, crypto, SSL
  File "/usr/local/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 118, in <module>
    SSL_ST_INIT = _lib.SSL_ST_INIT
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
@rfay
Copy link
Author

rfay commented Jul 2, 2019

Note that installing with pip3 (Ubuntu 18.04) also results in nonfunctional isign:

$ isign
  File "/usr/local/bin/isign", line 141
    print json.dumps(bundle_info, indent=4, separators=(',', ': '))
             ^
SyntaxError: invalid syntax

Which I assume means that this is not meant for python3... and of course Python 2.7 is EOL is just a few months. 5 months and 29 days...

@ilostycom
Copy link

I got same error imformation. Do you have advice to fix it ?

@ilostycom
Copy link

@rfay This module is run by python2 . You can pip install isign first, and Then del dir site-packages/pyopenssl and site-packages/openssl, last reinstall pyopenssl.

@rfay
Copy link
Author

rfay commented Jul 25, 2019

Hmm, I don't have pyopenssl installed anywhere (did a find of the whole box), pip install pyopenssl gets this:

$ pip install pyopenssl
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    from pip import main
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 22, in <module>
    from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning
  File "/usr/lib/python2.7/dist-packages/pip/_vendor/__init__.py", line 64, in <module>
    vendored("cachecontrol")
  File "/usr/lib/python2.7/dist-packages/pip/_vendor/__init__.py", line 36, in vendored
    __import__(modulename, globals(), locals(), level=0)
  File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/__init__.py", line 9, in <module>
  File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/wrapper.py", line 1, in <module>
  File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py", line 4, in <module>
  File "/usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py", line 84, in <module>
  File "/usr/share/python-wheels/urllib3-1.22-py2.py3-none-any.whl/urllib3/contrib/pyopenssl.py", line 46, in <module>
  File "/home/rfay/.local/lib/python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import rand, crypto, SSL
  File "/home/rfay/.local/lib/python2.7/site-packages/OpenSSL/SSL.py", line 118, in <module>
    SSL_ST_INIT = _lib.SSL_ST_INIT
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

@ilostycom
Copy link

ilostycom commented Jul 28, 2019

Hmm. isign is depend by pyopenssl, but i don't know why it has this problem. You can check your directory "/home/rfay/.local/lib/python2.7/site-packages", try to run

command rm -Rf /home/rfay/.local/lib/python2.7/site-packages/OpenSSL /home/rfay/.local/lib/python2.7/site-packages/pyOpenSSL*
pip2 install pyopenssl

and then check command Isign

@rfay
Copy link
Author

rfay commented Jul 29, 2019

I do seem to be able to install isign successfully for the current user only; I was trying to sudo pip install which puts it in /usr/local/bin... that fails no matter what I try. Thanks for the help.

I guess this must be a poor lost soul and unmaintained if there's no plan to get it to python3. Or is that true of lots of things and they'll just live on with no support for the language?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants