[openstack-dev] [Quantum] No module named pyparsing

Akihiro MOTOKI motoki at da.jp.nec.com
Wed Aug 15 04:27:36 UTC 2012


Hi,

/FYI/

It is a bug on Ubuntu python-cmd2 package (originally Debian wheezy bug).
It does not declare dependency on (python-)pyparsing. 
pypi cmd2 package has no problem, and if you install cmd2 via pip
pyparsing is installed automatically.

In quantum (and quantumclient) it is already resolved by adding
pyparsing to its pip-requires. It is ok.
I preferred to resolve it in devstack or ubuntu package
rather than in indidual project's pip-require.

* Dan filed a bug for it and already fixed it in Quantum.
  https://bugs.launchpad.net/quantum/+bug/1035953

* I reported it to Ubuntu launchpad.
  https://bugs.launchpad.net/ubuntu/+source/cmd2/+bug/1036295

Thanks,
-- 
Akihiro MOTOKI <motoki at da.jp.nec.com>
Cloud System Research Laboratories, NEC Corporation

>>>>> Date: Tue, 14 Aug 2012 15:57:39 -0700
>>>>> From: Aaron Rosen <arosen at nicira.com>
>>>>> Subject: Re: [openstack-dev] [Quantum] No module named pyparsing
> 
> Edgar, 
> 
> https://bugs.launchpad.net/quantum/+bug/1036896
> 
> I'll upload a patch in a sec. 
> 
> Thanks, 
> 
> Aaron
> 
> On Tue, Aug 14, 2012 at 3:32 PM, Edgar Magana (eperdomo) <eperdomo at cisco.com> wrote:
> 
>     Dan,
>    
>      
>    
>     Yes, that the point that I want to raise here, why this dependency is not being installed.
>    
>     Should we file a bug?
>    
>      
>    
>     Edgar
>    
>      
>    
>     From: Dan Wendlandt [mailto:dan at nicira.com]
>     Sent: Tuesday, August 14, 2012 3:27 PM
> 
>     To: OpenStack Development Mailing List
>     Subject: Re: [openstack-dev] [Quantum] No module named pyparsing
>    
>      
>    
>     sudo pip install pyparsing 
>    
>      
>    
>     or 
>    
>      
>    
>     apt-get install python-pyparsing 
>    
>      
>    
>     should work, if some some reason the pip-requires dependencies are not being installed
>     properly.
>    
>      
>    
>     dan
>    
>     On Tue, Aug 14, 2012 at 1:58 PM, Edgar Magana (eperdomo) <eperdomo at cisco.com> wrote:
>    
>     Aaron,
>    
>      
>    
>     It seems that something else is required because I ran “sudo python setup.py develop”
>    
>     And this module was not installed.
>    
>      
>    
>     Thanks,
>    
>      
>    
>     Edgar
>    
>      
>    
>     From: Aaron Rosen [mailto:arosen at nicira.com]
>     Sent: Tuesday, August 14, 2012 1:42 PM
>     To: OpenStack Development Mailing List
>     Subject: Re: [openstack-dev] [Quantum] No module named pyparsing
>    
>      
>    
>     Yes, there is already a fix merge for that: https://review.openstack.org/#/c/11251/ 
>    
>      
>    
>     Aaron
>    
>     On Tue, Aug 14, 2012 at 1:38 PM, Edgar Magana (eperdomo) <eperdomo at cisco.com> wrote:
>    
>     Hi Folks,
>    
>      
>    
>     I am seeing recently that quantum client complains for the pyparsing module:
>    
>      
>    
>     # quantum
>    
>     Traceback (most recent call last):
>    
>       File "/usr/local/bin/quantum", line 9, in <module>
>    
>         load_entry_point('python-quantumclient==2.0.5', 'console_scripts', 'quantum')()
>    
>       File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 337, in load_entry_point
>    
>         return get_distribution(dist).load_entry_point(group, name)
>    
>       File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2279, in load_entry_point
>    
>         return ep.load()
>    
>       File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1989, in load
>    
>         entry = __import__(self.module_name, globals(),globals(), ['__name__'])
>    
>       File "/opt/stack/python-quantumclient/quantumclient/shell.py", line 28, in <module>
>    
>         from cliff.app import App
>    
>       File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 11, in <module>
>    
>         from .interactive import InteractiveApp
>    
>       File "/usr/local/lib/python2.7/dist-packages/cliff/interactive.py", line 9, in <module>
>    
>         import cmd2
>    
>       File "/usr/lib/python2.7/dist-packages/cmd2.py", line 43, in <module>
>    
>         import pyparsing
>    
>     ImportError: No module named pyparsing
>    
>      
>    
>     Are you aware of this? Is this a bug or a missing configuration from my side?
>    
>      
>    
>     Thanks,
>    
>      
>    
>     Edgar
> 
>     _______________________________________________
>     OpenStack-dev mailing list
>     OpenStack-dev at lists.openstack.org
>     http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>    
>      
> 
>     _______________________________________________
>     OpenStack-dev mailing list
>     OpenStack-dev at lists.openstack.org
>     http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> 
>      
>    
>     --
>     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     Dan Wendlandt 
>    
>     Nicira, Inc: www.nicira.com
>    
>     twitter: danwendlandt
>     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    
>      
> 
>     _______________________________________________
>     OpenStack-dev mailing list
>     OpenStack-dev at lists.openstack.org
>     http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> 
> 



More information about the OpenStack-dev mailing list