Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lib2to3 grammar.txt error #77389

Closed
Lukas00500 mannequin opened this issue Apr 2, 2018 · 5 comments
Closed

Lib2to3 grammar.txt error #77389

Lukas00500 mannequin opened this issue Apr 2, 2018 · 5 comments
Labels
topic-IO type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@Lukas00500
Copy link
Mannequin

Lukas00500 mannequin commented Apr 2, 2018

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']

    @Lukas00500
    Copy link
    Mannequin Author

    Lukas00500 mannequin commented Apr 2, 2018

    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:/ $

    @Lukas00500 Lukas00500 mannequin added topic-IO type-crash A hard crash of the interpreter, possibly with a core dump labels Apr 2, 2018
    @benjaminp
    Copy link
    Contributor

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

    @Lukas00500
    Copy link
    Mannequin Author

    Lukas00500 mannequin commented Apr 4, 2018

    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.

    @Lukas00500
    Copy link
    Mannequin Author

    Lukas00500 mannequin commented Apr 4, 2018

    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

    @benjaminp
    Copy link
    Contributor

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

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    topic-IO type-crash A hard crash of the interpreter, possibly with a core dump
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant