kujira70 / pythonxy

Automatically exported from code.google.com/p/pythonxy
0 stars 0 forks source link

pyside fails to import propery #268

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have the latest version of pythonxy, as well as Qt 4.7.3 with the binaries 
path in my Windows7 path variable. However:

In [1]: import PySide

In [2]: PySide.QtCore
Out[2]: <module 'PySide.QtCore' from 
'C:\Python26\lib\site-packages\PySide\QtCore.pyd'>

In [3]: PySide.QtGui
------------------------------------------------------------
Traceback (most recent call last):
  File "<ipython console>", line 1, in <module>
AttributeError: 'module' object has no attribute 'QtGui'

In [4]: from PySide import QtGui
------------------------------------------------------------
Traceback (most recent call last):
  File "<ipython console>", line 1, in <module>
ImportError: DLL load failed: The specified procedure could not be found.

It would seem that only QtCore is imported correctly. QtGui however DOES import 
correctly in a simple Windows command prompt. 

I have reinstalled python, python xy, PySide several times (so I may have 
broken installs lying around). But it seems to be related to Pythonxy.

Original issue reported on code.google.com by jdt.br...@gmail.com on 16 Jul 2011 at 12:22

GoogleCodeExporter commented 9 years ago
I have resolved this to be on my computer. Sorry for the unnecessary posts

Original comment by jdt.br...@gmail.com on 17 Jul 2011 at 4:47

GoogleCodeExporter commented 9 years ago
For future reference, what was the cause and fix?

Original comment by grizzly.nyo on 17 Jul 2011 at 3:20

GoogleCodeExporter commented 9 years ago
I haven't actually fixed my computer yet, its more to the fact that I think
narrowed it away from python xy. I think I have a broken Qt of an old
version on my computer which is causing the problem but it will take a few
good hours to be 100% sure. I can post again when I actually get it all
working.

I noticed that the ipythons that came with xy had the same problem, but
because the windows command prompt worked I thought maybe installing Eric
IDE would fix it. I noticed during install that Eric didn't detect the
version of Qt I thought i had installed and suffered the same issue.
Furthermore I get what appears to be a minor error upon reinstall of pyside
whereas everything else in xy is working flawlessly.

So it seems far more likely my computer

JB - Sent from my phone.

Original comment by jdt.br...@gmail.com on 17 Jul 2011 at 10:34

GoogleCodeExporter commented 9 years ago

Original comment by grizzly.nyo on 21 Jul 2011 at 5:20