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

AttributeError: module 'slate' has no attribute 'PDF' #42

Open
Wesalius opened this issue May 16, 2018 · 1 comment
Open

AttributeError: module 'slate' has no attribute 'PDF' #42

Wesalius opened this issue May 16, 2018 · 1 comment

Comments

@Wesalius
Copy link

Wesalius commented May 16, 2018

filename = "file.pdf"
import slate
with open('file.pdf') as f:
    doc = slate.PDF(f)
    print(doc)

gives

Traceback (most recent call last):
  File "C:\Users\.....\Desktop\interna\slate\slate.py", line 2, in <module>
    import slate
  File "C:\Users\.....\Desktop\interna\slate\slate.py", line 4, in <module>
    doc = slate.PDF(f)
AttributeError: module 'slate' has no attribute 'PDF'

running Python 3.6.4, installed the latest slate downloaded from github today

@jangdan
Copy link

jangdan commented May 18, 2018

A possible solution for many problems; this worked for me a few months ago, with Python 3.6.4: #32 (comment)

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