Karrigell 3.1.1 doesn't work on Ubuntu 14.04

39 views
Skip to first unread message

man...@gmail.com

unread,
Aug 13, 2014, 3:50:17 AM8/13/14
to karr...@googlegroups.com
Dear all,

I'm trying to run this simple HTML code:

<html>
<body>

<FORM ACTION="/test/test.py">
<INPUT TYPE="submit" VALUE="Run calculations">
</FORM>

</body>
</html>

When I submit data from the form to Karrigell by clicking "Run calculations" button the following error comes:


Error in /MxEnt_src/init_MxEnt.py
Line 333
[in file /home/alex/Karrigell-3.1.1/karrigell/core/HTTP.py ] target.run(self.ns)
AttributeError: 'module' object has no attribute 'action'
Traceback (most recent call last):
  File "/home/alex/Karrigell-3.1.1/karrigell/core/HTTP.py", line 333, in process_request
    target.run(self.ns)
  File "/home/alex/Karrigell-3.1.1/karrigell/core/k_target.py", line 387, in run
    namespace.update(self.function_namespace())
  File "/home/alex/Karrigell-3.1.1/karrigell/core/k_target.py", line 378, in function_namespace
    namespace[name] = module.action(self)
AttributeError: 'module' object has no attribute 'action'

I use Ubuntu 14.04, Karrigell 3.1.1 and python 2.7.6.
Code works fine on Mac OSX 10.8.5.

Does anybody knows how could this be fixed?

Best wishes,
Alex

Nicolas Pinault

unread,
Aug 17, 2014, 4:25:38 PM8/17/14
to karr...@googlegroups.com
Error in /MxEnt_src/init_MxEnt.py
Line 333    
[in file /home/alex/Karrigell-3.1.1/karrigell/core/HTTP.py ] target.run(self.ns)
AttributeError: 'module' object has no attribute 'action'
Traceback (most recent call last):
  File "/home/alex/Karrigell-3.1.1/karrigell/core/HTTP.py", line 333, in process_request
    target.run(self.ns)
  File "/home/alex/Karrigell-3.1.1/karrigell/core/k_target.py", line 387, in run
    namespace.update(self.function_namespace())
  File "/home/alex/Karrigell-3.1.1/karrigell/core/k_target.py", line 378, in function_namespace
    namespace[name] = module.action(self)
AttributeError: 'module' object has no attribute 'action'

I use Ubuntu 14.04, Karrigell 3.1.1 and python 2.7.6.
Code works fine on Mac OSX 10.8.5.

Does anybody knows how could this be fixed?
Hi Alex,

Can you provide a small test case (with all the needed files) reproducing the problem ?

Regards,
Nicolas


Best wishes,
Alex --
You received this message because you are subscribed to the Google Groups "karrigell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to karrigell+...@googlegroups.com.
To post to this group, send email to karr...@googlegroups.com.
Visit this group at http://groups.google.com/group/karrigell.
For more options, visit https://groups.google.com/d/optout.

Jerome.D...@ksz-bcss.fgov.be

unread,
Aug 18, 2014, 2:50:01 AM8/18/14
to karr...@googlegroups.com
Hi,


First, i should ask some parameters for the POST html action
==>
<FORM ENCTYPE="multipart/form-data" ACTION="/test/test.py"  METHOD=POST>

<INPUT TYPE="submit" VALUE="Run calculations">
</FORM>

2ndly: check where is your 'test.py' program ? the path "/test/test.py"  refers to karrigel_homepath/test folder
if you mean refers to current program position, try "./test/test.py"


Regards, Cordialement,
  Jérôme



man...@gmail.com
Sent by: karr...@googlegroups.com

16/08/2014 13:12

Please respond to
karr...@googlegroups.com

To
karr...@googlegroups.com,
cc
Subject
[karrigell] Karrigell 3.1.1 doesn't work on Ubuntu 14.04


--

You received this message because you are subscribed to the Google Groups "karrigell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to

karrigell+...@googlegroups.com.


To post to this group, send email to

karr...@googlegroups.com.
Visit this group at
http://groups.google.com/group/karrigell.
For more options, visit
https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages