Hi
When I run main.py I got this error how can I fix it?
I'm using https://github.com/PicciMario/iPhone-Backup-Analyzer-2

/
Traceback (most recent call last):
  File "./main.py", line 44, in <module>
    from PySide import QtCore, QtGui
ImportError: No module named PySide

I appreciate your help

Did you import it? Is PySide.py in the same directory as your main.py?

Thanks for your answer
There is no PySide.py in the folder!where can I download it?

I'm using ubuntu or Debian

Perhaps a sudo apt-get install python-pyside (or python3-pyside).

Well, install it.

apt-get instal python-pyside or install it from pypi using pip (apt-get install python-pip then pip install pyside). It probably has other dependencies too, like PIL and QT.

The GUI toolkit Pyside is a package and should be in folder side_packages. It is a "third party" package that needs to be installed by you.

I install it "sudo apt-get install python-pyside"
But still not work,got same error!!!

If you have pip installed, check with ...

''' modules_pip101.py
list all the installed modules
'''

import pip

for item in pip.get_installed_distributions():
    print(item)

On my system, PySide is in the folder /usr/lib/python2.7/dist-packages

Check that this directory is in the python path

>>> import sys
>>> '/usr/lib/python2.7/dist-packages' in sys.path
True

If it is not in the python path, set the environment variable PYTHONPATH.

You can also find PySide in a terminal with

sudo apt-get install mlocate
sudo updatedb
locate PySide

Linux sounds more and more interesting. Seems to have a lot of nice tools.

commented: it does! +14

Thanks for all answer.
Its seems I got another error when I ran the script

https://github.com/PicciMario/iPhone-Backup-Analyzer-2

Traceback (most recent call last):
  File "main.py", line 48, in <module>
    from main_window import Ui_MainWindow
ImportError: No module named main_window

Thanks
Is there any other solution?
The Phone-Backup-Analyzer version 1.5 working very fine but Phone-Backup-Analyzer version 2 still not work for me!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.