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

Lib doesn't seem to work #27

Closed
kramer65 opened this issue Aug 18, 2016 · 3 comments
Closed

Lib doesn't seem to work #27

kramer65 opened this issue Aug 18, 2016 · 3 comments
Assignees
Labels

Comments

@kramer65
Copy link

kramer65 commented Aug 18, 2016

So after successfully compiling and installing the lib onto my Ubuntu 16.04 machine, I now try to use the library with Python. But I'm having a hard time doing that:

>>> import pypff
>>> pff_file = pypff.file()
>>> pff_file.open("backup.pst")
>>> pff_file.get_number_of_items()
Traceback (most recent call last):
  File "<input>", line 1, in <module>
    pff_file.get_number_of_items()
AttributeError: 'pypff.file' object has no attribute 'get_number_of_items'
>>> pff_file.number_of_items
Traceback (most recent call last):
  File "<input>", line 1, in <module>
    pff_file.number_of_items
AttributeError: 'pypff.file' object has no attribute 'number_of_items'
>>> pff_file.get_item(0)
Traceback (most recent call last):
  File "<input>", line 1, in <module>
    pff_file.get_item(0)
AttributeError: 'pypff.file' object has no attribute 'get_item'
>>> pff_file.items
Traceback (most recent call last):
  File "<input>", line 1, in <module>
    pff_file.items
AttributeError: 'pypff.file' object has no attribute 'items'

Any idea what might be wrong here?

Maybe this helps to get some insight:

>>> for i in dir(pff_file): print i
...
__class__
__delattr__
__doc__
__format__
__getattribute__
__hash__
__init__
__new__
__reduce__
__reduce_ex__
__repr__
__setattr__
__sizeof__
__str__
__subclasshook__
ascii_codepage
close
get_ascii_codepage
get_number_of_recovered_items
get_root_folder
get_size
open
open_file_object
recover_items
set_ascii_codepage
signal_abort
size
@joachimmetz
Copy link
Member

joachimmetz commented Aug 18, 2016

This is WIP #2

@joachimmetz joachimmetz self-assigned this Aug 18, 2016
@kramer65
Copy link
Author

That is a pity. The lack of Python support currently renders the lib useless for me (I really appreciate you guys doing this though).

Is there any ETA for the Python bindings?

@joachimmetz
Copy link
Member

I'll have a look to see if I can get another experimental release going, with limited Python binding support.

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