cmd2 >0.9.0 BREAK cliff CLI !

Bug #1774418 reported by Puissant Clement
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
cliff
Triaged
High
Doug Hellmann

Bug Description

Hi !

It's me once more for breaking issue with cmd2 =D

(Remember my last post
https://bugs.launchpad.net/python-cliff/+bug/1762715)

New release of cmd2 0.9.0 (3 days ago) seems to break cliff (again)

See our internal CLI output:

(beapi) help
EXCEPTION of type 'AttributeError' occurred with message: ''Statement' object has no attribute 'parsed''
To enable full traceback, run the following command: 'set debug true'
(beapi) set debug true
EXCEPTION of type 'AttributeError' occurred with message: ''Statement' object has no attribute 'parsed''
To enable full traceback, run the following command: 'set debug true'

Maybe this is related to this :
https://github.com/python-cmd2/cmd2/pull/370/files#diff-4ac32a78649ca5bdd8e0ba38b7006a1eR12

Thanks in advance =)

Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

I think it's time to just rip cmd2 out of cliff.

Changed in python-cliff:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

Can you run the command using the --debug flag and post the traceback please?

Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

I'm not able to reproduce this. Having a more detailed traceback and a reference to your project's code would help.

Changed in python-cliff:
importance: High → Low
status: Triaged → Incomplete
Revision history for this message
Puissant Clement (nagha) wrote :

beapi --debug
(beapi) help
EXCEPTION of type 'AttributeError' occurred with message: ''Statement' object has no attribute 'parsed''
To enable full traceback, run the following command: 'set debug true'
(beapi)

Same output,
This bug is on python3, nothing special about my code, it's unfortunately internal so I can't share it

Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

OK, I think I've reproduced it. Can you try patching your code with https://review.openstack.org/571524 to see if it works?

Changed in python-cliff:
status: Incomplete → Triaged
importance: Low → High
assignee: nobody → Doug Hellmann (doug-hellmann)
Revision history for this message
Augustin Barbe (augustinbarbe) wrote :

Hello Doug,
I tried your patch with cmd2==0.9.1 and it works! Thanks a lot for your commitment

Revision history for this message
Christophe Lecointe (clecoint062112) wrote :

The version 0.9.1 and 0.9.2 is still failing for me.

Exact same error as Clement

Revision history for this message
Ahmed Masud (ahmedmasud) wrote :

Here is the patch for fixing this bug cmd2>=0.9.1

The approach may be a bit crude, please let me know if something needs to be corrected (style wise)

Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

Thanks for that, Ahmed. Can you submit the patch to gerrit, please? There are some links to instructions for getting set up in the CONTRIBUTING.rst file in the base directory of the repo, and one of us can help you get set up if you run into trouble.

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.