Running $mem gives python error?

6 views
Skip to first unread message

Harry

unread,
Nov 17, 2009, 7:45:22 PM11/17/09
to mem-users
Hey all,

just grabbed the code of Git, looks like a great build sys!
However, after a
$python setup.py build
$sudo python setup.py install

and cd-ing into the examples dir this is what i get:

harry@audioLinux:~/mem/examples/hello-1$ mem
Traceback (most recent call last):
File "/usr/bin/mem", line 6, in <module>
main()
File "/usr/lib/python2.5/site-packages/mem/__init__.py", line 110,
in main
do_build(root, mfr_mod.build)
File "/usr/lib/python2.5/site-packages/mem/__init__.py", line 98, in
do_build
build_callable()
File "/home/harry/mem/examples/hello-1/MemfileRoot", line 5, in
build
hello_o = mem.tasks.gcc.obj("hello.c")
AttributeError: 'module' object has no attribute 'gcc'
harry@audioLinux:~/mem/examples/hello-1$ ImportError: No module named
nose.toolsbash: ImportError:: command not found

Anybody know what this is, experience this error before or have a tip?
Cheers, -Harry van Haaren

Eric Merritt

unread,
Nov 17, 2009, 7:55:48 PM11/17/09
to mem-...@googlegroups.com
It looks like you don't have the nose module installed. I didn't
realize that was a mem dependency.
> --
>
> You received this message because you are subscribed to the Google Groups
> "mem-users" group.
> To post to this group, send email to mem-...@googlegroups.com.
> To unsubscribe from this group, send email to
> mem-users+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/mem-users?hl=.
>
>
>

--
Sent from my mobile device

SirVer

unread,
Nov 18, 2009, 4:00:15 AM11/18/09
to mem-users
It is only a dependency for running the testsuite. What you want to do
should work prettily without nose. Could you provide the complete
Memfile and also
the contents of the mem script: $ cat `which mem`.

Thanks,
Holger


On 18 Nov., 01:55, Eric Merritt <cyberl...@gmail.com> wrote:
> It looks like you don't have the nose module installed. I didn't
> realize that was a mem dependency.
>

SirVer

unread,
Nov 18, 2009, 4:26:50 AM11/18/09
to mem-users
I guess, you haven't imported the tasks module. Try adding

import mem.tasks.gcc

somewhere above the build function.
Reply all
Reply to author
Forward
0 new messages