omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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.


    Can’t use open Or install Pythonista Tools

    Pythonista
    2
    2
    1273
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • shanester
      shanester last edited by

      Hi,
      I was trying to use the online installer for Pythonista Tools but I’m getting an error.

      import requests as r; o=open('ptinstaller.py','w'); o.write(r.get('http://j.mp/pt-i').text); o.close()
      Traceback (most recent call last):
      File "<string>", line 1, in <module>
      PermissionError: [Errno 1] Operation not permitted: 'ptinstaller.py'

      I tried to sort it out and I’m getting the same type of error in all file open actions.

      Any help?

      Shane

      cvp 1 Reply Last reply Reply Quote 0
      • cvp
        cvp @shanester last edited by cvp

        @shanester use wb and content

        import requests as r; 
        o=open('ptinstaller.py','wb')
        o.write(r.get('http://j.mp/pt-i').content)
        o.close()
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB Forums | Contributors