omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. arikontiainen

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 4
    • Best 0
    • Controversial 0
    • Groups 0

    arikontiainen

    @arikontiainen

    0
    Reputation
    326
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    arikontiainen Unfollow Follow

    Latest posts made by arikontiainen

    • RE: os.makedirs related problem

      @cvp Ok, that is good to know. Thanks.

      What would be a correct way to create a temp directory, in which I could create folders and store files? I used

      tempfile.gettempdir()
      

      to get a starting point.

      posted in Pythonista
      arikontiainen
      arikontiainen
    • os.makedirs related problem

      I’m stuck with creating a directory with code below with Python 3.6 in Pythonista. I seem to get OSError every single time. Any guesses why?

      try:
          os.makedirs(temp_label_path, mode=0o777, exist_ok=True)
      except OSError as e:
          sys.exit("\nCan't create {dir}: {err}".format(dir=temp_label_path, err=e))
      

      Where temp_label_path in my iPad is:
      /private/var/mobile/Containers/Data/Application/9A1B62CB-9238-4CF8-9A2E-AFE1A2A2457B/tmp/ari_temp/images/supi02

      posted in Pythonista
      arikontiainen
      arikontiainen
    • RE: A Pythonista & boto3 problem

      @cvp boto3 is a library used to work with AWS -- and your hint was spot on!
      Thank you, this just saved my evening ;)

      posted in Pythonista
      arikontiainen
      arikontiainen
    • A Pythonista & boto3 problem

      Probably a boto3 newbie situation, but here we go: I installed StaSH (according to instructions I found) and then pip install boto3.
      However, when I try to run a boto3 example code to create a s3 client (and later fetch list of S3 buckets) I get an error like in the linked screen capture.
      https://www.dropbox.com/s/2rffro0lo1sdq8t/pythonista-boto3-error.jpg?dl=0
      Any advice on how to fix this?

      posted in Pythonista
      arikontiainen
      arikontiainen