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

I need help about [compress_multiple]! #33

Open
wolfly22 opened this issue Aug 6, 2020 · 3 comments
Open

I need help about [compress_multiple]! #33

wolfly22 opened this issue Aug 6, 2020 · 3 comments

Comments

@wolfly22
Copy link

wolfly22 commented Aug 6, 2020

pyminizip.compress_multiple([u'a.txt', 'b.txt'], ['E:', 'E:'], "file.zip", "1233", 4)
but,I get this:
pyminizip.compress_multiple(["a.txt","b.txt"],[r"E:\",r"E:\"],"abc.zip",password,6)
OSError: error in opening a.txt for reading

I don't know what's the point![2. src file LIST prefix path (list) or ]
Thank you very much!

@wolfly22
Copy link
Author

Error description:
DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats
pyminizip.compress_multiple([u'a.txt','b.txt'],[u'E:/',u'E:/'],"12.zip",password,4)
OSError: error in opening a.txt for reading

@wolfly22
Copy link
Author

I can't understand "PY_SSIZE_T_CLEAN "!
somebody help me!Thank you!

@supermitch
Copy link

@wolfly22 the deprecation warning is unrelated. Ignore that. I get that even when the zip works fine. Your issue is that a.txt is not found. Try using the full path to the file, not just the file name.

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

No branches or pull requests

2 participants