GNS3
http://forum.gns3.net/

GNS3 Beta1 / Debian / Can't import Qt modules [SOLVED]
http://forum.gns3.net/topic11406-10.html
Page 2 of 2

Author:  claydon_dan [ Fri Aug 22, 2014 10:11 am ]
Post subject:  Re: GNS3 Beta1 / Debian / Can't import Qt modules

Okay... QCoreApplication is provided by the -dev package, so you'll need to install libqt4-dev, which will pull in any dependencies it needs.
Code:
sudo apt-get install libqt4-dev

Fingers crossed... that will be the last one!

Author:  Mixthoor [ Fri Aug 22, 2014 9:15 pm ]
Post subject:  Re: GNS3 Beta1 / Debian / Can't import Qt modules

Thank you VERY MUCH! I can start gns3. I addedd my images, but I receive an other error:
Code:
Could not connect to the local server 127.0.0.1 on port 8000: Websocket exception <class 'ws4py.exc.HandshakeError'>: Invalid response status: b'403' b'Forbidden'


I will try your solution:
topic11240.html
https://github.com/GNS3/gns3-server/issues/22

Author:  claydon_dan [ Fri Aug 22, 2014 9:51 pm ]
Post subject:  Re: GNS3 Beta1 / Debian / Can't import Qt modules

Excellent news!

Ah the tornado bug... This will be fixed in beta2 (and has been committed on GitHub already), but as may already know the easiest fix is to:
Code:
pip uninstall tornado
pip install tornado==3.2.2

Author:  Mixthoor [ Sat Aug 23, 2014 9:46 am ]
Post subject:  Re: GNS3 Beta1 / Debian / Can't import Qt modules

Hmmm....

[email protected]:~$ sudo pip uninstall tornado
Cannot uninstall requirement tornado, not installed
Storing debug log for failure in /root/.pip/pip.log


----------

Installation the Tprnado v3.2.2 is done:
Code:
[email protected]:~$ sudo pip install tornado==3.2.2
Downloading/unpacking tornado==3.2.2
  Downloading tornado-3.2.2.tar.gz (405kB): 405kB downloaded
  Running setup.py (path:/tmp/pip_build_root/tornado/setup.py) egg_info for package tornado
   
Downloading/unpacking backports.ssl-match-hostname (from tornado==3.2.2)
  Downloading backports.ssl_match_hostname-3.4.0.2.tar.gz
  Running setup.py (path:/tmp/pip_build_root/backports.ssl-match-hostname/setup.py) egg_info for package backports.ssl-match-hostname
   
Installing collected packages: tornado, backports.ssl-match-hostname
  Running setup.py install for tornado
    building 'tornado.speedups' extension
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c tornado/speedups.c -o build/temp.linux-x86_64-2.7/tornado/speedups.o
    tornado/speedups.c:2:20: fatal error: Python.h: No such file or directory
    compilation terminated.
    /tmp/pip_build_root/tornado/setup.py:104: UserWarning:
    ********************************************************************
    WARNING: The tornado.speedups extension module could not
    be compiled. No C extensions are essential for Tornado to run,
    although they do result in significant speed improvements for
    websockets.
    The output above this warning shows how the compilation failed.
   
    Here are some hints for popular operating systems:
   
    If you are seeing this message on Linux you probably need to
    install GCC and/or the Python development package for your
    version of Python.
   
    Debian and Ubuntu users should issue the following command:
   
        $ sudo apt-get install build-essential python-dev
   
    RedHat, CentOS, and Fedora users should issue the following command:
   
        $ sudo yum install gcc python-devel
   
    If you are seeing this message on OSX please read the documentation
    here:
   
    http://api.mongodb.org/python/current/installation.html#osx
    ********************************************************************
   
      "The output above "
    command 'gcc' failed with exit status 1
   
  Running setup.py install for backports.ssl-match-hostname
   
Successfully installed tornado backports.ssl-match-hostname


---------

