Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 12.0.4 Issue Pyside/PyQt #39

Closed
istudios-admin opened this issue Dec 18, 2012 · 13 comments
Closed

Ubuntu 12.0.4 Issue Pyside/PyQt #39

istudios-admin opened this issue Dec 18, 2012 · 13 comments

Comments

@istudios-admin
Copy link

I don't know whats wrong here, i've got another machine just like this one and it works like a charm.

I'm getting this output.

CGRU_VERSION 1.6.8 : '/opt/cgru'
Traceback (most recent call last):
File "/opt/cgru/lib/python/cgrupyqt.py", line 9, in
PythonQt = import('PySide', globals(), locals(), List, -1)
ImportError: No module named PySide

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/cgru/utilities/keeper/keeper.py", line 14, in
from cgrupyqt import QtGui
File "/opt/cgru/lib/python/cgrupyqt.py", line 12, in
PythonQt = import('PyQt4', globals(), locals(), List, -1)
ImportError: No module named PyQt4

Any ideas?

@timurhai
Copy link
Member

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.

@istudios-admin
Copy link
Author

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..

@timurhai
Copy link
Member

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

@istudios-admin
Copy link
Author

Yes, that is correct.

@timurhai
Copy link
Member

open terminal and type

python

than type

import PyQt4

is there any error?

@istudios-admin
Copy link
Author

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$

@timurhai
Copy link
Member

Try the same, but use

python3

@istudios-admin
Copy link
Author

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..

@timurhai
Copy link
Member

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).

@istudios-admin
Copy link
Author

I''l try that, thx!

@timurhai
Copy link
Member

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

@timurhai
Copy link
Member

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.

@istudios-admin
Copy link
Author

That worked ;) Thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants