problem in freezing python script...

2009-12-09 Thread Jebagnana Das
Hello all,

 I'm using cxfreeze to freeze the python script in my ubuntu
9.04 machine. Now when i tried to execute the binary in mandriva 2008 the
error message is..

File
"/usr/local/lib/python3.1/site-packages/cx_Freeze/initscripts/Console3.py",
line 27, in 
  File "test.py", line 7, in 
  File "ExtensionLoader_PyQt4_QtGui.py", line 12, in 
ImportError: /home/oputils/dist/PyQt4.QtGui.so: *undefined symbol:
_ZTI19QStyledItemDelegate*

 when i searched the python mailing list i found this issue has been
already raised http://www.mail-archive.com/pyt...@py.cz/msg04278.html and is
in french language(i think) which i don't know.. Can any of you restate this
in english?? Your help would be much appreciated..

Regards,
Jebagnanadas A.
-- 
http://mail.python.org/mailman/listinfo/python-list


problem in installing wxwidgets for python..

2009-11-04 Thread Jebagnana Das
Hello friends,
  I've tried to install wxwidgets in my mandriva 2009 spring
for GUI interaction with python. In the installation instruction it said
that i need gtk+ library. So i downloaded GTK+. When i configured GTK+ i got
the message

checking for BASE_DEPENDENCIES... configure: error: Package
requirements (glib-2.0 >= 2.21.3atk >= 1.13.0pango >= 1.20
cairo >= 1.6) were not met:

Requested 'glib-2.0 >= 2.21.3' but version of GLib is 2.20.1

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables BASE_DEPENDENCIES_CFLAGS
and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


Then i downloaded glib2.21.3,atk 1.13.0,pango 1.20 and cairo 1.6. I
installed all the packages using the following commands.

tar xvzf filename.tar.gz
cd folder
./configure
make
make install

I've not specified anf options like --prefix and i installed in the folder
itself.
when i tried to install gtk+ after installing all this it showed the same
error. What should i do to install wxwidgets? Plz. reply as soon as
possible.. Coz. i've to finish my proj. quickly.. Thanks and regards...
-- 
http://mail.python.org/mailman/listinfo/python-list


Communication between python and wxWidgets.. Help needed...

2009-11-19 Thread Jebagnana Das
Hi Friends,

I want to thank you all for doing a great job.. I seek your
suggestions and valuable guidance regarding two things.

1) I'm using python 3.1.1 and wxWidgets for GUI development in my project ..
I want to have a half-duplex communication between widgets and python(say
passing something from wxWidgets to python and processing there and sending
it back to display the results in widgets). When i googled around i found
that we have to have SWIG or Boost::Python and some other third party
applications to make this to work.. I'm wondering why it's really tough to
establish a communication between the two though wxWidgets which is an
excellent tool is mainly projected as a GUI toolkit especially for c++ and
python and python is described as a powerful scripting language.. Can u
suggest an efficient way by which i could make these two programs to
interact(back and forth) easily??

2) My second question is even if i did that successfully if i want to
convert my project into an executable file how would i do that? (Bcoz. i
will be having two executables or binaries in linux one for python and other
for widgets) Do i need to convert it to lib or dll file with respect to
python and c++ or is there any other way for making a build-script? What are
the tools and libraries needed(like cx-freeze,pyWin32) to accomplish this??

 Please give me some useful links... All of your suggestions are highly
welcomed..

Thanks & Regards,
Jebagnanadas A,
Python-Developer.
-- 
http://mail.python.org/mailman/listinfo/python-list


problem with pyqt.. help please...

2009-11-21 Thread Jebagnana Das
Hi friends,
 I've recently changed to ubuntu 9.04.. I've not had any problem
with the installation of pyqt as it is available from the ubuntu
repositories with umpteen number of packages.. Anyhow i've to download
tarball file for python 3.1 and installed it.. I found that PyQt4 supports
python 3.1(Am i right?)..

I wanted to check the pyqt installation with a sample program..

import sys
from PyQt4 import QtGui
app=QtGui.QApplication(sys.argv)
widget=QtGui.QWidget()
widget.resize(250,150)
widget.setWindowTitle('Simple')
widget.show()
sys.exit(app.exec_())

when i issued the command
$python simple.py
it worked perfectly since it's executed with 2.6 installation..
But when i tried to execute it with
$python3 simple.py
it showed the error like
ImportError: No module named PyQt4
So i searched the sys.path for 2.6 and included
/usr/lib/python2.6/dist-packages
in python3 sys.path...
Now when i tried to run this with python3  the error is like..
ImportError: /usr/lib/python2.6/dist-packages/PyQt4/QtGui.so: undefined
symbol: PyString_FromString
I got the same error when i tried to execute another program... So can u
please tell me how to solve this problem?? Am i heading in the right
direction???...

Thanks & Regards...

Jebagnanadas,
Python Learner..
-- 
http://mail.python.org/mailman/listinfo/python-list


pynotify for python 3.1.. Help Please..

2010-04-02 Thread Jebagnana Das
Hello all,

 I'm trying to display system notifications in ubuntu.. I've tested
pynotify in python 2.6 and it's working fine.. I want to know if i can do
the same with python 3? I tried but there is no module named pynotify error
is displayed.. Any of your help would be much appreciated..
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: pynotify for python 3.1.. Help Please..

2010-04-02 Thread Jebagnana Das
Thank you for your reply. Unfortunately pynotify is not available as a .py
file but as an .so (shared library) file. In both python 2.5 and 2.6
installations it can be found at
/var/lib/python-support/python2.x/gtk-2.0/pynotify/__init__.py ,
_pynotify.so.

  I think it was written in native c or c++ which is then converted
to a shared library to use with python.. Unless the source code in c is
available, we can't port it to python 3.. I can't find the authors name or
any license agreement there..
By luck if any of the authors of pynotify here please answer me..

 When will the .so for python3 will be released?

 or Is there any alternate way of achieving this??

Regards,
Jeba.

Xav : You can simply call me as jeba.


Hi Jebamnana,
>
> You'll probably have to copy the pynotify contents to the Python 3.1
> folder. (under Libs\site-packages). You should be able to find the folder in
> the Python 2.6 paths.
>
> Once you do that, you can try to use it. But I don't know if pynotify will
> be able to run with Python 3.1. For instance, you might have to look into
> the source code and make some changes.
>
> Better to consult with the author(s) of pynotify and consult them about the
> difficulty to port to Py3.
>
> Cheers,
> Xav
>
> Hello all,
>>
>>  I'm trying to display system notifications in ubuntu.. I've
>> tested pynotify in python 2.6 and it's working fine.. I want to know if i
>> can do the same with python 3? I tried but there is no module named pynotify
>> error is displayed.. Any of your help would be much appreciated..
>>
>>
>>
> Hi Jebamnana,
>>
>
> Jebagnana*
>
> Sorry.
>
> -Xav
>
-- 
http://mail.python.org/mailman/listinfo/python-list