Issues installing ewa from source package

0 views
Skip to first unread message

erm13m...@gmail.com

unread,
Jun 13, 2007, 3:15:16 PM6/13/07
to ewa-discuss
Hello,

Ive installed ewa, with all of the required prerequisites. I have laid
out the necessary directory structure as stated in the documentation.
When I try to check the syntax of my config files with ewabatch -t I
get the following error, the Traceback isn't too helpful.

[root@labs ewa]# ewabatch -t
Traceback (most recent call last):
File "/usr/bin/ewabatch", line 5, in ?
pkg_resources.run_script('ewa==0.62.1', 'ewabatch')
File "/usr/lib/python2.4/site-packages/setuptools-0.6c6-py2.4.egg/
pkg_resources.py", line 448, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.4/site-packages/setuptools-0.6c6-py2.4.egg/
pkg_resources.py", line 1173, in run_script
exec script_code in namespace, namespace
File "/usr/bin/ewabatch", line 8, in ?

File "build/bdist.linux-i686/egg/ewa/clisupport.py", line 261, in
do_audioprovider
File "build/bdist.linux-i686/egg/ewa/rules.py", line 292, in
__init__
File "build/bdist.linux-i686/egg/ewa/rules.py", line 315, in
_load_rule
File "build/bdist.linux-i686/egg/ewa/rules.py", line 277, in
_parse_ewaconf
File "build/bdist.linux-i686/egg/ewa/ruleparser.py", line 518, in
parse_file
File "build/bdist.linux-i686/egg/ewa/ruleparser.py", line 513, in
parse_string
File "build/bdist.linux-i686/egg/ply/yacc.py", line 248, in parse
KeyError: 0

Any help is greatly appreciated.

Jacob Smullyan

unread,
Jun 13, 2007, 3:22:00 PM6/13/07
to ewa-d...@googlegroups.com
It looks to me like the problem is with the rule config file, as the traceback is bombing out in calling yacc  Could you post your rule file? 

You can also try with a rule file that just says:

   default

and see if the error goes away.  If it doesn't, then the error is something else :).

Cheers,

j


Hello,

Ive installed ewa, with all of the required prerequisites. I have laid
out the necessary directory structure as stated in the documentation.
When I try to check the syntax of my config files with ewabatch -t I
get the following error, the Traceback isn't too helpful.

[root@labs ewa]# ewabatch -t
Traceback (most recent call last):
  File "/usr/bin/ewabatch", line 5, in ?
    pkg_resources.run_script('ewa== 0.62.1', 'ewabatch')

erm13m...@gmail.com

unread,
Jun 13, 2007, 3:38:18 PM6/13/07
to ewa-discuss
Ive changed the rules file to just contain the word default.
The problem still persists. All configuration files are owned by the
ewa user.
Are there any other tests I can run to make sure all the prerequisites
are set up correctly?

Cheers.

On Jun 13, 12:22 pm, "Jacob Smullyan" <jsmull...@gmail.com> wrote:
> It looks to me like the problem is with the rule config file, as the
> traceback is bombing out in calling yacc Could you post your rule file?
>
> You can also try with a rule file that just says:
>
> default
>
> and see if the error goes away. If it doesn't, then the error is something
> else :).
>
> Cheers,
>
> j
>

> On 6/13/07, erm13marti...@gmail.com <erm13marti...@gmail.com> wrote:
>
>
>
>
>
> > Hello,
>
> > Ive installed ewa, with all of the required prerequisites. I have laid
> > out the necessary directory structure as stated in the documentation.
> > When I try to check the syntax of my config files with ewabatch -t I
> > get the following error, the Traceback isn't too helpful.
>
> > [root@labs ewa]# ewabatch -t
> > Traceback (most recent call last):
> > File "/usr/bin/ewabatch", line 5, in ?

> > pkg_resources.run_script('ewa==0.62.1', 'ewabatch')


> > File "/usr/lib/python2.4/site-packages/setuptools-0.6c6-py2.4.egg/
> > pkg_resources.py", line 448, in run_script
> > self.require(requires)[0].run_script(script_name, ns)
> > File "/usr/lib/python2.4/site-packages/setuptools-0.6c6-py2.4.egg/
> > pkg_resources.py", line 1173, in run_script
> > exec script_code in namespace, namespace
> > File "/usr/bin/ewabatch", line 8, in ?
>
> > File "build/bdist.linux-i686/egg/ewa/clisupport.py", line 261, in
> > do_audioprovider
> > File "build/bdist.linux-i686/egg/ewa/rules.py", line 292, in
> > __init__
> > File "build/bdist.linux-i686/egg/ewa/rules.py", line 315, in
> > _load_rule
> > File "build/bdist.linux-i686/egg/ewa/rules.py", line 277, in
> > _parse_ewaconf
> > File "build/bdist.linux-i686/egg/ewa/ruleparser.py", line 518, in
> > parse_file
> > File "build/bdist.linux-i686/egg/ewa/ruleparser.py", line 513, in
> > parse_string
> > File "build/bdist.linux-i686/egg/ply/yacc.py", line 248, in parse
> > KeyError: 0
>
> > Any help is greatly appreciated.
>

> --
> Jacob Smullyan
> office: 212/669-3230
> mobile: 917/576-5274

Jacob Smullyan

unread,
Jun 13, 2007, 4:12:49 PM6/13/07
to ewa-d...@googlegroups.com
This turns out to be an incompatibility with ply 2.3.  I'll try to get to the bottom of it, but in the meantime downgrade to ply 2.2 and you should be OK.

j

Reply all
Reply to author
Forward
0 new messages