It is currently Mon Jul 24, 2017 10:41 am


All times are UTC




Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: GNS3 Beta1 / Debian / Can't import Qt modules [SOLVED]
PostPosted: Fri Aug 01, 2014 10:57 am 
Offline

Joined: Wed Jan 22, 2014 8:59 pm
Posts: 14
Hi,

I've got Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u1 x86_64 GNU/Linux and gns3-gui-1.0-beta1.zip. I can not start and use GNS3 beta 1.

Dependencies:
- Python version 3.3 or above
Code:
[email protected]:~/Multimedia/Download/dynamips-master$ dpkg -l | grep python
ii  libpython2.7                          2.7.3-6+deb7u2                     amd64        Shared Python runtime library (version 2.7)
ii  libpython3.2                          3.2.3-7                            amd64        Shared Python runtime library (version 3.2)
ii  python                                2.7.3-4+deb7u1                     all          interactive high-level object-oriented language (default version)
ii  python-apt                            0.8.8.2                            amd64        Python interface to libapt-pkg
ii  python-apt-common                     0.8.8.2                            all          Python interface to libapt-pkg (locales)
ii  python-aptdaemon                      0.45-2                             all          Python module for the server and client of aptdaemon
ii  python-aptdaemon.gtk3widgets          0.45-2                             all          Python GTK+ 3 widgets to run an aptdaemon client
ii  python-beautifulsoup                  3.2.1-1                            all          error-tolerant HTML parser for Python
ii  python-brlapi                         4.4-10+deb7u1                      amd64        Python bindings for BrlAPI
ii  python-cairo                          1.8.8-1+b2                         amd64        Python bindings for the Cairo vector graphics library
ii  python-chardet                        2.0.1-2                            all          universal character encoding detector
ii  python-dbus                           1.1.1-1                            amd64        simple interprocess messaging system (Python interface)
ii  python-dbus-dev                       1.1.1-1                            all          main loop integration development files for python-dbus
ii  python-debian                         0.1.21                             all          Python modules to work with Debian-related data formats
ii  python-defer                          1.0.6-2                            all          Small framework for asynchronous programming (Python 2)
ii  python-feedparser                     5.1.2-1                            all          Universal Feed Parser for Python
ii  python-gconf                          2.28.1+dfsg-1                      amd64        Python bindings for the GConf configuration database system
ii  python-gi                             3.2.2-2                            amd64        Python 2.x bindings for gobject-introspection libraries
ii  python-gi-cairo                       3.2.2-2                            amd64        Python Cairo bindings for the GObject library
ii  python-glade2                         2.24.0-3+b1                        amd64        GTK+ bindings: Glade support
ii  python-gnome2                         2.28.1+dfsg-1                      amd64        Python bindings for the GNOME desktop environment
ii  python-gnupginterface                 0.3.2-9.1                          all          Python interface to GnuPG (GPG)
ii  python-gobject                        3.2.2-2                            all          Python 2.x bindings for GObject - transitional package
ii  python-gobject-2                      2.28.6-10                          amd64        deprecated static Python bindings for the GObject library
ii  python-gst0.10                        0.10.22-3                          amd64        generic media-playing framework (Python bindings)
ii  python-gtk2                           2.24.0-3+b1                        amd64        Python bindings for the GTK+ widget set
ii  python-httplib2                       0.7.4-2+deb7u1                     all          comprehensive HTTP client library written for Python
ii  python-imaging                        1.1.7-4                            amd64        Python Imaging Library
ii  python-keybinder                      0.2.2-4                            amd64        registers global key bindings for applications - Python bindings
ii  python-libxml2                        2.8.0+dfsg1-7+wheezy1              amd64        Python bindings for the GNOME XML library
ii  python-louis                          2.4.1-1                            amd64        Python bindings for liblouis
ii  python-lxml                           2.3.2-1+deb7u1                     amd64        pythonic binding for the libxml2 and libxslt libraries
ii  python-mako                           0.7.0-1.1                          all          fast and lightweight templating for the Python platform
ii  python-markupsafe                     0.15-1                             amd64        XML/HTML/XHTML Markup safe string for Python
ii  python-minimal                        2.7.3-4+deb7u1                     all          minimal subset of the Python language (default version)
ii  python-notify                         0.1.1-3                            amd64        Python bindings for libnotify
ii  python-numpy                          1:1.6.2-1.2                        amd64        Numerical Python adds a fast array facility to the Python language
ii  python-packagekit                     0.7.6-3                            all          PackageKit backend Python bindings
ii  python-pexpect                        2.4-1                              all          Python module for automating interactive applications
ii  python-pkg-resources                  0.6.24-1                           all          Package Discovery and Resource Access using pkg_resources
ii  python-pyatspi                        2.5.3+dfsg-3                       all          Assistive Technology Service Provider Interface - Python bindings
ii  python-pyatspi2                       2.5.3+dfsg-3                       all          Transitional package for assistive technology Python bindings
ii  python-pycurl                         7.19.0-5                           amd64        Python bindings to libcurl
ii  python-pyorbit                        2.24.0-6+b1                        amd64        A Python language binding for the ORBit2 CORBA implementation
ii  python-qt4                            4.9.3-4                            amd64        Python bindings for Qt4
ii  python-renderpm                       2.5-1.1                            amd64        python low level render interface
ii  python-reportlab                      2.5-1.1                            all          ReportLab library to create PDF documents using Python
ii  python-reportlab-accel                2.5-1.1                            amd64        C coded extension accelerator for the ReportLab Toolkit
ii  python-sip                            4.13.3-2                           amd64        Python/C++ bindings generator runtime library
ii  python-software-properties            0.82.7.1debian1                    all          manage the repositories that you install software from
ii  python-speechd                        0.7.1-6.2                          all          Python interface to Speech Dispatcher
ii  python-support                        1.0.15                             all          automated rebuilding support for Python modules
ii  python-uno                            1:3.5.4+dfsg2-0+deb7u2             amd64        Python-UNO bridge
ii  python-utidylib                       0.2-8                              all          Python wrapper for TidyLib
ii  python-vte                            1:0.28.2-5                         amd64        Python bindings for the VTE widget set
ii  python-wnck                           2.32.0+dfsg-2+b1                   amd64        Python bindings for the WNCK library
ii  python-xapian                         1.2.12-2                           amd64        Xapian search engine interface for Python
ii  python-xdg                            0.19-5                             all          Python library to access freedesktop.org standards
ii  python-zeitgeist                      0.9.0.1-1                          all          event logging framework - Python bindings
ii  python2.7                             2.7.3-6+deb7u2                     amd64        Interactive high-level object-oriented language (version 2.7)
ii  python2.7-minimal                     2.7.3-6+deb7u2                     amd64        Minimal subset of the Python language (version 2.7)
ii  python3                               3.2.3-6                            all          interactive high-level object-oriented language (default python3 version)
ii  python3-dev                           3.2.3-6                            all          header files and a static library for Python (default)
ii  python3-minimal                       3.2.3-6                            all          minimal subset of the Python language (default python3 version)
ii  python3-pip                           1.1-3                              all          alternative Python package installer - Python 3 version of the package
ii  python3-pkg-resources                 0.6.24-1                           all          Package Discovery and Resource Access using pkg_resources
ii  python3-pyqt4                         4.9.3-4                            amd64        Python3 bindings for Qt4
ii  python3-setuptools                    0.6.24-1                           all          Python3 Distutils Enhancements (setuptools compatibility)
ii  python3-sip                           4.13.3-2                           amd64        Python 3/C++ bindings generator runtime library
ii  python3-tornado                       2.3-2                              all          scalable, non-blocking web server and tools - Python 3 package
ii  python3-zmq                           2.2.0-1                            amd64        Python3 bindings for 0MQ library
ii  python3.2                             3.2.3-7                            amd64        Interactive high-level object-oriented language (version 3.2)
ii  python3.2-dev                         3.2.3-7                            amd64        Header files and a static library for Python (v3.2)
ii  python3.2-minimal                     3.2.3-7                            amd64        Minimal subset of the Python language (version 3.2)


