Giter Site home page Giter Site logo

Comments (4)

martindurant avatar martindurant commented on August 11, 2024

(I notice that you have 's3://mariont-test/test.txt' in your traceback but 's3://test/test.txt' in your code; I assume the latter is the real one)

When connecting with boto3.client, you use the same keys? You can do s3.ls() to see what buckets are associated with your user. You should check the access permissions on the bucket and key according to the AWS S3 console.

from s3fs.

katsou55 avatar katsou55 commented on August 11, 2024

'mariont-test/test.txt' is the true path. The other path I was just trying to anonymize the bucket name when I opened this issue

import s3fs
s3 = s3fs.S3FileSystem(key=ACCESS_KEY, secret=SECRET_KEY)
s3.ls()

TypeError Traceback (most recent call last)
in ()
----> 1 s3.ls()

TypeError: ls() takes at least 2 arguments (1 given)

The access and secret keys are correct since I am using them on boto3 on the same notebook and it works. I also tried to open the permissions on the s3 bucket and tried to access it with anoun=True but I end up always with the same error in previous comment.

from s3fs.

martindurant avatar martindurant commented on August 11, 2024

Sorry, should have been ls(''). Also, can you try your ls cals above with refresh=True?

from s3fs.

katsou55 avatar katsou55 commented on August 11, 2024

Hi, sorry for the trouble. The mistake was fully mine! I used specific bucket keys instead of the user keys.
Keep going with the great work! Cheers

from s3fs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.