omz:forum

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

    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 1
    • Followers 0
    • Topics 1
    • Posts 3
    • Best 0
    • Controversial 0
    • Groups 0

    Plastefuchs84

    @Plastefuchs84

    0
    Reputation
    568
    Profile views
    3
    Posts
    0
    Followers
    1
    Following
    Joined Last Online

    Plastefuchs84 Unfollow Follow

    Latest posts made by Plastefuchs84

    • RE: I can‘t write a json file in Pythonista

      Ahhhh thanks :-))) it works

      posted in Pythonista
      Plastefuchs84
      Plastefuchs84
    • RE: I can‘t write a json file in Pythonista

      I Use pythonista on iPad Air 2019 and iPhone, and can‘t run the code. :–(

      posted in Pythonista
      Plastefuchs84
      Plastefuchs84
    • I can‘t write a json file in Pythonista

      Hello I can’t create json file :(:(:(

      import json
      
      numbers = [2, 3, 5, 7, 11, 13]
      
      filename = 'numbers.json'
      
      with open(filename, 'w') as json_f:
      	json.dump(numbers, json_f)
      

      And the same error line with open....

      import json, codecs
      
      numbers = [2, 3, 5, 7, 11, 13]
      
      filename = 'numbers.json'
      
      with open(filename, 'wb') as f:
          json.dump(numbers, codecs.getwriter('utf-8')(f), ensure_ascii=False)
      

      Error message:

      Traceback (most recent call last):
      File "/private/var/mobile/Library/Mobile Documents/com~apple~CloudDocs/Python examples/number_writer.py", line 7, in <module>
      with open(filename, 'w') as json_f:
      PermissionError: [Errno 1] Operation not permitted: 'numbers.json

      posted in Pythonista
      Plastefuchs84
      Plastefuchs84