'python setup.py test' failed

1,585 views
Skip to first unread message

cy

unread,
Nov 9, 2010, 4:05:57 AM11/9/10
to Protocol Buffers
As told in protobuf-2.3.0/python/README.TXT, I run '$python setup.py
test'. However failed as bellow:


/usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown
distribution option: 'namespace_packages'
warnings.warn(msg)
/usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown
distribution option: 'test_suite'
warnings.warn(msg)
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help

error: invalid command 'test'


What's the problem?

Kenton Varda

unread,
Nov 9, 2010, 5:52:11 PM11/9/10
to cy, Protocol Buffers
I haven't seen this problem, but my wild guess is that for some reason your environment is using distutils instead of setuptools.  They are similar, but distutils lacks some features, such as the "test" command.  I'm not sure why this would happen, though.


--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To post to this group, send email to prot...@googlegroups.com.
To unsubscribe from this group, send email to protobuf+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.


Chris

unread,
Jul 8, 2015, 11:40:13 AM7/8/15
to prot...@googlegroups.com
Kenton Varda <kenton <at> google.com> writes:

>
>
> I haven't seen this problem, but my wild guess is that for some reason
your environment is using distutils instead of setuptools.  They are
similar, but distutils lacks some features, such as the "test" command.
 I'm not sure why this would happen, though.

> On Tue, Nov 9, 2010 at 1:05 AM, cy <oramah <at> gmail.com> wrote:
>
> As told in protobuf-2.3.0/python/README.TXT, I run '$python setup.py
> test'. However failed as bellow:
> /usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown
> distribution option: 'namespace_packages'
>  warnings.warn(msg)
> /usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown
> distribution option: 'test_suite'
>  warnings.warn(msg)
> usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
>   or: setup.py --help [cmd1 cmd2 ...]
>   or: setup.py --help-commands
>   or: setup.py cmd --help
> error: invalid command 'test'
> What's the problem?
> --
> You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.

> To post to this group, send email to protobuf <at> googlegroups.com.
> To unsubscribe from this group, send email to protobuf+unsubscribe <at>

googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/protobuf?hl=en.
>
>
>
>

Simply installing setuptools per the above solution did indeed work for me.
Thanks!

Reply all
Reply to author
Forward
0 new messages