Kilian / Trimage

A cross-platform tool for optimizing PNG and JPG files.
http://trimage.org
MIT License
706 stars 55 forks source link

CentOS 6 - PyQt4.QtCore import * error #31

Closed mhamzas closed 5 years ago

mhamzas commented 10 years ago

Hi all, I have just installed trimage on centos 6 and i got this when running the following command.

trimage -v

Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/trimage/trimage.py", line 14, in from PyQt4.QtCore import * ImportError: No module named PyQt4.QtCore

Kilian commented 10 years ago

have you installed all the requirements?

mhamzas commented 10 years ago

Yeah installed.. Issue resolved now.. But i am facing another issue.. i.e.

/usr/bin/xvfb-run -a trimage -v

pngcrush 1.7.66, uses libpng 1.5.17 and zlib 1.2.8 Check http://pmt.sf.net/ for the most recent version.

[Waiting and waiting.. :P]

On Thu, Sep 25, 2014 at 12:15 PM, Kilian Valkhof notifications@github.com wrote:

have you install all the requirements?

— Reply to this email directly or view it on GitHub https://github.com/Kilian/Trimage/issues/31#issuecomment-56782439.

Kilian commented 10 years ago

Did you install using the setup.py? It should take care of all dependencies. I am not sure if pngcrush is in centos 6' repositories.

mhamzas commented 10 years ago

Yes i did that.. Let me try it again

On Thu, Sep 25, 2014 at 12:25 PM, Kilian Valkhof notifications@github.com wrote:

Did you install using the setup.py? It should take care of all dependencies. I am not sure if pngcrush is in centos 6' repositories.

— Reply to this email directly or view it on GitHub https://github.com/Kilian/Trimage/issues/31#issuecomment-56783163.

mhamzas commented 10 years ago

[root@test Trimage]# trimage trimage.py: cannot connect to X server

On Thu, Sep 25, 2014 at 12:27 PM, Muhammad Hamza Siddiqui < mhamzasite@gmail.com> wrote:

Yes i did that.. Let me try it again

On Thu, Sep 25, 2014 at 12:25 PM, Kilian Valkhof <notifications@github.com

wrote:

Did you install using the setup.py? It should take care of all dependencies. I am not sure if pngcrush is in centos 6' repositories.

— Reply to this email directly or view it on GitHub https://github.com/Kilian/Trimage/issues/31#issuecomment-56783163.

Kilian commented 10 years ago

Trimage requires an X-server due to it's QT dependency, you can fake it using the

$ /usr/bin/xvfb-run -a

you just used, though this is untested.

mhamzas commented 10 years ago

yes i am using it but but it stucks ..

[root@test Trimage]# /usr/bin/xvfb-run -a trimage -v pngcrush 1.7.66, uses libpng 1.5.17 and zlib 1.2.8 Check http://pmt.sf.net/ for the most recent version.

On Thu, Sep 25, 2014 at 12:30 PM, Kilian Valkhof notifications@github.com wrote:

Trimage requires an X-server due to it's QT dependency, you can fake it using the

$ /usr/bin/xvfb-run -a

you just used, though this is untested.

— Reply to this email directly or view it on GitHub https://github.com/Kilian/Trimage/issues/31#issuecomment-56783654.

Huluti commented 5 years ago

Could be closed I think since the first issue is solved @Kilian