But I see still the error, when I try to use gns3:
Code:
[email protected]:~/Education/GNS3/Software$ gns3
GNS3 GUI version 1.0beta1
Copyright (c) 2007-2014 GNS3 Technologies Inc.
[I 140823 11:37:57 main:75] current locale is en_US.UTF-8
[I 140823 11:37:59 __init__:444] Dynamips module reset
[I 140823 11:37:59 __init__:413] IOU module reset
[I 140823 11:37:59 __init__:274] vpcs module reset
[I 140823 11:37:59 __init__:369] VirtualBox module reset
[I 140823 11:37:59 topology:256] topology has been reset
[I 140823 11:37:59 main_window:1175] creating temporary topology file: /tmp/gns3-p4hw_2bh
[I 140823 11:37:59 main_window:1178] creating temporary project files directory: /tmp/gns3-p4hw_2bh-files
[I 140823 11:37:59 __init__:175] local working directory for Dynamips module: /tmp/gns3-p4hw_2bh-files
[I 140823 11:37:59 __init__:140] local working directory for IOU module: /tmp/gns3-p4hw_2bh-files
[I 140823 11:37:59 __init__:82] local working directory for VPCS module: /tmp/gns3-p4hw_2bh-files
[I 140823 11:37:59 __init__:154] local working directory for VirtualBox module: /tmp/gns3-p4hw_2bh-files
[I 140823 11:38:01 servers:212] new local server connection ws://127.0.0.1:8000 registered
[I 140823 11:38:01 main_window:954] starting local server /usr/local/bin/gns3server on 127.0.0.1:8000
[I 140823 11:38:01 servers:160] starting local server process with "/usr/local/bin/gns3server" --host=127.0.0.1 --port=8000
GNS3 server version 1.0a8
Copyright (c) 2007-2014 GNS3 Technologies Inc.
Running with Python 3.4.0 and has PID 5736
[I 140823 11:38:03 main:75] current locale is en_US.UTF-8
[W 140823 11:38:03 config:82] no configuration file could be found or read
[W 140823 11:38:03 __init__:125] dynamips binary couldn't be found!
[I 140823 11:38:03 base:131] dynamips module running with PID 5739
[I 140823 11:38:03 base:84] ZeroMQ client (dynamips) connecting to 127.0.0.1:33854
[W 140823 11:38:03 __init__:77] VPCS binary couldn't be found!
[I 140823 11:38:03 base:131] vpcs module running with PID 5742
[I 140823 11:38:03 base:84] ZeroMQ client (vpcs) connecting to 127.0.0.1:33854
[W 140823 11:38:03 __init__:82] iouyap binary couldn't be found!
[I 140823 11:38:03 base:131] iou module running with PID 5745
[I 140823 11:38:03 server:219] ZeroMQ server listening to 127.0.0.1:33854
[I 140823 11:38:03 base:84] ZeroMQ client (iou) connecting to 127.0.0.1:33854
Starting server on 127.0.0.1:8000 (Tornado v4.0, PyZMQ v14.3.1, ZMQ v4.0.4)
[W 140823 11:38:03 web:1811] 403 GET / (127.0.0.1) 2.12ms
[I 140823 11:38:03 websocket_client:300] connection closed with server 127.0.0.1:8000
[E 140823 11:38:03 websocket_client:131] could to connect ws://127.0.0.1:8000: Invalid response status: b'403' b'Forbidden'


I don't understand, why I see Tornado v4.0:
Starting server on 127.0.0.1:8000 (Tornado v4.0, PyZMQ v14.3.1, ZMQ v4.0.4)
[W 140823 11:41:42 web:1811] 403 GET / (127.0.0.1) 2.10ms
[I 140823 11:41:42 websocket_client:300] connection closed with server 127.0.0.1:8000
[E 140823 11:41:42 websocket_client:131] could to connect ws://127.0.0.1:8000: Invalid response status: b'403' b'Forbidden'


*********************************

UPDATE:
topic11410.html?hilit=Invalid%20response%20status:%20b%27403%27%20b%27Forbidden
Code:
[email protected]:~/Education/GNS3/Software$ sudo apt-get install python3-tornado
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-tornado is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.


Code:
[email protected]:~/Education/GNS3/Software$ dpkg -l | grep tornado
ii  python3-tornado                       2.3-2                              all          scalable, non-blocking web server and tools - Python 3 package

Author:  claydon_dan [ Sat Aug 23, 2014 8:37 pm ]
Post subject:  Re: GNS3 Beta1 / Debian / Can't import Qt modules

Ah... you'll need to use the pip3.4 command so that it (un)installs to/from the pyton3.4 installation
Code:
pip3.4 uninstall tornado
pip3.4 install tornado==3.2.2

Author:  Mixthoor [ Wed Aug 27, 2014 7:46 am ]
Post subject:  Re: GNS3 Beta1 / Debian / Can't import Qt modules

claydon_dan, I'm back. YES, it works! Thank you very much for tipps and commands. I am able to start and use gns3 beta right now. I have to compile the dynamips master, but I saw there the instructions too. You can close this topic :)

Author:  claydon_dan [ Wed Aug 27, 2014 8:17 pm ]
Post subject:  Re: GNS3 Beta1 / Debian / Can't import Qt modules [SOLVED]

Excellent! Glad to hear that is worked!

With regards to dynamips, it is fairly easy to compile. As an alternative, if you are running amd64 you get dynamips 0.2.12 from Debian wheezy-backports (https://packages.debian.org/wheezy-backports/dynamips)

I will also be posting some newer versions of dynamips deb's built for wheezy in the coming days

Author:  grossmj [ Thu Aug 28, 2014 3:47 am ]
Post subject:  Re: GNS3 Beta1 / Debian / Can't import Qt modules [SOLVED]

Quote:
I will also be posting some newer versions of dynamips deb's built for wheezy in the coming days


FYI, Dynamips 0.2.14 should come out soon.

Cheers,

Author:  latentgod [ Sun Sep 14, 2014 3:27 am ]
Post subject:  Re: GNS3 Beta1 / Debian / Can't import Qt modules [SOLVED]

Now,I also have this issues which like the first problem.

RuntimeError: Can't import Qt modules: Qt and/or PyQt is probably not installed correctly...


Could you give some idea to solve the problem. thanks!

Page 2 of 2 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/