question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

unexpected keyword argument 'skip_instance_cache'

See original GitHub issue

Version: s3fs==0.4.0

Passing skip_instance_cache to s3fs.S3FileSystem as indicated in the docs does not succeed:

>>> import s3fs
>>> s3fs.S3FileSystem(skip_instance_cache=True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/josephsheedy/venv/py3/lib/python3.8/site-packages/fsspec-0.6.2-py3.8.egg/fsspec/spec.py", line 52, in __call__
    obj = super().__call__(*args, **kwargs)
  File "/Users/josephsheedy/git/s3fs/s3fs/core.py", line 156, in __init__
    self.s3 = self.connect()
  File "/Users/josephsheedy/git/s3fs/s3fs/core.py", line 228, in connect
    self.session = botocore.session.Session(**self.kwargs)
TypeError: __init__() got an unexpected keyword argument 'skip_instance_cache'

Other kwargs ['use_listings_cache', 'listings_expiry_time', 'max_paths'] destined for fsspec are handled in __init__, but not skip_instance_cache.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
martindurantcommented, Mar 12, 2020

Thanks for posting. Note that this is still unreleased.

0reactions
mdwintcommented, Dec 15, 2020

Thanks @martindurant, that’s exactly what I needed! I was confused for a minute because I’ve been searching for this in the past, but then I noticed that the fsspec.config module is new. Great that this was added!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unexpected keyword argument - python - Stack Overflow
The ForeignKey from the Seller to the User has been named seller , not seller `. You thus can construct an object with:...
Read more >
unexpected-keyword-arg / E1123 - Pylint 2.16.0-dev ...
Description: Used when a function call passes a keyword argument that doesn't correspond to one of the function's parameter names. Problematic code:.
Read more >
TypeError: lbs() got an unexpected keyword argument 'dtype' #3
Hello~ Well, Thanks for the project that helps me firstly. But when I followed what the requirement.txt said, and configured my environment
Read more >
scarico() got an unexpected keyword argument 'string'
First, I'm going to recommend you call your parameter something other than "string" (although that is a valid name). I will use "my_string"...
Read more >
Unexpected keyword argument - Anvil Q&A
In my application, the API ENDPOINT notify_burned is notified when a voucher_id is used (“burned”).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found