It is currently Tue Jul 23, 2019 4:20 pm


All times are UTC




Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Failed to start Qemuwrapper
PostPosted: Thu Apr 21, 2011 2:31 am 
Offline

Joined: Thu Mar 24, 2011 4:31 pm
Posts: 6
Tried the suggestion but now get this error -

bash-3.2# python /Applications/GNS3.app/Contents/Resources/qemuwrapper.py
/Applications/GNS3.app/Contents/Resources/qemuwrapper.py:943: SyntaxWarning: name 'IP' is assigned to before global declaration
global IP
Traceback (most recent call last):
File "/Applications/GNS3.app/Contents/Resources/qemuwrapper.py", line 47, in <module>
import pemubin
File "/Applications/GNS3.app/Contents/Resources/pemubin.py", line 1
<?xml version="1.0" encoding="UTF-8"?>
^
SyntaxError: invalid syntax
bash-3.2# sudo python /Applications/GNS3.app/Contents/Resources/qemuwrapper.py
/Applications/GNS3.app/Contents/Resources/qemuwrapper.py:943: SyntaxWarning: name 'IP' is assigned to before global declaration
global IP
Traceback (most recent call last):
File "/Applications/GNS3.app/Contents/Resources/qemuwrapper.py", line 47, in <module>
import pemubin
File "/Applications/GNS3.app/Contents/Resources/pemubin.py", line 1
<?xml version="1.0" encoding="UTF-8"?>
^
SyntaxError: invalid syntax
bash-3.2#

Suggestions ?




Top
 Profile  
 
 Post subject: Re: Failed to start Qemuwrapper
PostPosted: Thu May 19, 2011 4:02 pm 
Im having the same issue as the guy who posted above.

Code:

setrip-mac:Resources setrip$ sudo python /Applications/GNS3.app/Contents/Resources/qemuwrapper.py

Traceback (most recent call last):
  File "/Applications/GNS3.app/Contents/Resources/qemuwrapper.py", line 47, in <module>
    import pemubin
  File "/Applications/GNS3.app/Contents/Resources/pemubin.py", line 1
    <?xml version="1.0" encoding="UTF-8"?>
    ^
SyntaxError: invalid syntax



The link to download pemubin.py is no longer working so and I grabbed it from Googles cache. I dont think the file is correct though. I would assume that a .py file would have python script in it and not XML.

Can someone please post a link to the original pemubin.py file?

Thanks


Top
  
 
 Post subject: Re: Failed to start Qemuwrapper
PostPosted: Fri Aug 12, 2011 6:07 am 
Offline

Joined: Fri Aug 12, 2011 5:06 am
Posts: 2
setrip wrote:
The link to download pemubin.py is no longer working so and I grabbed it from Googles cache. I dont think the file is correct though. I would assume that a .py file would have python script in it and not XML.

Can someone please post a link to the original pemubin.py file?

Thanks

This file worked for me (click 'Save link as', you may have to add a site certificate exception):
https://orwell.fiit.stuba.sk/redmine/projects/vlab-dynagen/repository/revisions/a31c80dbfc5e01ea85230699d9bca1b73d0a8272/entry/pemubin.py

Now the problem is, after you paste it into the resources folder, like wdennis said above, you still need to run the qemuwrapper.py in Terminal:
Code:
python /Applications/GNS3.app/Contents/Resources/qemuwrapper.py

If you don't do that you'll get an error when you hit the Test button. I simply created a 'Run AppleScript' with Automator with the code:
Code:
on run argv
   tell application "Terminal"
      do script with command "python /Applications/GNS3.app/Contents/Resources/qemuwrapper.py"
   end tell
end run


Top
 Profile  
 
 Post subject: Re: Failed to start Qemuwrapper
PostPosted: Wed Oct 26, 2011 8:31 pm 
hello,

