installing prerequisites on Ubuntu 14.0.4

Asked by mohsen

In the name of God

Hi all

when i want to install yade in my ubuntu 14.0.4, i encountered an error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libpython2.7-stdlib' instead of 'python-argparse'
E: Unable to locate package python-pyqt4
E: Unable to locate package python-pyqt4.qtwebkit
E: Couldn't find any package by regex 'python-pyqt4.qtwebkit'
E: Unable to locate package python-pyqt4.qtsvg
E: Couldn't find any package by regex 'python-pyqt4.qtsvg'

I tried so much with no results. i changed pyqt5 to pyqt4 based on a recommendation found in Launchpad.

Any idea

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Robert Caulk (rcaulk) said :
#1

Hello,

It would be helpful if to know your method of installation...

I guess based on the error I am assuming you are trying to install yadedaily? The error says you don't have these packages. Have you tried installing these packages:

sudo apt-get install python-pyqt5 python-pyqt5.qtwebkit python-pyqt5.qtsvg?

>I tried so much with no results.

It is worth writing exactly what you tried to help other people understand the issue more quickly. Please elaborate.

>i changed pyqt5 to pyqt4 based on a recommendation found in Launchpad.

Where did you make this change?

Revision history for this message
mohsen (agha-mohsena) said :
#2

Hi Robert
No, I am installing yade via compiling.
I tried the command you wrote, this is the error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python-pyqt5
E: Unable to locate package python-pyqt5.qtwebkit
E: Couldn't find any package by regex 'python-pyqt5.qtwebkit'
E: Unable to locate package python-pyqt5.qtsvg
E: Couldn't find any package by regex 'python-pyqt5.qtsvg'

Bout the last question:
in installing prerequisites, i change 5 to 4 wheter i found 'pqt4':
https://yade-dem.org/doc/installation.html#prerequisites
i did it based on this answer:
https://answers.launchpad.net/yade/+question/295554

regards

Revision history for this message
Robert Caulk (rcaulk) said :
#3

Thank you for specifying your method of installation.

Did you set the -DUSE_QT5=0 flag during cmake as the other thread suggests?

Revision history for this message
mohsen (agha-mohsena) said :
#4

I have not reach the compiling step.
in the beginning of installing prerequisites, the process was interrupted due that error!
so I think you mean that i should remove the packages including pyqt5 which is suggested in :
https://yade-dem.org/doc/installation.html#prerequisites

Am i right?

Revision history for this message
mohsen (agha-mohsena) said :
#5

I also can not install pyqt4.
i followed the steps in :
http://pyqt.sourceforge.net/Docs/PyQt4/installation.html
i think i need a more straightforward way,although what is written there is quit easy:
first i installed SIP
second pyqt
------------
for example when i write in terminal 'make' for compiling SIP, this lines is displayed,
a@a:~/SIP/sip-4.19.2$ make
make[1]: Entering directory `/home/a/SIP/sip-4.19.2/sipgen'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/a/SIP/sip-4.19.2/sipgen'
make[1]: Entering directory `/home/a/SIP/sip-4.19.2/siplib'
gcc -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o siplib.o siplib.c
siplib.c: In function ‘slot_richcompare’:
siplib.c:10968:60: warning: ‘st’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     if ((f = (PyObject *(*)(PyObject *,PyObject *))findSlot(self, st)) == NULL)
                                                            ^
gcc -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o apiversions.o apiversions.c
gcc -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o descriptors.o descriptors.c
gcc -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o qtlib.o qtlib.c
qtlib.c: In function ‘sip_api_connect_rx’:
qtlib.c:474:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
     Py_INCREF(Py_True);
     ^
qtlib.c: In function ‘sip_api_disconnect_rx’:
qtlib.c:502:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
             Py_INCREF(Py_False);
             ^
qtlib.c:526:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
     Py_INCREF(Py_True);
     ^
qtlib.c: In function ‘sip_api_save_slot’:
qtlib.c:646:17: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
                 Py_INCREF(Py_True);
                 ^
gcc -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o threads.o threads.c
gcc -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o objmap.o objmap.c
gcc -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o voidptr.o voidptr.c
gcc -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o array.o array.c
g++ -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -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/a/SIP/sip-4.19.2/siplib'

------------
i think there is no error when making and installing.
However again the mentioned error is shown

Revision history for this message
Anton Gladky (gladky-anton) said :
#6

Hi, do you really need to compile it? Is it not enough for you to use
packaged version?

Cheers

Anton

--

Anton

Revision history for this message
Robert Caulk (rcaulk) said :
#7

>I have not reach the compiling step.
Just to clarify, these errors appear before you execute cmake command?

In case the prepackaged version does not suit your needs, yes you might consider uninstalling all pyqt# packages and then reinstalling pyqt4 packages with:

sudo apt-get install python-pyqt4 pyqt4-dev-tools python-pyqt4.qtwebkit

You are right, this is the most straightforward way to install these packages. Compiling pyqt from sources is not likely going to help simplify your situation :-)

Cheers,

Robert

[1]https://yade-dem.org/doc/installation.html#packages

Revision history for this message
mohsen (agha-mohsena) said :
#8

Hi again guys
Sorry to be late
@ Anton:
Yes, I need to use saved files in different simulations, so the same version should be installed.

@ Robert
Yes, the errors display when i enter in command line:

sudo apt-get install cmake git freeglut3-dev libloki-dev \
libboost-all-dev fakeroot dpkg-dev build-essential g++ \
python-dev ipython python-matplotlib libsqlite3-dev python-numpy python-tk gnuplot \
libgts-dev python-pygraphviz libvtk6-dev python-numpy libeigen3-dev \
python-xlib python-pyqt5 pyqt5-dev-tools python-pyqt5.qtwebkit gtk2-engines-pixbuf python-argparse python-pyqt5.qtsvg \
libqglviewer-dev python-imaging libjs-jquery python-sphinx python-git python-bibtex \
libxmu-dev libxi-dev libcgal-dev help2man libbz2-dev zlib1g-dev python-minieigen

---
How to uninstall them?

Revision history for this message
Robert Caulk (rcaulk) said :
#9

Hello,

Anton is asking you why you cannot simply use sudo apt-get install yade, instead of compiling from sources as you appear to be doing now. So, is there a reason the prepackaged version does not suit your needs?

You can uninstall packages by using sudo apt-get remove packagename uninstalls a package.

Revision history for this message
Klaus Thoeni (klaus.thoeni) said :
#10

Hi Mohsen,

from my understanding you are installing/compiling an old version because you have old simulation files to load. If so, you should check the prerequisites for your specific version, i.e., check this file [1] for your specific version. It is regularly updated so the one online is only valid for the newest versions of yade/ubuntu/etc.

HTH
Klaus

[1] https://github.com/yade/trunk/blob/master/doc/sphinx/installation.rst

Revision history for this message
mohsen (agha-mohsena) said :
#11

OK!
got it!
Thanks every one.

Can you help with this problem?

Provide an answer of your own, or ask mohsen for more information if necessary.

To post a message you must log in.