- pip & setuptools must be installed, please see http://pip.readthedocs.org/en/latest/installing.html (or sudo apt-get install python3-pip but install more packages)
Code:
[email protected]:~/Multimedia/Download/dynamips-master$ dpkg -l | grep pip
ii  libpipeline1:amd64                    1.2.1-1                            amd64        pipeline manipulation library
ii  python3-pip                           1.1-3                              all          alternative Python package installer - Python 3 version of the package

Code:
[email protected]:~/Multimedia/Download/dynamips-master$ dpkg -l | grep setuptools
ii  python3-setuptools                    0.6.24-1                           all          Python3 Distutils Enhancements (setuptools compatibility)


- PyQt must be installed, to install on Debian-like Linux: sudo apt-get install python3-pyqt4
Code:
[email protected]:~/Multimedia/Download/dynamips-master$ dpkg -l | grep pyqt4
ii  python3-pyqt4                         4.9.3-4                            amd64        Python3 bindings for Qt4


- Dynamips version 0.2.11 or above (http://github.com/GNS3/dynamips)
How can I check this? I downloaded the dynamips-master.zip and then dynamips-0.2.12.zip, tried to install these, but I don't understand the instructions. GIT doesn't work, because "git: command not found"

Quote:
Either download and extract a source tarball from the releases page or clone the
Git repository using:

```
git clone git://github.com/GNS3/dynamips.git
cd dynamips
mkdir build
cd build
cmake ..
```

This will generate the Makefiles required for compiling Dynamips. To just build
Dynamips simple run:

```
make
```
or to build and install Dynamips run:

```
make install
```

The specify a differant installation location run:

```
cmake -DCMAKE_INSTALL_PREFIX=/target/path ..
```


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

When I want to start gns3 beta 1, I see the error:
Code:
RuntimeError: Can't import Qt modules: Qt and/or PyQt is probably not installed correctly...


The whole message is:
Code:
[email protected]:~/Education/GNS3/Software$ gns3
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/site-packages/gns3_gui-1.0beta1-py3.4.egg/gns3/main.py", line 31, in <module>
  File "/usr/local/lib/python3.4/site-packages/gns3_gui-1.0beta1-py3.4.egg/gns3/qt.py", line 26, in <module>
ImportError: No module named 'sip'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/gns3", line 9, in <module>
    load_entry_point('gns3-gui==1.0beta1', 'gui_scripts', 'gns3')()
  File "/usr/local/lib/python3.4/site-packages/pkg_resources.py", line 353, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python3.4/site-packages/pkg_resources.py", line 2302, in load_entry_point
    return ep.load()
  File "/usr/local/lib/python3.4/site-packages/pkg_resources.py", line 2029, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "<frozen importlib._bootstrap>", line 2214, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2203, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1191, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1161, in _load_backward_compatible
  File "/usr/local/lib/python3.4/site-packages/gns3_gui-1.0beta1-py3.4.egg/gns3/main.py", line 33, in <module>
RuntimeError: Can't import Qt modules: Qt and/or PyQt is probably not installed correctly...


Who can help me?




Top
 Profile  
 
 Post subject: Re: GNS3 Beta1 / Debian / Can't import Qt modules
PostPosted: Fri Aug 01, 2014 2:46 pm 
Offline

Joined: Sun Sep 16, 2012 9:55 pm
Posts: 541
Location: England
Because you've manually built python3.4 you need to build PyQt and SIP for this installation of python.

Code:
wget http://sourceforge.net/projects/pyqt/files/sip/sip-4.16.2/sip-4.16.2.tar.gz
tar -xf sip-4.16.2.tar.gz
cd sip-4.16.2/

python configure.py
make
make install

cd ..
wget http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.11.1/PyQt-x11-gpl-4.11.1.tar.gz
tar -xf PyQt-x11-gpl-4.11.1.tar.gz
cd PyQt-x11-gpl-4.11.1/

python configure.py
make
make install


You may need to adjust the above slightly, to use the right python binary and set the correct installation path when running configure (prefix=/usr/local/lib/python3.4).

Alternatively you can create a venv from you python3.4 and install in that (which is what I've done)

_________________
Daniel
Forum Moderator & Debian Package Maintainer for GNS3, Dynamips & VPCS.
Standalone DEB Packages are available from http://gns3.serverb.co.uk - To be updated!


Top
 Profile  
 
 Post subject: Re: GNS3 Beta1 / Debian / Can't import Qt modules
PostPosted: Thu Aug 07, 2014 6:52 am 
Offline

Joined: Wed Jan 22, 2014 8:59 pm
Posts: 14
I don't have the expirence in linux, and right now I've got 2 other questions:

Code:
wget http://sourceforge.net/projects/pyqt/files/sip/sip-4.16.2/sip-4.16.2.tar.gz
tar -xf sip-4.16.2.tar.gz
cd sip-4.16.2/

python configure.py
make
make install
I see:

Code:
[email protected]:~/sip-4.16.2$ python configure.py
This is SIP 4.16.2 for Python 2.7.3 on linux2.
The SIP code generator will be installed in /usr/bin.
The sip module will be installed in /usr/lib/python2.7/dist-packages.
The sip.h header file will be installed in /usr/include/python2.7.
The default directory to install .sip files in is /usr/share/sip.
Creating siplib/sip.h...
Creating siplib/siplib.c...
Creating siplib/siplib.sbf...
Creating sipconfig.py...
Creating top level Makefile...
Creating sip code generator Makefile...
Creating sip module Makefile...


The errors:
Code:
[email protected]:~/sip-4.16.2$ make
make[1]: Entering directory `/home/mixthoor/sip-4.16.2/sipgen'
gcc -c -pipe -O2 -w -DNDEBUG -I. -o main.o main.c
gcc -c -pipe -O2 -w -DNDEBUG -I. -o transform.o transform.c
gcc -c -pipe -O2 -w -DNDEBUG -I. -o gencode.o gencode.c
gcc -c -pipe -O2 -w -DNDEBUG -I. -o extracts.o extracts.c
gcc -c -pipe -O2 -w -DNDEBUG -I. -o export.o export.c
gcc -c -pipe -O2 -w -DNDEBUG -I. -o heap.o heap.c
gcc -c -pipe -O2 -w -DNDEBUG -I. -o parser.o parser.c
gcc -c -pipe -O2 -w -DNDEBUG -I. -o lexer.o lexer.c
g++  -o sip main.o transform.o gencode.o extracts.o export.o heap.o parser.o lexer.o
make[1]: Leaving directory `/home/mixthoor/sip-4.16.2/sipgen'
make[1]: Entering directory `/home/mixthoor/sip-4.16.2/siplib'
gcc -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/include/python2.7 -o siplib.o siplib.c
siplib.c:20:20: fatal error: Python.h: No such file or directory
compilation terminated.
make[1]: *** [siplib.o] Error 1
make[1]: Leaving directory `/home/mixthoor/sip-4.16.2/siplib'
make: *** [all] Error 2


Code:
[email protected]:~/sip-4.16.2$ make install
make[1]: Entering directory `/home/mixthoor/sip-4.16.2/sipgen'
cp -f sip /usr/bin/sip
cp: cannot create regular file `/usr/bin/sip': Permission denied
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/mixthoor/sip-4.16.2/sipgen'
make: *** [install] Error 2


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

Quote:
Alternatively you can create a venv from you python3.4 and install in that (which is what I've done)
OK, I can try it, could you give me instructions? Thanks a lot!


Top
 Profile  
 
 Post subject: Re: GNS3 Beta1 / Debian / Can't import Qt modules
PostPosted: Thu Aug 07, 2014 9:39 am 
Offline

Joined: Sun Sep 16, 2012 9:55 pm
Posts: 541
Location: England
Mixthoor wrote:
Code:
[email protected]:~/sip-4.16.2$ python configure.py
This is SIP 4.16.2 for Python 2.7.3 on linux2.
The SIP code generator will be installed in /usr/bin.
The sip module will be installed in /usr/lib/python2.7/dist-packages.
The sip.h header file will be installed in /usr/include/python2.7.
The default directory to install .sip files in is /usr/share/sip.
Creating siplib/sip.h...
Creating siplib/siplib.c...
Creating siplib/siplib.sbf...
Creating sipconfig.py...
Creating top level Makefile...
Creating sip code generator Makefile...
Creating sip module Makefile...


The errors:
Code:
[email protected]:~/sip-4.16.2$ make
make[1]: Entering directory `/home/mixthoor/sip-4.16.2/sipgen'
gcc -c -pipe -O2 -w -DNDEBUG -I. -o main.o main.c
gcc -c -pipe -O2 -w -DNDEBUG -I. -o transform.o transform.c
gcc -c -pipe -O2 -w -DNDEBUG -I. -o gencode.o gencode.c
gcc -c -pipe -O2 -w -DNDEBUG -I. -o extracts.o extracts.c
gcc -c -pipe -O2 -w -DNDEBUG -I. -o export.o export.c
gcc -c -pipe -O2 -w -DNDEBUG -I. -o heap.o heap.c
gcc -c -pipe -O2 -w -DNDEBUG -I. -o parser.o parser.c
gcc -c -pipe -O2 -w -DNDEBUG -I. -o lexer.o lexer.c
g++  -o sip main.o transform.o gencode.o extracts.o export.o heap.o parser.o lexer.o
make[1]: Leaving directory `/home/mixthoor/sip-4.16.2/sipgen'
make[1]: Entering directory `/home/mixthoor/sip-4.16.2/siplib'
gcc -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/include/python2.7 -o siplib.o siplib.c
siplib.c:20:20: fatal error: Python.h: No such file or directory
compilation terminated.
make[1]: *** [siplib.o] Error 1
make[1]: Leaving directory `/home/mixthoor/sip-4.16.2/siplib'
make: *** [all] Error 2


This is actually trying to build using python 2.7, you'll *may* have more luck trying with python3.4 (which should be in your path since it's installed in /usr/local/bin) so try:
Code:
python3.4 configure.py
make


If that doesn't work you can specify the full path like this:
Code:
/usr/local/bin/python3.4 configure.py
make


Mixthoor wrote:
Code:
[email protected]:~/sip-4.16.2$ make install
make[1]: Entering directory `/home/mixthoor/sip-4.16.2/sipgen'
cp -f sip /usr/bin/sip
cp: cannot create regular file `/usr/bin/sip': Permission denied
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/mixthoor/sip-4.16.2/sipgen'
make: *** [install] Error 2


This is because it was trying to install into /usr/bin where a standard user doesn't have permission. Running
Code:
sudo make install
will give you the permissions you need (and hopefully building with python3.4 from /usr/local/bin should install to /usr/local/bin as well

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

Mixthoor wrote:
Quote:
Alternatively you can create a venv from you python3.4 and install in that (which is what I've done)
OK, I can try it, could you give me instructions? Thanks a lot!


Python Docs - https://docs.python.org/3.4/library/venv.html

Creating a venv is very simple... simply use the the command pyvenv-3.4 (in your case) like this:
Code:
pyvenv-3.4 ~/gns3-python

or
Code:
/usr/local/bin/pyvenv-3.4 ~/gns3-python


The first half is the pyvenv program, and the second half is the directory in which to create the venv (in my example /home/<USER>/gns3-python)

Once you've created a venv you can activate it which modifies the environment slightly so the venv is the default python (temporarily). To activate your venv, you'll need to type the following:
Code:
. ~/gns3-python/bin/activate


You can then run commands like pip and python and they will use the venv you created (which means if something goes wrong, you can delete the venv and start again)

Hope that helps

_________________
Daniel
Forum Moderator & Debian Package Maintainer for GNS3, Dynamips & VPCS.
Standalone DEB Packages are available from http://gns3.serverb.co.uk - To be updated!


Top
 Profile  
 
 Post subject: Re: GNS3 Beta1 / Debian / Can't import Qt modules
PostPosted: Mon Aug 18, 2014 10:18 am 
Offline

Joined: Wed Jan 22, 2014 8:59 pm
Posts: 14
Thx for your patience and tipps. I need your help once again.

List the files in /usr/local/bin:
Code:
[email protected]:~$ ls /usr/local/bin/ -l
total 22424
lrwxrwxrwx 1 root staff        8 Apr 24 16:19 2to3 -> 2to3-3.4
-rwxr-xr-x 1 root staff      101 Apr 24 16:19 2to3-3.4
-rwxr-xr-x 1 root staff      241 Apr 24 16:19 easy_install-3.4
-rwxr-xr-x 1 root staff      306 Aug 18 10:56 gns3
-rwxr-xr-x 1 root staff      326 Jul 16 09:43 gns3server
lrwxrwxrwx 1 root staff        7 Apr 24 16:19 idle3 -> idle3.4
-rwxr-xr-x 1 root staff       99 Apr 24 16:19 idle3.4
-rwxr-xr-x 1 root staff      213 Apr 24 16:19 pip3
-rwxr-xr-x 1 root staff      213 Apr 24 16:19 pip3.4
lrwxrwxrwx 1 root staff        8 Apr 24 16:19 pydoc3 -> pydoc3.4
-rwxr-xr-x 1 root staff       84 Apr 24 16:19 pydoc3.4
lrwxrwxrwx 1 root staff        9 Apr 24 16:19 python3 -> python3.4
-rwxr-xr-x 2 root staff 11268205 Apr 24 16:19 python3.4
lrwxrwxrwx 1 root staff       17 Apr 24 16:19 python3.4-config -> python3.4m-config
-rwxr-xr-x 2 root staff 11268205 Apr 24 16:19 python3.4m
-rwxr-xr-x 1 root staff     3068 Apr 24 16:19 python3.4m-config
lrwxrwxrwx 1 root staff       16 Apr 24 16:19 python3-config -> python3.4-config
lrwxrwxrwx 1 root staff       10 Apr 24 16:19 pyvenv -> pyvenv-3.4
-rwxr-xr-x 1 root staff      236 Apr 24 16:19 pyvenv-3.4
-rwxr-xr-x 1 root staff   373312 Aug 18 10:53 sip


**********
I unpacked the source of python archive:
Code:
[email protected]:~/Multimedia/Download/Network/GNS3_beta1/sip-4.16.2$ ls -l
total 348
-rw-r--r-- 1 mixthoor mixthoor 29750 Jul  3 12:08 configure.py
drwxr-xr-x 3 mixthoor mixthoor  4096 Jul  3 12:08 doc
-rw-r--r-- 1 mixthoor mixthoor  2653 Apr 20 20:09 LICENSE
-rw-r--r-- 1 mixthoor mixthoor 18161 Jan 31  2012 LICENSE-GPL2
-rw-r--r-- 1 mixthoor mixthoor 35297 Jan 31  2012 LICENSE-GPL3
-rw-r--r-- 1 mixthoor mixthoor   545 Aug 18 10:52 Makefile
-rw-r--r-- 1 mixthoor mixthoor 25758 Jul  3 10:54 NEWS
drwxr-xr-x 2 mixthoor mixthoor  4096 Aug 18 10:52 __pycache__
-rw-r--r-- 1 mixthoor mixthoor  1179 Jan 31  2012 README
-rw-r--r-- 1 mixthoor mixthoor 95409 Aug 18 10:52 sipconfig.py
-rw-r--r-- 1 mixthoor mixthoor  6041 Jun 28  2013 sipdistutils.py
drwxr-xr-x 3 mixthoor mixthoor  4096 Aug 18 10:52 sipgen
drwxr-xr-x 2 mixthoor mixthoor  4096 Aug 18 10:52 siplib
-rw-r--r-- 1 mixthoor mixthoor 91039 May 10 17:00 siputils.py
drwxr-xr-x 2 mixthoor mixthoor  4096 Mar 28  2013 specs
drwxr-xr-x 3 mixthoor mixthoor  4096 Jul  3 12:08 sphinx


*******
I used your command for the installation:
[email protected]:~/Multimedia/Download/Network/GNS3_beta1/sip-4.16.2$ python3.4 configure.py
Code:
This is SIP 4.16.2 for Python 3.4.0 on linux.
The SIP code generator will be installed in /usr/local/bin.
The sip module will be installed in /usr/local/lib/python3.4/site-packages.
The sip.h header file will be installed in /usr/local/include/python3.4m.
The default directory to install .sip files in is /usr/local/share/sip.
Creating siplib/sip.h...
Creating siplib/siplib.c...
Creating siplib/siplib.sbf...
Creating sipconfig.py...
Creating top level Makefile...
Creating sip code generator Makefile...
Creating sip module Makefile...


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

... and then make:
[email protected]:~/Multimedia/Download/Network/GNS3_beta1/sip-4.16.2$ make
Code:
make[1]: Entering directory `/home/mixthoor/Multimedia/Download/Network/GNS3_beta1/sip-4.16.2/sipgen'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/mixthoor/Multimedia/Download/Network/GNS3_beta1/sip-4.16.2/sipgen'
make[1]: Entering directory `/home/mixthoor/Multimedia/Download/Network/GNS3_beta1/sip-4.16.2/siplib'
gcc -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/local/include/python3.4m -o siplib.o siplib.c
gcc -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/local/include/python3.4m -o apiversions.o apiversions.c
gcc -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/local/include/python3.4m -o descriptors.o descriptors.c
gcc -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/local/include/python3.4m -o qtlib.o qtlib.c
gcc -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/local/include/python3.4m -o threads.o threads.c
gcc -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/local/include/python3.4m -o objmap.o objmap.c
gcc -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/local/include/python3.4m -o voidptr.o voidptr.c
gcc -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/local/include/python3.4m -o array.o array.c
g++ -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/local/include/python3.4m -o bool.o bool.cpp
g++ -shared -Wl,--version-script=sip.exp -o sip.so siplib.o apiversions.o descriptors.o qtlib.o threads.o objmap.o voidptr.o array.o bool.o
make[1]: Leaving directory `/home/mixthoor/Multimedia/Download/Network/GNS3_beta1/sip-4.16.2/siplib'



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

[email protected]:~/Multimedia/Download/Network/GNS3_beta1/sip-4.16.2$ sudo make install
[sudo] password for mixthoor:
Code:
make[1]: Entering directory `/home/mixthoor/Multimedia/Download/Network/GNS3_beta1/sip-4.16.2/sipgen'
cp -f sip /usr/local/bin/sip
make[1]: Leaving directory `/home/mixthoor/Multimedia/Download/Network/GNS3_beta1/sip-4.16.2/sipgen'
make[1]: Entering directory `/home/mixthoor/Multimedia/Download/Network/GNS3_beta1/sip-4.16.2/siplib'
cp -f sip.so /usr/local/lib/python3.4/site-packages/sip.so
strip /usr/local/lib/python3.4/site-packages/sip.so
cp -f /home/mixthoor/Multimedia/Download/Network/GNS3_beta1/sip-4.16.2/siplib/sip.h /usr/local/include/python3.4m/sip.h
make[1]: Leaving directory `/home/mixthoor/Multimedia/Download/Network/GNS3_beta1/sip-4.16.2/siplib'
cp -f sipconfig.py /usr/local/lib/python3.4/site-packages/sipconfig.py
cp -f /home/mixthoor/Multimedia/Download/Network/GNS3_beta1/sip-4.16.2/sipdistutils.py /usr/local/lib/python3.4/site-packages/sipdistutils.py
[email protected]:~/Multimedia/Download/Network/GNS3_beta1/sip-4.16.2$


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

After that I tried to install GNS3 beta. From ReadMe I saw:
Quote:
New GNS3 GUI repository (alpha stage).

Warning: this is not the repository for the stable version of GNS3 (0.8.6), please go to the gns3-legacy repository for it.

Linux/Unix
----------

Dependencies:

- Python version 3.3 or above
- pip & setuptools must be installed, please see http://pip.readthedocs.org/en/latest/installing.html
(or sudo apt-get install python3-pip but install more packages)
- PyQt must be installed, to install on Debian-like Linux: sudo apt-get install python3-pyqt4
- Dynamips version 0.2.11 or above (http://github.com/GNS3/dynamips)

.. code:: bash

cd gns3-gui-master
sudo python3 setup.py install
gns3


Code:
[email protected]:~/Education/GNS3/Software$ ls -l
total 92
-rw-r--r--  1 mixthoor mixthoor    16 Jul 19 06:50 AUTHORS
drwxr-xr-x  4 root     root      4096 Aug 18 10:56 build
-rw-r--r--  1 mixthoor mixthoor    84 Jul 19 06:50 dev-requirements.txt
drwxr-xr-x  2 root     root      4096 Aug 18 10:56 dist
drwx------ 13 mixthoor mixthoor  4096 Aug 18 10:56 gns3
drwxr-xr-x  2 root     root      4096 Aug 18 10:56 gns3_gui.egg-info
-rw-r--r--  1 mixthoor mixthoor 35147 Jul 19 06:50 LICENSE
-rw-r--r--  1 mixthoor mixthoor   240 Jul 19 06:50 MANIFEST.in
-rw-r--r--  1 mixthoor mixthoor  1404 Jul 19 06:50 README.rst
-rw-r--r--  1 mixthoor mixthoor    31 Jul 19 06:50 requirements.txt
drwx------  5 mixthoor mixthoor  4096 Aug 18 10:55 resources
drwx------  2 mixthoor mixthoor  4096 Aug 18 10:55 scripts
-rw-r--r--  1 mixthoor mixthoor  2551 Jul 19 06:50 setup.py
drwx------  2 mixthoor mixthoor  4096 Aug 18 10:55 tests
-rw-r--r--  1 mixthoor mixthoor   157 Jul 19 06:50 tox.ini


So I used the command sudo python3 setup.py install. Output below:
Code:
...
...
...
...
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying gns3_gui.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying gns3_gui.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying gns3_gui.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying gns3_gui.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying gns3_gui.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying gns3_gui.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/gns3_gui-1.0beta1-py3.4.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing gns3_gui-1.0beta1-py3.4.egg
Removing /usr/local/lib/python3.4/site-packages/gns3_gui-1.0beta1-py3.4.egg
Copying gns3_gui-1.0beta1-py3.4.egg to /usr/local/lib/python3.4/site-packages
gns3-gui 1.0beta1 is already the active version in easy-install.pth
Installing gns3 script to /usr/local/bin

Installed /usr/local/lib/python3.4/site-packages/gns3_gui-1.0beta1-py3.4.egg
Processing dependencies for gns3-gui==1.0beta1
Searching for requests==2.3.0
Best match: requests 2.3.0
Processing requests-2.3.0-py3.4.egg
requests 2.3.0 is already the active version in easy-install.pth

Using /usr/local/lib/python3.4/site-packages/requests-2.3.0-py3.4.egg
Searching for apache-libcloud==0.15.1
Best match: apache-libcloud 0.15.1
Processing apache_libcloud-0.15.1-py3.4.egg
apache-libcloud 0.15.1 is already the active version in easy-install.pth

Using /usr/local/lib/python3.4/site-packages/apache_libcloud-0.15.1-py3.4.egg
Searching for ws4py==0.3.4
Best match: ws4py 0.3.4
Processing ws4py-0.3.4-py3.4.egg
ws4py 0.3.4 is already the active version in easy-install.pth

Using /usr/local/lib/python3.4/site-packages/ws4py-0.3.4-py3.4.egg
Finished processing dependencies for gns3-gui==1.0beta1


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

In the end I tried to start gns3, but I see the error:

Code:
[email protected]:~/Education/GNS3/Software$ gns3
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/site-packages/gns3_gui-1.0beta1-py3.4.egg/gns3/main.py", line 31, in <module>
  File "/usr/local/lib/python3.4/site-packages/gns3_gui-1.0beta1-py3.4.egg/gns3/qt.py", line 39, in <module>
ImportError: No module named 'PyQt4'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/gns3", line 9, in <module>
    load_entry_point('gns3-gui==1.0beta1', 'gui_scripts', 'gns3')()
  File "/usr/local/lib/python3.4/site-packages/pkg_resources.py", line 353, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python3.4/site-packages/pkg_resources.py", line 2302, in load_entry_point
    return ep.load()
  File "/usr/local/lib/python3.4/site-packages/pkg_resources.py", line 2029, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "<frozen importlib._bootstrap>", line 2214, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2203, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1191, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1161, in _load_backward_compatible
  File "/usr/local/lib/python3.4/site-packages/gns3_gui-1.0beta1-py3.4.egg/gns3/main.py", line 33, in <module>
RuntimeError: Can't import Qt modules: Qt and/or PyQt is probably not installed correctly...


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

I tried to create the venv:
Code:
(gns3-python) [email protected]:~/Education/GNS3/Software$ /usr/local/bin/pyvenv-3.4 ~/gns3-python
(gns3-python) [email protected]:~/Education/GNS3/Software$ . ~/gns3-python/bin/activate
(gns3-python) [email protected]:~/Education/GNS3/Software$

but after that I still see RuntimeError: Can't import Qt modules: Qt and/or PyQt is probably not installed correctly...

Could you still help me?


Top
 Profile  
 
 Post subject: Re: GNS3 Beta1 / Debian / Can't import Qt modules
PostPosted: Mon Aug 18, 2014 11:37 am 
Offline

Joined: Fri Mar 05, 2010 11:33 am
Posts: 1494
Location: Australia
Try this script topic11650.html

It should work on Debian (32 bit anyway)

_________________
RedNectar
http://rednectar.net
@rednectarchris
GNS3 WorkBench-a VMware image of Ubuntu with GNS3 and VPCS installed and a collection of exercises/labs


Top
 Profile  
 
 Post subject: Re: GNS3 Beta1 / Debian / Can't import Qt modules
PostPosted: Mon Aug 18, 2014 4:38 pm 
Offline

Joined: Sun Sep 16, 2012 9:55 pm
Posts: 541
Location: England
rednectar wrote:
Try this script topic11650.html

It should work on Debian (32 bit anyway)

Unfortunately in this case it probably wouldn't work... as he has a custom compiled installation of python3.4, so I would presume that's on Debian Wheezy as Debian Testing has python3.4 already.

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

Mixthoor wrote:
but after that I still see RuntimeError: Can't import Qt modules: Qt and/or PyQt is probably not installed correctly...

Your're almost there... You've compiled and installed SIP. Now you need to do the same for PyQt4.

Head over to http://www.riverbankcomputing.com/softw ... t/download and download PyQt-x11-gpl-4.11.1.tar.gz.

Extract that tarball and do the same as you did for SIP
Code:
python3.4 configure.py
make
sudo make install

This will take quite a while to compile, around 15-25mins on average.

After that you should be good to go!

_________________
Daniel
Forum Moderator & Debian Package Maintainer for GNS3, Dynamips & VPCS.
Standalone DEB Packages are available from http://gns3.serverb.co.uk - To be updated!


Top
 Profile  
 
 Post subject: Re: GNS3 Beta1 / Debian / Can't import Qt modules
PostPosted: Tue Aug 19, 2014 10:45 am 
Offline

Joined: Wed Jan 22, 2014 8:59 pm
Posts: 14
Code:
[email protected]:~/Multimedia/Download/Network/GNS3_beta1/PyQt-x11-gpl-4.11.1$ python3.4 configure.py
Error: Make sure you have a working Qt qmake on your PATH or use the -q
argument to explicitly specify a working Qt qmake.

I was looking for a solution (f.e. http://stackoverflow.com/questions/7854 ... r-qt-4-7-4 - it's not for me, am I right? OR https://packages.debian.org/wheezy/pyqt4-dev-tools - this is the old package.)


Top
 Profile  
 
 Post subject: Re: GNS3 Beta1 / Debian / Can't import Qt modules
PostPosted: Tue Aug 19, 2014 11:35 am 
Offline

Joined: Sun Sep 16, 2012 9:55 pm
Posts: 541
Location: England
Apologies I had completely forgotten about the qtmake requirement.

You need to install qmake-qt4 which will provide the appropriate qmake command

Code:
sudo apt-get install qmake-qt4

_________________
Daniel
Forum Moderator & Debian Package Maintainer for GNS3, Dynamips & VPCS.
Standalone DEB Packages are available from http://gns3.serverb.co.uk - To be updated!


Top
 Profile  
 
 Post subject: Re: GNS3 Beta1 / Debian / Can't import Qt modules
PostPosted: Fri Aug 22, 2014 6:54 am 
Offline

Joined: Wed Jan 22, 2014 8:59 pm
Posts: 14
The new message...

Code:
[email protected]:~/Multimedia/Download/Network/GNS3_beta1/PyQt-x11-gpl-4.11.1$ ls -l
total 356
-rw-r--r--  1 mixthoor mixthoor 94760 Jul  3 16:00 configure-ng.py
-rw-r--r--  1 mixthoor mixthoor 78876 Jul  3 16:00 configure.py
drwxr-xr-x  5 mixthoor mixthoor  4096 Jul  3 16:00 contrib
drwxr-xr-x  2 mixthoor mixthoor  4096 Jul  3 16:00 dbus
drwxr-xr-x  2 mixthoor mixthoor  4096 Jul  3 16:00 designer
drwxr-xr-x  4 mixthoor mixthoor  4096 Jul  3 16:00 doc
drwxr-xr-x  2 mixthoor mixthoor  4096 Jul  3 16:00 elementtree
drwxr-xr-x 32 mixthoor mixthoor  4096 Jul  3 16:00 examples
-rw-r--r--  1 mixthoor mixthoor 12093 Jul  3 16:00 GPL_EXCEPTION_ADDENDUM.TXT
-rw-r--r--  1 mixthoor mixthoor  3637 Jul  3 16:00 GPL_EXCEPTION.TXT
-rw-r--r--  1 mixthoor mixthoor  1111 Jul  3 16:00 __init__.py
-rw-r--r--  1 mixthoor mixthoor 18768 Jul  3 16:00 LICENSE.GPL2
-rw-r--r--  1 mixthoor mixthoor 35553 Jul  3 16:00 LICENSE.GPL3
-rw-r--r--  1 mixthoor mixthoor 19366 Jul  3 16:00 NEWS
-rw-r--r--  1 mixthoor mixthoor  2057 Jul  3 16:00 OPENSOURCE-NOTICE.TXT
drwxr-xr-x  2 mixthoor mixthoor  4096 Jul  3 16:00 pylupdate
-rw-r--r--  1 mixthoor mixthoor  9240 Jul  3 16:00 pyqtconfig.py.in
drwxr-xr-x  2 mixthoor mixthoor  4096 Jul  3 16:00 pyrcc
drwxr-xr-x  3 mixthoor mixthoor  4096 Jul  3 16:00 pyuic
drwxr-xr-x  8 mixthoor mixthoor  4096 Jul  3 16:00 qpy
-rw-r--r--  1 mixthoor mixthoor  2639 Aug 22 08:52 qtdirs.cpp
-rw-r--r--  1 mixthoor mixthoor  6822 Aug 22 08:52 qtdirs.mk
-rw-r--r--  1 mixthoor mixthoor   174 Aug 22 08:52 qtdirs.pro
-rw-r--r--  1 mixthoor mixthoor  1769 Jul  3 16:00 README
drwxr-xr-x 22 mixthoor mixthoor  4096 Jul  3 16:00 sip
-rw-r--r--  1 mixthoor mixthoor   365 Jul  3 16:00 THANKS


Code:
[email protected]:~/Multimedia/Download/Network/GNS3_beta1/PyQt-x11-gpl-4.11.1$ python3.4 configure.py
Determining the layout of your Qt installation...
Error: Failed to determine the layout of your Qt installation. Try again using
the --verbose flag to see more detail about the problem.


and the whole message is:
Code:
[email protected]:~/Multimedia/Download/Network/GNS3_beta1/PyQt-x11-gpl-4.11.1$ python3.4 configure.py --verbose
Determining the layout of your Qt installation...
/usr/bin/qmake -o qtdirs.mk qtdirs.pro
make -f qtdirs.mk
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. -o qtdirs.o qtdirs.cpp
qtdirs.cpp:1:28: fatal error: QCoreApplication: No such file or directory
compilation terminated.
make: *** [qtdirs.o] Error 1
Error: Failed to determine the layout of your Qt installation. Try again using
the --verbose flag to see more detail about the problem.




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

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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