Skip to content

Lib2to3 grammar.txt error #77389

Closed
Closed

Description

@Lukas00500
mannequin
BPO 33208
Nosy @benjaminp, @Lukas00500
Superseder
  • bpo-24960: Can't use lib2to3 with embeddable zip file.
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2018-04-05.04:47:10.895>
    created_at = <Date 2018-04-02.22:20:41.360>
    labels = ['expert-IO', 'type-crash']
    title = 'Lib2to3  grammar.txt error'
    updated_at = <Date 2018-04-05.04:47:10.893>
    user = 'https://github.com/Lukas00500'

    bugs.python.org fields:

    activity = <Date 2018-04-05.04:47:10.893>
    actor = 'benjamin.peterson'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-04-05.04:47:10.895>
    closer = 'benjamin.peterson'
    components = ['IO']
    creation = <Date 2018-04-02.22:20:41.360>
    creator = 'Lukasz00500'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 33208
    keywords = []
    message_count = 5.0
    messages = ['314830', '314942', '314946', '314950', '314967']
    nosy_count = 2.0
    nosy_names = ['benjamin.peterson', 'Lukasz00500']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '24960'
    type = 'crash'
    url = 'https://bugs.python.org/issue33208'
    versions = ['Python 2.7']

    Activity

    1. Lukas00500 commented on Apr 2, 2018

      Lukas00500mannequin
      MannequinAuthor

      Hello I have problem with script
      Im am totaly beginner in python
      I'm using Qpython ( python 2.7 on android)

      So  this  is  my error:
      /data/user/0/org.qpython.qpy/files/bin/qpython-android5.sh "/storage/emulated/0/qpython/scripts/InstaPy-master/quickstart.py" && exit
      ipts/InstaPy-master/quickstart.py" && exit     <
      Traceback (most recent call last):
        File "/storage/emulated/0/qpython/scripts/InstaPy-master/quickstart.py", line 7, in <module>
          from instapy import InstaPy
        File "/storage/emulated/0/qpython/scripts/InstaPy-master/instapy/__init__.py", line 2, in <module>
          from .instapy import InstaPy
        File "/storage/emulated/0/qpython/scripts/InstaPy-master/instapy/instapy.py", line 22, in <module>
          from .clarifai_util import check_image
        File "/storage/emulated/0/qpython/scripts/InstaPy-master/instapy/clarifai_util.py", line 3, in <module>
          from clarifai.rest import ClarifaiApp, Image as ClImage
        File "/storage/emulated/0/qpython/lib/python2.7/site-packages/clarifai/rest/__init__.py", line 3, in <module>
          from .client import ApiClient, ApiError, UserError, TokenError
        File "/storage/emulated/0/qpython/lib/python2.7/site-packages/clarifai/rest/client.py", line 21, in <module>
          from past.builtins import basestring
        File "/data/user/0/org.qpython.qpy/files/lib/python2.7/site-packages/future-0.16.0-py2.7.egg/past/__init__.py", line 88, in <module>
          from past.translation import install_hooks as autotranslate
        File "/data/user/0/org.qpython.qpy/files/lib/python2.7/site-packages/future-0.16.0-py2.7.egg/past/translation/__init__.py", line 42, in <module>
          from lib2to3.refactor import RefactoringTool
        File "/data/user/0/org.qpython.qpy/files/lib/python27.zip/lib2to3/refactor.py", line 27, in <module>
        File "/data/user/0/org.qpython.qpy/files/lib/python27.zip/lib2to3/fixer_util.py", line 9, in <module>
        File "/data/user/0/org.qpython.qpy/files/lib/python27.zip/lib2to3/pygram.py", line 32, in <module>
        File "/data/user/0/org.qpython.qpy/files/lib/python27.zip/lib2to3/pgen2/driver.py", line 121, in load_grammar
        File "/data/user/0/org.qpython.qpy/files/lib/python27.zip/lib2to3/pgen2/pgen.py", line 385, in generate_grammar
        File "/data/user/0/org.qpython.qpy/files/lib/python27.zip/lib2to3/pgen2/pgen.py", line 15, in __init__
      IOError: [Errno 20] Not a directory: '/data/user/0/org.qpython.qpy/files/lib/python27.zip/lib2to3/Grammar.txt'
      1|dream2lte:/ $
    2. benjaminp commented on Apr 4, 2018

      @benjaminp
      Contributor

      Why do you believe this is any different than bpo-24960?

    3. Lukas00500 commented on Apr 4, 2018

      Lukas00500mannequin
      MannequinAuthor

      I think this is the same problem but I want to use the script from the phone (mobile version of python) so I do not know how to solve it.

    4. Lukas00500 commented on Apr 4, 2018

      Lukas00500mannequin
      MannequinAuthor

      In fact I dont know what should I do.

      Can I install any module via pip to solve this problem ?

      On android version of python I dont have access to directory like:

      Lib/lib2to3/pgen2/driver.py

    5. benjaminp commented on Apr 5, 2018

      @benjaminp
      Contributor

      If it's the same problem, we don't need another issue open.

    6. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      topic-IOtype-crashA hard crash of the interpreter, possibly with a core dump

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions