JUICERECIEVER

I built a deb for Debian/Ubuntu from CVS tree of this PodCast SoftWare in PythoN, check on my repo :

http://ppa.launchpad.net/rzr-team/ubuntu/pool/main/j/juicereceiver-snapshot/

@tag: Python Error : ImportError

Error:

a install python-wxgtk2.6
/opt/juicereceiver-snapshot/iPodderGui.py 
#|
/opt/juicereceiver-snapshot/ipodder/core.py:27: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  from sha import *
Traceback (most recent call last):
  File "/opt/juicereceiver-snapshot/iPodderGui.py", line 39, in <module>
    import gui.iPodderWindows
  File "/opt/juicereceiver-snapshot/gui/iPodderWindows.py", line 5, in <module>
    import gui.tree
  File "/opt/juicereceiver-snapshot/gui/tree.py", line 15, in <module>
    from ipodder import outlines
  File "/opt/juicereceiver-snapshot/ipodder/__init__.py", line 22, in <module>
    from ipodder.core import Enclosure 
  File "/opt/juicereceiver-snapshot/ipodder/core.py", line 36, in <module>
    from ipodder import configuration
  File "/opt/juicereceiver-snapshot/ipodder/configuration.py", line 15, in <module>
    import players
  File "/opt/juicereceiver-snapshot/ipodder/players.py", line 9, in <module>
    import misc
  File "/opt/juicereceiver-snapshot/ipodder/misc.py", line 179
    def encode(msg, encoding=None, replace=True, with=None): 
...
ImportError: No module named localization
touch localization/__init__.py
PACKAGE=juicereceiver
cvs -d:pserver:anonymous@${PACKAGE}.cvs.sourceforge.net:/cvsroot/${PACKAGE} login && \
 cvs -z3 -d:pserver:anonymous@${PACKAGE}.cvs.sourceforge.net:/cvsroot/${PACKAGE}  co -d ${PACKAGE}-snapshot  .
/opt/juicereceiver-snapshot/iPodderGui.py
Traceback (most recent call last):
File "/opt/juicereceiver-snapshot/iPodderGui.py", line 18
, in <module> import wx

ToDo :

WXWidgets

On Debian

apt-get install wxwin2.4-headers libwxbase2.4-dev libwxgtk2.4-dev

Tools :

WX @ [[Windows]]

to use OpenGL before recompiling wx
locate setup.h
#define wxUSE_GLCANVAS 1

Link :

opengl32.lib wxmsw.lib
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib  odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib
/nologo /subsystem:windows /incremental:no /pdb:"Release/wxgltest.pdb" /machine:I386 /out:"Release/wxgltest.exe"

else you'll get this error :

MSVCRT.lib(crtexe.obj) : error LNK2001: unresolved external symbol [[_main]]

WX @ [[Cygwin]] @ 20040513

$ ./configure --prefix=$HOME/opt/cygwin/wxWindows-2.4.2 --with-opengl \
&& make && make install && make clean
...
c++ -shared -Wl,--out-implib,lib/wxmsw242.dll.a -o lib/wxmsw242.dll  \
... glcanvas.o  ... -Wl,--version-script,./version-script ... \
*lopengl32 -lglu32
$ ls /opt/wxwidgets/lib/
libwx_msw-2.4.dll  libwx_msw-2.4.dll.0  wx  wxmsw242.dll  wxmsw242.dll.a
$ cd wxWindows-2.4.2/samples/opengl/penguin
$ $EDIT Makefile
#LIBRARIES=$(top_builddir)/lib/wxmsw_gl242.dll $(OPENGLLIBS)
LIBRARIES=`wx-config --libs --gl-libs`
$ make
c++  -o penguin.exe penguin.o lw.o trackball.o  ../../../lib/wxmsw242.dll -Wl,--version-script,../../../version-script -lpng -ljpeg -ltiff -lz -lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32 -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lopengl32 -lglu32  `wx-config --libs --gl-libs`  penguin_resources.o
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld: cannot find -lwxmsw_gl242
$ $EDIT Makefile
#LIBRARIES=$(top_builddir)/lib/wxmsw_gl242.dll $(OPENGLLIBS)
LIBRARIES=`wx-config --libs` $(OPENGLLIBS)
c++  -o penguin.exe \
penguin.o lw.o trackball.o \
../../../lib/wxmsw242.dll -Wl,--version-script,../../../version-script \
*lpng -ljpeg -ltiff -lz \
*lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32 \
*lctl3d32 -ladvapi32 -lwsock32 -lkernel32 -luser32 -lgdi32 -lcomdlg32 \
*lopengl32 -lglu32  `wx-config --libs` -lopengl32 -lglu32 \
penguin_resources.o
$ ./penguin.exe # it works finally

ToDo

WXWidgets bug

$ uname
CYGWIN_NT-5.0
$ gcc --version
gcc (GCC) 3.3.1 (cygming special)
$ autoconf --version
autoconf (GNU Autoconf) 2.59
$ automake --version
automake (GNU automake) 1.7.9
./configure --prefix=$HOME/opt/cygwin/wxWindows-2.5.1 --with-opengl && make && make install && make clean
...
config.status: error: cannot find input file: samples/taskbar/Makefile.in

MISC

MORE

wx.txt · Last modified: 2022/04/16 12:24 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki