Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when importing in python 3.7 #1

Closed
MicahStevens opened this issue Nov 7, 2018 · 1 comment
Closed

Issue when importing in python 3.7 #1

MicahStevens opened this issue Nov 7, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@MicahStevens
Copy link

MicahStevens commented Nov 7, 2018

thanks for this!
When using in python 3.7, on import I get:

Python 3.7.1 (default, Oct 22 2018, 10:41:28) 
[GCC 8.2.1 20180831] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import zipencrypt
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.7/site-packages/zipencrypt/__init__.py", line 12, in <module>
    from .zipencrypt3 import ZipFile, is_zipfile, ZipInfo
  File "/usr/lib/python3.7/site-packages/zipencrypt/zipencrypt3.py", line 359, in <module>
    class _ZipEncrypter(_ZipDecrypter):
TypeError: function() argument 1 must be code, not str

Fortunately my target system is 3.5, so a non-issue for me currently, but was initially testing on my laptop which is 3.7..

@devthat devthat added the bug Something isn't working label Nov 7, 2018
@devthat devthat closed this as completed in 897f03d Nov 8, 2018
@devthat
Copy link
Owner

devthat commented Nov 9, 2018

Thanks for your feedback:) Should be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants