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 351 - QtNetwork problem with binding
: QtNetwork problem with binding
Status: CLOSED WONTFIX
Product: PySide
Classification: Unclassified
Component: QtNetwork
: 0.6.1
: PC MS Windows XP/Vista/7
: P3 major
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-09-09 13:45 EEST by vijay shan
Modified: 2010-09-10 19:26 EEST (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vijay shan 2010-09-09 13:45:49 EEST
QtNetwork bindings seem to not exist 
from python command line import pyside
PySide.__dict__ throws a key error when we look for QtNetwork
Comment 1 Hugo Parente Lima 2010-09-10 14:29:53 EEST
You need to import the module before doing it, because the module is only
loaded when you import it, try:

import PySide.QtNetwork
print PySide.__init__["QtNetwork"]

and it'll work.

The only way to fix it is loading all PySide modules when loading PySide
module, by this will be a big waste of memory, so we'll never do that.

If you want just know the existing modules in PySide, use the __all__
attribute.
Comment 2 vijay shan 2010-09-10 15:02:33 EEST
I did. i just was executing code that was in the pyside examples

import sys
from PySide.QtCore import *
from PySide.QtGui import *
from PySide.QtWebKit import *

it would error out on QtWebkit. then upon further investigation i narrowed it
down to QtNetwork.
Comment 3 Hugo Parente Lima 2010-09-10 15:13:15 EEST
But the QtNetwork module is there, and working, at least all unit tests pass on
Windows and Linux.
Comment 4 vijay shan 2010-09-10 15:15:15 EEST
The weird part is that all the modules that don't need qtnetwork seem to be
working when i try to access qtnetwork it starts failing. I will investigate a
bit more. New to this but would like to help a bit more