[Haizea] Haizea in eclipse

Mehdi Sheikhalishahi mehdi.alishahi at gmail.com
Tue May 11 11:18:54 CDT 2010


I did this but haizea is not defined as a package, what is missing?

    from haizea.core.configfile import HaizeaConfig
ImportError: No module named haizea.core.configfile

-- 
Regards,
Mehdi

On Tue, May 11, 2010 at 4:39 PM, Borja Sotomayor <borja at borjanet.com> wrote:

> Hi,
>
> > I'd like to import Haizea src tree into Eclipse and then I'd like to know
> > some information about its specific configuration to make development
> easy
> > in eclipse?
>
> I actually do most of the Haizea development on Eclipse with PyDev
> (http://pydev.org/). You should be able to simply import the trunk
> version of Haizea (or the 1.1 branch) into Eclipse, and add "src" to
> PYTHONPATH (right-click on the project and this will be one of the
> options).
>
> To run Haizea from inside Eclipse, I usually create a short Python
> program that loads a configuration file (the equivalent of running
> "haizea -c ..." from the command line). For example:
>
> from haizea.core.configfile import HaizeaConfig
> from haizea.common.config import ConfigException
> import sys
>
> CONFIGFILE = "..." # Write absolute path to configuration file here
>
> try:
>    CONFIG = HaizeaConfig.from_file(CONFIGFILE)
> except ConfigException, msg:
>    print >> sys.stderr, "Error in configuration file:"
>    print >> sys.stderr, msg
>    exit(1)
> from haizea.core.manager import Manager
> MANAGER = Manager(CONFIG)
> MANAGER.start()
>
>
> Cheers!
> --
> Borja Sotomayor
> PhD Candidate in Computer Science, University of Chicago
> http://people.cs.uchicago.edu/~borja/
> _______________________________________________
> Haizea mailing list
> Haizea at mailman.cs.uchicago.edu
> https://mailman.cs.uchicago.edu/mailman/listinfo/haizea
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.uchicago.edu/pipermail/haizea/attachments/20100511/37ea7cec/attachment.htm 


More information about the Haizea mailing list