Giter Site home page Giter Site logo

Ubuntu 12.0.4 Issue Pyside/PyQt about cgru HOT 13 CLOSED

cgru avatar cgru commented on May 20, 2024
Ubuntu 12.0.4 Issue Pyside/PyQt

from cgru.

Comments (13)

timurhai avatar timurhai commented on May 20, 2024

sudo apt-get install python-qt4

It should be installed during cgru package installation.
http://cgru.info/#install_linuxpackages.html
Did you installed cgru package? Or just afanasy-server afanasy-render afanasy-qtgui? Or may be your internet connection failed during cgru installation.

from cgru.

istudios-admin avatar istudios-admin commented on May 20, 2024

Tried that too, yes ran install_cgru.sh

Maybe, but i've tried to reinstall it a couple of times just for that reason, and it's the same thing.
Very strange..

from cgru.

timurhai avatar timurhai commented on May 20, 2024

So you have python-qt4 package installed and cgru has that error?

from cgru.

istudios-admin avatar istudios-admin commented on May 20, 2024

Yes, that is correct.

from cgru.

timurhai avatar timurhai commented on May 20, 2024

open terminal and type

python

than type

import PyQt4

is there any error?

from cgru.

istudios-admin avatar istudios-admin commented on May 20, 2024

Nope, no error

istudios@ISCPU05:/opt/cgru$ python
Python 2.7.3 (default, Aug 1 2012, 05:14:39)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import PyQt4

istudios@ISCPU05:/opt/cgru$

from cgru.

timurhai avatar timurhai commented on May 20, 2024

Try the same, but use

python3

from cgru.

istudios-admin avatar istudios-admin commented on May 20, 2024

istudios@ISCPU05:/opt/cgru$ python3
Python 3.2.3 (default, Oct 19 2012, 20:10:41)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import PyQt4
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named PyQt4

There was something..

from cgru.

timurhai avatar timurhai commented on May 20, 2024

On start (in setup_python.sh) there is a check for python3 command, and if exists it will be used.
Install PyQt4 for python3 (or try to remove/rename that file).

from cgru.

istudios-admin avatar istudios-admin commented on May 20, 2024

I''l try that, thx!

from cgru.

timurhai avatar timurhai commented on May 20, 2024

In ubuntu 12.04 there is a native python3-pyqt4 package ( i am using this os too )

from cgru.

timurhai avatar timurhai commented on May 20, 2024

For example, i simply created setup_python2.sh file in cgru:

#!/bin/bash

export CGRU_PYTHONEXE="python"

This will force not to use python3 even if it exists.

from cgru.

istudios-admin avatar istudios-admin commented on May 20, 2024

That worked ;) Thx!

from cgru.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.