Missing functionality

32 views
Skip to first unread message

Giuseppe Traficante

unread,
Mar 23, 2016, 9:53:24 AM3/23/16
to Reahl discuss
Hi guys,
i'm studing reahl and i've founded three missing tutorial:
tutorial.modeltests2
tutorial.modeltests1
tutorial.modeltests3


reahl example tutorial.modeltests3
REAHLWORKSPACE environment variable not set, defaulting to /home/gtraficante
Usage: reahl example [options] <example_name>

reahl: error: Could not find example tutorial.modeltests3


the same happen with 
tutorial.modeltests2
tutorial.modeltests1

I'm wrong something?

Craig Sparks

unread,
Mar 23, 2016, 10:16:19 AM3/23/16
to reahl-...@googlegroups.com, Giuseppe Traficante
Hi Giuseppe,

Are you sure you activated your virtualenv?

What do you get when you run:

reahl listexamples

Craig.
-------
Craig Sparks
082 782 5460

Giuseppe Traficante

unread,
Mar 23, 2016, 10:31:14 AM3/23/16
to Reahl discuss, g.traf...@gmail.com
reahl listexamples

REAHLWORKSPACE environment variable not set, defaulting to /home/gtraficante
features.validation
features.layout
features.access
features.persistence
features.pageflow
features.slidingpanel
features.i18nexample
features.tabbedpanel
tutorial.modeltests2
tutorial.modeltests1
tutorial.modeltests3
tutorial.testbasics
tutorial.access1
tutorial.parameterised1
tutorial.componentconfig
tutorial.pager
tutorial.login2
tutorial.access
tutorial.login1
tutorial.pageflow2
tutorial.slots
tutorial.addressbook2
tutorial.table
tutorial.i18nexample
tutorial.pageflow1
tutorial.addressbook1
tutorial.parameterised2
tutorial.migrationexample
tutorial.access2
tutorial.hellonginx
tutorial.datatable
tutorial.sessionscope
tutorial.helloapache
tutorial.hello
tutorial.ajax

Craig Sparks

unread,
Mar 23, 2016, 11:35:14 AM3/23/16
to reahl-...@googlegroups.com
Hi Giuseppe,

There seems to be a strange dependency issue that i will need to resolve.
However, here is a workaround for now:

please run:

pip install nose

and then try again:

reahl example tutorial.modeltests3


Craig.
--
You received this message because you are subscribed to the Google Groups "Reahl discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reahl-discus...@googlegroups.com.
To post to this group, send email to reahl-...@googlegroups.com.
Visit this group at https://groups.google.com/group/reahl-discuss.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Eugene Van Dam

unread,
Mar 23, 2016, 2:22:39 PM3/23/16
to Reahl discuss
Yes, like you've discovered already, installing nose fixes the problem (it did for me :) )

Craig Sparks

unread,
Mar 24, 2016, 2:28:16 AM3/24/16
to reahl-...@googlegroups.com
Thanks Eugene,

The issue is that these examples depend on nose, and we have unfortunately forgot to include the install requirement in the docs/guide.

Regards,
Craig.
--

Iwan Vosloo

unread,
Mar 24, 2016, 2:49:25 AM3/24/16
to reahl-...@googlegroups.com
Hello all,

On 24/03/2016 08:27, Craig Sparks wrote:
> The issue is that these examples depend on nose, and we have
> unfortunately forgot to include the install requirement in the docs/guide.

I've also had time to look at it now. The example imports nose and
/that/ is what breaks. The way we determine whether an example exists or
not unfortunately also raises an ImportError if the example asked for
does not exist. The code there catches ImportErrors and just takes such
an error to mean that the example itself cannot be imported.

It would be better to be more discerning about the exact import error
thrown: that would make the error more understandable. Or, if we do not
have to try import the example at all at this point.

But Craig is right, the underlying problem is that since reahl-doc
contains these examples, and one of them is dependent on nose, reahl-doc
should have a dependency on nose.

-Iwan

--
Reahl, the Python only web framework: http://www.reahl.org

Iwan Vosloo

unread,
Mar 24, 2016, 2:49:29 AM3/24/16
to reahl-...@googlegroups.com
Hello all,

On 24/03/2016 08:27, Craig Sparks wrote:
> The issue is that these examples depend on nose, and we have
> unfortunately forgot to include the install requirement in the docs/guide.

Reply all
Reply to author
Forward
0 new messages