PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 331 - cannot install pyside-0.4.0-py2.6.exe in windows
: cannot install pyside-0.4.0-py2.6.exe in windows
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: PySide
: 0.4.0
: PC MS Windows XP/Vista/7
: P5 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-08-31 20:47 EEST by kim.dohhyoung
Modified: 2010-09-10 19:21 EEST (History)
10 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kim.dohhyoung 2010-08-31 20:47:03 EEST
Hi, 

I tried to install pyside 0.4.0 for python 2.6 in windows, but failed.

My OS is windows 7 and I and using python 2.6 (installed in C:\Python26)
I downloaded pyside-0.4.0-py2.6.exe and qt libraries from
http://www.pyside.org/downloads .

When I executed the pyside-0.4.0-py2.6.exe file, it show the following error
message:
"PySide requires Python 2.6 and it was not found in your system. Install it and
try again."

As I told you, I am already using python 2.6 and pyqt. I don't know what is the
problem.
Comment 1 Hugo Parente Lima 2010-09-01 10:29:35 EEST
How did you installed Python on your system? zip file or windows installer?

There is this key on your windows registry:

HKEY_LOCAL_MACHINE\Software\Python\PythonCore\2.6\InstallPath
Comment 2 Kevin Mullins 2010-09-01 13:28:37 EEST
I'm betting you have the AMD64 build of Python 2.6 installed on a Windows 7
64-bit.  The pyside install is 32-bit and is trying to find the 32-bit install
of Python 2.6 which would be under the key
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Python\PythonCore\2.6\InstallPath.

Kevin
Comment 3 Hugo Parente Lima 2010-09-01 15:13:23 EEST
Kevin is right, the installer is for Windows 32bits.
Comment 4 kim.dohhyoung 2010-09-01 20:03:33 EEST
My system is 32bit and I installed python and its packages using python (x,y)
2.6.5.1.

I checked the registry as Hugo and Kevin said and found that there is no
registry information for python 2.6. After fixing the registry, I succeeded in
installing PySide. 

Thank you.
Comment 5 Matti Airas 2010-09-02 04:09:07 EEST
I'm reopening since the Python(x,y) installation issue appears to be a
recurring one. Either a bug against Python(x,y) should be opened, or a
workaround implemented.
Comment 6 Matti Airas 2010-09-02 04:09:45 EEST
*** Bug 337 has been marked as a duplicate of this bug. ***
Comment 7 halida 2010-09-02 04:26:09 EEST
I think windows installer should let user can choose Python path.
Comment 8 Hugo Parente Lima 2010-09-02 11:22:44 EEST
(In reply to comment #7)
> I think windows installer should let user can choose Python path.

You are right, if the installed was unable to detect the Python install
location it should ask the user where Python was installed.
Comment 9 Hugo Parente Lima 2010-09-10 14:14:57 EEST
Fixed in commit
packaging/88e23fa043fd296a4d0e494cd11818725ff07355

The new behaviour is:

- Try to find Python installation.
- Ask the used where Python was installed, but pre-filling the edit box with
the value found, if any.
- Test if the Python directory informed by the used is a valid one, running the
command:

<PYTHON_DIR>\python.exe -c "import sys;assert '%d.%d' % sys.version_info[:2] ==
'<PYTHON_VERSION>'"