App crashes when running with point of entry

Bug #1274161 reported by Tomas Hayes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pythoscope
Incomplete
Undecided
Michal Kwiatkowski

Bug Description

INFO: Inspecting module iparser.py.
INFO: Inspecting point of entry base_parsing.py.
INFO: Generating tests for module iparser.py.
INFO: Adding generated test_parse_string_returns_program_instance_for_phases_ph1__0_45_90_ph2__180_360_program_d1_loop_16_times_d7_p3ph1_endloop_loop_2_times_phase_shift_d7_p3ph1_endloop_p1ph2_acquire to TestParseString in tests/test_iparser.py.
INFO: Test case TestParseFromFile.test_parse_from_file already exists in tests/test_iparser.py, skipping.
INFO: Test case TestStatement.test___indent__ already exists in tests/test_iparser.py, skipping.
INFO: Test case TestStatement.test___repr__ already exists in tests/test_iparser.py, skipping.
INFO: Test case TestStatement.test___str__ already exists in tests/test_iparser.py, skipping.
INFO: Test case TestPhaseDecl.test___pp__ already exists in tests/test_iparser.py, skipping.
INFO: Adding generated test_creation_with_number_equal_1_and_ph_list_equal_list to TestPhaseDecl in tests/test_iparser.py.
INFO: Adding generated test_creation_with_number_equal_2_and_ph_list_equal_list to TestPhaseDecl in tests/test_iparser.py.
ERROR: Oops, it seems that an internal Pythoscope error occurred. Please file a bug report at https://bugs.launchpad.net/pythoscope

Traceback (most recent call last):
  File "/home/tomyo/.virtualenvs/tesis/bin/pythoscope", line 9, in <module>
    load_entry_point('pythoscope==0.4.3', 'console_scripts', 'pythoscope')()
  File "/home/tomyo/.virtualenvs/tesis/local/lib/python2.7/site-packages/pythoscope-0.4.3-py2.7.egg/pythoscope/__init__.py", line 190, in main
    generate_tests(args, force, template)
  File "/home/tomyo/.virtualenvs/tesis/local/lib/python2.7/site-packages/pythoscope-0.4.3-py2.7.egg/pythoscope/__init__.py", line 119, in generate_tests
    add_tests_to_project(project, modules, template, force)
  File "/home/tomyo/.virtualenvs/tesis/local/lib/python2.7/site-packages/pythoscope-0.4.3-py2.7.egg/pythoscope/generator/__init__.py", line 985, in add_tests_to_project
    generator.add_tests_to_project(project, modnames, force)
  File "/home/tomyo/.virtualenvs/tesis/local/lib/python2.7/site-packages/pythoscope-0.4.3-py2.7.egg/pythoscope/generator/__init__.py", line 705, in add_tests_to_project
    self._add_tests_for_module(module, project, force)
  File "/home/tomyo/.virtualenvs/tesis/local/lib/python2.7/site-packages/pythoscope-0.4.3-py2.7.egg/pythoscope/generator/__init__.py", line 720, in _add_tests_for_module
    for test_case in self._generate_test_cases(module):
  File "/home/tomyo/.virtualenvs/tesis/local/lib/python2.7/site-packages/pythoscope-0.4.3-py2.7.egg/pythoscope/generator/__init__.py", line 725, in _generate_test_cases
    test_case = self._generate_test_case(object, module)
  File "/home/tomyo/.virtualenvs/tesis/local/lib/python2.7/site-packages/pythoscope-0.4.3-py2.7.egg/pythoscope/generator/__init__.py", line 736, in _generate_test_case
    return self._generate_test_class(class_name, method_descriptions, module, body)
  File "/home/tomyo/.virtualenvs/tesis/local/lib/python2.7/site-packages/pythoscope-0.4.3-py2.7.egg/pythoscope/generator/__init__.py", line 754, in _generate_test_class
    code = parse_fragment(body)
  File "/home/tomyo/.virtualenvs/tesis/local/lib/python2.7/site-packages/pythoscope-0.4.3-py2.7.egg/pythoscope/astbuilder.py", line 99, in parse_fragment
    parsed_code = parse(code)
  File "/home/tomyo/.virtualenvs/tesis/local/lib/python2.7/site-packages/pythoscope-0.4.3-py2.7.egg/pythoscope/astbuilder.py", line 82, in parse
    result = drv.parse_string(code, True)
  File "/home/tomyo/.virtualenvs/tesis/local/lib/python2.7/site-packages/pythoscope-0.4.3-py2.7.egg/lib2to3/pgen2/driver.py", line 104, in parse_string
    return self.parse_tokens(tokens, debug)
  File "/home/tomyo/.virtualenvs/tesis/local/lib/python2.7/site-packages/pythoscope-0.4.3-py2.7.egg/lib2to3/pgen2/driver.py", line 69, in parse_tokens
    if p.addtoken(type, value, (prefix, start)):
  File "/home/tomyo/.virtualenvs/tesis/local/lib/python2.7/site-packages/pythoscope-0.4.3-py2.7.egg/lib2to3/pgen2/parse.py", line 177, in addtoken
    raise ParseError("bad input", type, value, context)
lib2to3.pgen2.parse.ParseError: bad input: type=22, value='=', context=(' ', (8, 12))

Tags: parse
Revision history for this message
Tomas Hayes (tomyo) wrote :
Revision history for this message
Michal Kwiatkowski (ruby) wrote :

Thank you Tomas for reporting this.

Which version of pythoscope are you using?

I could not reproduce this error on pythoscope from github: https://github.com/mkwiatkowski/pythoscope

Changed in pythoscope:
assignee: nobody → Michal Kwiatkowski (ruby)
status: New → Incomplete
Revision history for this message
Tomas Hayes (tomyo) wrote : Re: [Bug 1274161] Re: App crashes when running with point of entry

Hi Michal,
In the bug report I see the version number from the git repo.

Bye!
On Mar 24, 2014 3:10 PM, "Michal Kwiatkowski" <email address hidden> wrote:

> Thank you Tomas for reporting this.
>
> Which version of pythoscope are you using?
>
> I could not reproduce this error on pythoscope from github:
> https://github.com/mkwiatkowski/pythoscope
>
> ** Changed in: pythoscope
> Assignee: (unassigned) => Michal Kwiatkowski (ruby)
>
> ** Changed in: pythoscope
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1274161
>
> Title:
> App crashes when running with point of entry
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/pythoscope/+bug/1274161/+subscriptions
>

Revision history for this message
Michal Kwiatkowski (ruby) wrote :

It doesn't seem to be the case.

In the bug report there is indeed version pythoscope==0.4.3 used, while on github the version is defined as 0.5dev: https://github.com/mkwiatkowski/pythoscope/blob/master/pythoscope/cmdline.py#L16

Please try updating to the version from github.

Revision history for this message
Tomas Hayes (tomyo) wrote :

Ok, I'll let you know when I use it again. Thanks.
On Mar 24, 2014 3:41 PM, "Michal Kwiatkowski" <email address hidden> wrote:

> It doesn't seem to be the case.
>
> In the bug report there is indeed version pythoscope==0.4.3 used, while
> on github the version is defined as 0.5dev:
>
> https://github.com/mkwiatkowski/pythoscope/blob/master/pythoscope/cmdline.py#L16
>
> Please try updating to the version from github.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1274161
>
> Title:
> App crashes when running with point of entry
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/pythoscope/+bug/1274161/+subscriptions
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.