Setuptools not passing arguments for entry_points
Posted
by Austin
on Stack Overflow
See other posts from Stack Overflow
or by Austin
Published on 2010-05-17T21:46:54Z
Indexed on
2010/05/17
21:50 UTC
Read the original article
Hit count: 350
I'm using setuptools for a Python script I wrote
After installing, I do:
$ megazord -i input -d database -v xx-xx -w yy-yy
Like I would if I was running it ./like_this
However, I get:
Traceback (most recent call last):
File "/usr/local/bin/megazord", line 9, in <module>
load_entry_point('megazord==1.0.0', 'console_scripts', 'megazord')()
TypeError: main() takes exactly 1 argument (0 given)
Which looks like setuptools is not sending my arguments to main() to be parsed (by optparse)
Here's my setuptools config for entry_points:
entry_points = {
'console_scripts': [
'megazord = megazord.megazord:main',
'megazord-benchmark = megazord.benchmark:main',
'megazord-hash = megazord.mzhash:main',
'megazord-mutate = megazord.mutator:main',
]
}
Any ideas?
© Stack Overflow or respective owner