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

Don't works for me... #1

Open
LORDofDOOM opened this issue Oct 1, 2013 · 6 comments
Open

Don't works for me... #1

LORDofDOOM opened this issue Oct 1, 2013 · 6 comments

Comments

@LORDofDOOM
Copy link

Can't get it work...

Got this error:

lib7zip\winhelpers.py", line 20, in RNOK
assert int(status) == S_OK

I've tried with multiple .dll's -> Is 9.20 win32 dll the correct file ? Or is any development dll needed ?

I've setup a hardcoded path in lib7zip.py because I've 7zip installed on x64 but use a 32bit python.

Hope you can help :-)

Thank you

@harvimt
Copy link
Owner

harvimt commented Oct 1, 2013

I've only tested with python 3.3 64-bit on 64-bit windows 7 with the newest stable version of 7z.dll

I'd need the full stack trace to see where the actual error is occurring, RNOK as you can see raises an exception if if a function does not return the HRESULT S_OK, but it's used in many places in the code.

@harvimt
Copy link
Owner

harvimt commented Oct 1, 2013

I'd also like to emphasize that this software is very very beta.

@LORDofDOOM
Copy link
Author

Thank you for the fast answer :-)

Complete Traceback:

Traceback (most recent call last):
File "C:\7zipTest\start.py", line 11, in
from lib7zip import *
File "C:\7zipTest\lib\lib7zip__init__.py", line 92, in
formats = get_format_info()
File "C:\7zipTest\lib\lib7zip__init__.py", line 78, in get_format_info
RNOK(dll7z.GetNumberOfFormats(num_formats))
File "C:\7zipTest\lib\lib7zip\winhelpers.py", line 20, in RNOK
assert int(status) == S_OK
AssertionError

@harvimt
Copy link
Owner

harvimt commented Oct 1, 2013

Hrm, I'll need more info about your platform (python version, 7z.dll version, windows version). I'll also probably need to add more exact error handling to my code knowing that GetNumberOfFormats returned an error isn't very useful compared with knowing which error code it returned, and then have you try again.

@LORDofDOOM
Copy link
Author

I use Py 3.3 with 7-Zip 9.20 (stable). OS is Win 8.1 RTM x64

@harvimt
Copy link
Owner

harvimt commented Oct 6, 2013

hrm, same except windows 7, newest version should report which error code was given, and includes a small test suite (though it has 90% coverage, so hey).

New version requires the enum34 package and I added in dll autodetection (like it says in the README) so 7z.dll doesn't need to be in the current directory or path (it will find it from the registry)

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