Castlia 3.3 + omnetpp 4.6 on windows 10

429 views
Skip to first unread message

rim negra

unread,
Feb 28, 2017, 6:35:45 AM2/28/17
to Castalia Simulator
I have compiled both castalia and omnet and everything waw alright
when running simulation using command line I got these error: 

bash: /c/MyThesis/simulations/omnetpp-4.6/Castalia-3.3/Castalia-3.3/bin/Castalia : /usr/bin/python : mauvais interpréteur: Permission denied


Thanassis Boulis

unread,
Mar 2, 2017, 5:43:13 PM3/2/17
to Castalia Simulator
As you see from the message, the problem is that you cannot use /usr/bin/python
Maybe Python is in a different directory in your distribution, or it is not installed properly. This is what you have to resolve. 

--
You received this message because you are subscribed to the Google Groups "Castalia Simulator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to castalia-simulator+unsub...@googlegroups.com.
To post to this group, send email to castalia-simulator@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/castalia-simulator/dd6bcd85-3c38-46e8-92c7-ee2b47a622ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dilniya a

unread,
May 8, 2017, 6:02:23 PM5/8/17
to Castalia Simulator
exactly i have the same problem, how i can solve it ?


On Friday, March 3, 2017 at 2:13:13 AM UTC+3:30, Athanassios (Thanassis) Boulis wrote:
As you see from the message, the problem is that you cannot use /usr/bin/python
Maybe Python is in a different directory in your distribution, or it is not installed properly. This is what you have to resolve. 
On 28 February 2017 at 22:35, rim negra <rim....@gmail.com> wrote:
I have compiled both castalia and omnet and everything waw alright
when running simulation using command line I got these error: 

bash: /c/MyThesis/simulations/omnetpp-4.6/Castalia-3.3/Castalia-3.3/bin/Castalia : /usr/bin/python : mauvais interpréteur: Permission denied


--
You received this message because you are subscribed to the Google Groups "Castalia Simulator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to castalia-simulator+unsub...@googlegroups.com.
To post to this group, send email to castalia-...@googlegroups.com.

Dilniya a

unread,
May 8, 2017, 6:48:16 PM5/8/17
to Castalia Simulator
hi,
did you solve this problem? 

James Allen

unread,
Dec 21, 2017, 10:12:45 AM12/21/17
to Castalia Simulator
 The problem here is that in this shell, Python doesn't exist (the 'permission denied' error is perhaps a bit misleading). Here's what's happening:

- I assume the window in your screenshot is from running MinGWenv.cmd which comes with omnet++. This is a MinGW shell (see http://www.mingw.org/Welcome_to_MinGW_org) which is an amazing tool, which magically provides a minimal GNU build environment (which means you can run build tools like Make) and a Bourne-like shell interpreter (which allows you to reference paths using linux-style /c/MyThesis/whatever instead of windows-style C:\MyThesis\, use bash syntax etc.) all within Windows.

- This is great for building omnet and Castalia on Windows into an .exe, but *it doesn't provide a full linux environment*. Just build tools.

- When you call Castalia, this is asking the shell to run the file called Castalia in the bin folder. The first line of the file is:

#!/usr/bin/python

This tells the shell that to run this file (which is a Pyhton script), you need to use the program called python which is at location /usr/bin. However, this location does not exist on a Windows machine, hence the error.

What you need to do is download Python 2.7 for Windows (https://www.python.org/downloads/release/python-2714/). Easiest is to use the MSI installer. *Make sure you include the 'add python to PATH' feature*. Then open a normal Windows command prompt (i.e. hit 'start key' and enter 'cmd'), cd to the Castalia bin folder, and run:

python Castalia
Reply all
Reply to author
Forward
0 new messages