Hi, can you guys help clear up some confusion on y...
# help
j
Hi, can you guys help clear up some confusion on your clients for python? I'm looking through examples and there seems to be two different schemes for importing the clients in the documentation: 1. in your examples, you import like this:
Copy code
import lakefs_client
from lakefs_client.models import *
from lakefs_client.client import LakeFSClient
2. In your docs you import like this:
Copy code
import io.treeverse.clients.{ApiClient, Exporter}
what is the difference between those?
a
Hi @Joe M, The strange import syntax you're seeing is Scala, not Python. I think we missed starting that in the docs; sorry for that, I've been over those docs several times before and never noticed this bug! You will need to use Spark to run this exporter. This can be with Scala, as in the example, but I think PyPark should also work. You bring it into Spark using --packages or --jars, as on that page. And of course you'd use the import syntax for your language.
j
aha, lol. that explains it. thanks for the info.
a
Thanks for finding the bug!
👍 1
Glad if you could also review https://github.com/treeverse/lakeFS/pull/7772. It's unfortunately fairly opaque syntax... but the PR has this link to surge.sh that shows what the page will look like.
j
Hi, the specific page i was looking at, export.html, now shows the scala frame around it to call out that it's scala code. So, it's now clear what we're looking at. https://treeverse-lakefs-preview-pr-7772.surge.sh/howto/export.html
image.png