omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. 810D

    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 4
    • Best 0
    • Controversial 0
    • Groups 0

    810D

    @810D

    0
    Reputation
    302
    Profile views
    4
    Posts
    0
    Followers
    1
    Following
    Joined Last Online

    810D Unfollow Follow

    Latest posts made by 810D

    • RE: .readline() not working

      Thank you so much, it is working.

      posted in Pythonista
      810D
      810D
    • RE: .readline() not working

      I tried but it still gives me a UnicodeDecodeError on the line with .readlines()

      Edit: Here is the Error:
      Traceback (most recent call last):
      File "/private/var/mobile/Containers/Shared/AppGroup/8D3D7AE1-1CB4-436D-B202-B8EBCDA65D5F/Pythonista3/Documents/mcdonalds.py", line 6, in <module>
      lines = fil.readlines()
      File "/var/containers/Bundle/Application/25DCAAA8-B420-4833-8B49-78EB3B0BD979/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/encodings/ascii.py", line 27, in decode
      return codecs.ascii_decode(input, self.errors)[0]
      UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 3461: ordinal not in range(128)

      posted in Pythonista
      810D
      810D
    • RE: .readline() not working

      I tried both .readline() and .readlines()

      My script isn’t anything fancy

      import csv
      file=open("menu.csv","r").readlines()
      print(file.Readline())

      Neither is working

      posted in Pythonista
      810D
      810D
    • .readline() not working

      I tried opening and reading from a csv file with .readline() but it didn’t work.

      I searched it up on the internet, installed stash but stash couldn’t pip install it either.
      I couldn’t find any solution to install it manually.

      Any help is appreciated.

      posted in Pythonista
      810D
      810D