RE: [taste-users] DMT-ToolsAndManual-Linux-120222 Execution Requirements?

[ Thread Index | Date Index | More lists.tuxfamily.org/taste-users Archives ]


Hi Thanassis:

 

With Python 2.4.3 I get the following error:

 

python asn2aadlPlus.py

Traceback (most recent call last):

  File "asn2aadlPlus.py", line 11, in ?

    import commonPy.asnParser

  File "/home/reder/src/DMT-ToolsAndManual-Linux-120222/asn2aadlPlus/commonPy/asnParser.py", line 53, in ?

    from asnAST import *

  File "/home/reder/src/DMT-ToolsAndManual-Linux-120222/asn2aadlPlus/commonPy/asnAST.py", line 454

    return str(node._range[-1]) if not isSequenceVariable(node) else "%s.nCount"%srcCVariable

                                 ^

SyntaxError: invalid syntax

 

But with Python 2.6.7 all seems to work fine:

 

python asn2aadlPlus.py

 

Usage: asn2aadlPlus.py [-v] [-debug] [-keep] [-aadlv2] input.asn [input2.asn] [...] outputDataSpec.aadl

 

How to set the ASN1SCC environmental variable?

 

My next step is generating some aadl code.

 

Also I found source for mono and the asn1.exe seems to work ok.

 

Thanks for the help,

 

Len

 

From: Thanassis Tsiodras [mailto:ttsiodras@xxxxxxxxxxx]
Sent: Thursday, February 23, 2012 12:55 AM
To: Reder, Leonard J (3496)
Cc: taste-users@xxxxxxxxxxxxxxxxxxx; Watney, Garth J (3496)
Subject: Re: [taste-users] DMT-ToolsAndManual-Linux-120222 Execution Requirements?

 


We are not using the Python 3.x line - we are using Python 2.6.6 in the VM, but I am pretty sure the tools work with all versions of Python 2.x after 2.5.

Kind regards,
Thanassis.

-- 
------------------------------------------------------------
Thanassis Tsiodras, Dr.-Ing.
Semantix Information Technologies
email: ttsiodras@xxxxxxxxxxx
web  : http://www.semantix.gr
phone: (+30)2106412065
fax  : (+30)2106412068
addr.: K Tsaldari 62, 11476, Athens, GREECE
------------------------------------------------------------



On 23/2/2012 10:39 πμ, Reder, Leonard J (3496) wrote:

Thanks very much for the reply.  We find the VM approach much to heavy weight and do not wish to use it.  It essentially puts another machine between our development application and the tools.

 

I also have Skype and appreciate your offer very much. 

 

But first just tell me what version of Python you are using?  I will send you an error dump if needed but from looks of it I think the problem is likely Python version related.   Are you using 2.5, 2.6, 2.7 or 3.x?

 

Regards,

Len

_____________________________

Leonard J. Reder

Jet Propulsion Laboratory

Flight Software Applications

Phone (Voice): 818-354-3639

---------------------------------------------------

 

 

On 2/23/12 12:25 AM, "Thanassis Tsiodras" <ttsiodras@xxxxxxxxxxx> wrote:

 


Hello Leonard,

A quick way to fix any dependency issues you have is to download the TASTE VM - a virtual machine based on Debian Linux, that can be executed under VMWARE Player or VirtualBox. It contains all the dependencies necessary for all the TASTE tools (not just the DMT). It is available from here:

    http://download.tuxfamily.org/taste/taste-vm.tar.gz

Inside it you will find documentation, all the tools, desktop shortcuts, tutorials, FAQs, etc. The link above is always accessible via http://semantix.gr/assert/downloads.html where you can read some additional information about configuration of the VM (network and proxy settings, etc).

If however, you prefer to create your own build environment - based on CentOS - then we can try to do this, too; but I will need detailed error reports so we can figure out exactly what breaks and why.

1. What (exact) version of CentOS are you using?
2. "The Python does not seem to execute" - can you provide the exact error you are seeing? What tool did you try to run? asn2dataModel? aadl2glueC? What command line arguments did you use?
3. Any version of Mono after 2.8 should work fine - check the CentOS repositories to see if they have a ready-made RPM package. To be honest, I don't have a lot of experience with CentOS - but Googling for "mono centos" I see a number of articles about installing mono, so I am hoping it won't be too much of a problem.

You can also contact me directly over phone (see my signature below) or preferably, Skype (account name: "ttsiodras", voice/instant messages) - I'll be happy to assist you in any way I can.

Kind regards,
Thanassis.

-- 
------------------------------------------------------------
Thanassis Tsiodras, Dr.-Ing.
Semantix Information Technologies
email: ttsiodras@xxxxxxxxxxx
web  : http://www.semantix.gr
phone: (+30)2106412065
fax  : (+30)2106412068
addr.: K Tsaldari 62, 11476, Athens, GREECE
------------------------------------------------------------



On 23/2/2012 1:17 πμ, Reder, Leonard J (3496) wrote:

Hello,

 

I just downloaded your data modeling tools to try out.   The Python does not seem to execute and I suspect I have an earlier version on my machine.   What version of Python do you use to execute these tools and what other Python packages do I need installed?

 

Also I am running CentOS Linux and would like to execute asn1.exe – can you recommend where I can download a mono executable for running asn1.exe on my Linux.

 

Thanks for prompt reply,

 

Len

-----------------------------------------

Leonard J. Reder

Jet Propulsion Laboratory

Flight Software Applications

Email: reder@xxxxxxxxxxxx

Phone: 818-354-3639

-----------------------------------------

 

 

 



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/