for some reason sys.path is not set in qemuwrapper.py when started from the GNS3 GUI.
adding the following to the beginning fixes that, not elegant but enough for me,
no more need to start it from the terminal window!

import sys
sys.path.append ('/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip')
sys.path.append ('/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6')
sys.path.append ('/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin')
sys.path.append ('/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac')
sys.path.append ('/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages')
sys.path.append ('/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python')
sys.path.append ('/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk')
sys.path.append ('/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old')
sys.path.append ('/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload')
sys.path.append ('/Library/Python/2.6/site-packages')
sys.path.append ('/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC')
sys.path.append ('/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode')


Top
  
 
 Post subject: Re: Failed to start Qemuwrapper
PostPosted: Fri Apr 27, 2012 11:09 am 
Offline

Joined: Thu Apr 26, 2012 6:13 pm
Posts: 2
Hi,
By my side I have still now this problem. I tried to troubleshoot but nothing still. I'm using Mac OS X 10.6.8 and my GNS3 version his 0.7.4.

when I tried to start qemuwrapper.py via terminal I have this output :
Quote:
MacBook-Pro-de-Styve-Uhuka:~ StyveUhuka$ sudo python /Applications/GNS3.app/Contents/Resources/qemuwrapper.py
Password:
Qemu Emulator Wrapper (version 0.7.4)
Copyright (c) 2007-2010 Thomas Pani & Jeremy Grossmann

Traceback (most recent call last):
File "/Applications/GNS3.app/Contents/Resources/qemuwrapper.py", line 967, in <module>
main()
File "/Applications/GNS3.app/Contents/Resources/qemuwrapper.py", line 941, in main
server = QemuWrapperServer((host, port), QemuWrapperRequestHandler)
File "/Applications/GNS3.app/Contents/Resources/qemuwrapper.py", line 878, in __init__
RequestHandlerClass)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/SocketServer.py", line 400, in __init__
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/SocketServer.py", line 411, in server_bind
File "<string>", line 1, in bind
socket.error: [Errno 48] Address already in use


Attachments:
qemu.tiff
qemu.tiff [ 158.28 KiB | Viewed 4392 times ]
Top
 Profile  
 
 Post subject: Re: Failed to start Qemuwrapper
PostPosted: Sat May 05, 2012 3:46 am 
Offline

Joined: Sat May 05, 2012 3:35 am
Posts: 13
Did anyone figure out how to solve this error ?

Quote:
ash-3.2# python /Applications/GNS3.app/Contents/Resources/qemuwrapper.py
/Applications/GNS3.app/Contents/Resources/qemuwrapper.py:943: SyntaxWarning: name 'IP' is assigned to before global declaration
global IP
Traceback (most recent call last):
File "/Applications/GNS3.app/Contents/Resources/qemuwrapper.py", line 47, in <module>
import pemubin
File "/Applications/GNS3.app/Contents/Resources/pemubin.py", line 1
<?xml version="1.0" encoding="UTF-8"?>
^
SyntaxError: invalid syntax


Top
 Profile  
 
 Post subject: Re: Failed to start Qemuwrapper
PostPosted: Fri Jun 29, 2012 1:39 am 
Offline

Joined: Fri Jun 29, 2012 1:32 am
Posts: 1
bk1234 wrote:
Did anyone figure out how to solve this error ?


It looks like the file hasn't downloaded properly.

On the page:

http://code.gns3.net/gns3-devel/file/60 ... pemubin.py

Click on the raw tab to download the file. In my case that goes to my downloads folder. Copy that to the GNS3 resource folder:

Code:
cp Downloads/pemubin.py /Applications/GNS3.app/Contents/Resources/

Set the permissions so it is executable:
Code:
chmod 755 /Applications/GNS3.app/Contents/Resources/pemubin.py


And then as run the script:

Code:
python /Applications/GNS3.app/Contents/Resources/qemuwrapper.py


If your user account doesnt have the correct permissions, you may need to prepend sudo to the above commands.




Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO