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

pypff: IOError for get_number_of_recovered_items() #16

Closed
wang178743010 opened this issue Jan 22, 2016 · 5 comments
Closed

pypff: IOError for get_number_of_recovered_items() #16

wang178743010 opened this issue Jan 22, 2016 · 5 comments
Assignees
Labels

Comments

@wang178743010
Copy link

I compile this file into the python libraries, import, but the import into, after open the PST files. But will not be able to use internal methods of the library. Don't know what's going on.

@joachimmetz
Copy link
Member

You'll have to be more specific:

  • what are the exact commands you're trying to execute
  • what error messages do you see

@joachimmetz joachimmetz self-assigned this Jan 22, 2016
@wang178743010
Copy link
Author

error info:Traceback (most recent call last):
File "/home/wshu/workspace/file_list/pst_filelist.py", line 16, in
number_of_items = pst_file.get_number_of_recovered_items()
IOError: pypff_file_get_number_of_recovered_items: unable to retrieve number of recover items. libcdata_list_get_number_of_elements: invalid list. libpff_file_get_number_of_recovered_items: unable to retrieve number of recovered items.
My Code :
filepst_object = open("/home/wshu/pst/duythanh.pst", mode='rb')
pst_file = pypff.file()
pst_file.open_file_object(filepst_object)
print "pst_file:>",type(pst_file)
nnumber_of_items = pst_file.get_size()
number_of_items = pst_file.get_number_of_recovered_items()
number_of_items = pst_file.number_of_items
pst_item = pst_file.get_item(0)
print number_of_items

@wang178743010
Copy link
Author

nnumber_of_items = pst_file.get_number_of_recovered_items()

IOError: pypff_file_get_number_of_recovered_items: unable to retrieve number of recover items. libcdata_list_get_number_of_elements: invalid list. libpff_file_get_number_of_recovered_items: unable to retrieve number of recovered items.

@joachimmetz
Copy link
Member

I'll have a look when time permits, could be something that needs work.

Know that the Python bindings are still work in progress as indicated in #2

@joachimmetz joachimmetz changed the title Why internal library will not be able to use pypff: IOError for get_number_of_recovered_items() Jan 22, 2016
@joachimmetz
Copy link
Member

will be part of work on Python bindings

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

No branches or pull requests

2 participants