Using the Camelot package in the python tool.
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
mjbarre2
5 - Atom
‎07-12-2023
08:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello,
I'm having issues using Camelot in the python tool. My Alteryx version is 2022.3.1.486. I'm trying to replicate the output from this site.
When trying to run my program, I get this error: "AttributeError: module 'camelot' has no attribute 'read_pdf'".
My code is (file path removed):
import camelot
tables = camelot.read_pdf("file path")
df=tables[0].df
Alteryx.write(df,1)
I'm thinking the package is outdated and a newer one needs to be installed. Any help is appreciated. Thanks!
Labels:
- Labels:
- Developer Tools
- Python
- Text Mining
2 REPLIES 2
acarter881
12 - Quasar
‎07-12-2023
11:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello, @mjbarre2.
It looks like this stack overflow post solved this issue: https://stackoverflow.com/questions/58376583/attributeerror-module-camelot-has-no-attribute-read-pdf
‎07-13-2023
05:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you but this post states the same way that I used to install camelot in Alteryx. Unfortunately, that doesn't solve my issue.
