| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Comments:
<0> When sys.path includes c:\hella\lib\python, you do 'import Hellanzb' and it says 'ImportError: No module named twisted.copyright'? <0> or did you install twisted as well? <1> no it doesn't this time <1> but I already installed in Scripts another <1> don't know which one is getting loaded now <1> who care <1> thanks Yhg1s <0> well, hellanzb is really for unix clients. you need to do some Python programming yourself (or get someone else to do it) in order to use it on Windows. <2> can someone help? I have compiled wxpython and it tells me to modify the <2> LD_LIBRARY_PATH (or equivalent) environment variable. What should i do? <2> import wx doesn't work :/ <0> hawking: what platform? How did you compile? Does 'import wx' result in 'module not found' or an error about undefined modules? Did you install wx yet, or are you running from the build dir? <1> this is rediculous <1> now, copyright module is missing <0> _joey: you're trying to run a UNIX program on Windows. Yes, that is rediculous. <1> yeah I know
<2> Yhg1s : Linux , I compiled by getting the source from wxpython site and ./configure , make ,make install , import wx gives module not found <1> I won't h***le anymore :) THanks Yhg1s <0> _joey: no, twisted.copyright. You forgot to read the part about needing to install Twisted. www.twistedmatrix.com. But don't bother, after that, you'll get an error about the termios module being missing, and *that* isn't fixable (without digging into the code.) <0> hawking: and where did 'make install' install wx? <1> :) <2> Yhg1s : lemme see <2> yhg1s : usr/local/include/wx-2.6/ here I guess <2> yhg1s : yes there it is <0> hawking: did it install anything in /usr/lib/python<version>/site-packages? <0> hawking: or did it dump everything in /usr/local/lib/python<version>/ instead? <2> Yhg1s : lookin <2> Yhg1s : it dump everything to /usr/local/lib/wx <0> there is nothing in /usr/local/lib/python<version>? <1> Yhg1s by the way, hellanzb is an application that provides cool features in comparison to other usenet leeching apps <2> yes <2> nothing <0> _joey: time to ditch Windows, I guess. <2> Yhg1s : and in /usr/local/lib/wx there is just gtk2-ansi-release-2.6 <1> and guys are adding some new nifty features <0> hawking: and no wx.pth anywhere in /usr/lib/python<version> either? <2> Yhg1s : exactly <0> dunno then. wx forgot to set things up, or perhaps you missed a compile step. <2> hmm <1> Yhg1s Or maybe to learn a bit about python , get the script going on win32 and give it to the project <0> also a good choice. <3> I've a WebService inside mod-python like this: http://pastebin.com/543043 <3> How can I do to get the wsdl of this service ??? <3> location/script.py?wsdl doesn't work <4> Can I use a socket instance as the key to a dictionary? <4> or in general, can I use instances? <5> i think keys must bey strings <5> s/bey/be <4> thanks <5> you should try the address of the instance as the key, should work <4> yeah <2> Yhg1s : do you know how I can set LD_LIBRARY_PATH to /opt/wx/2.6/lib? <6> tld: keys can be any immutable object, as far as I know ... <4> koollman, bunches of thanks. :) makes my life a lot easier. :) <2> noone knows hot to set LD_LIBRARY_PATH? <7> export <6> tld: you should just try it, I have just done it, and it seems to work well ;) <4> koollman, good point. :) <4> thanks <8> tld: In general, you can use _anything_. <8> tld: Instances, cl***es, functions, modules... <4> makes things a lot more fun. <7> the hash function requires that dictionary keys be immutable <9> is there version of standard GzipFile, which does not require seekable underlying file? <8> tld: Fun only in conjunction with dataw0lf's comment ;) <7> heh. <4> :) <7> thus, this will work d = {(1, 2):1} <7> but this won't {([],[]):1} <4> fair nuf <0> hawking: LD_LIBRARY_PATH is for linking C/C++ libraries, it doesn't matter to python's import mechanism. <2> Yhg1s : well it's written under build.txt <2> I don't understand I did everything right according to there but I still can't import wx <2> Yhg1s : I recompiled it ... everything is in /opt/wx/2.6 <0> hawking: LD_LIBRARY_PATH is necessary if compiling wxPython gives you linking errors, or importing wx gives you linking errors. Your problem is that you can't find the package 'wx', which is different. <2> but adding it to LD_LIBRARY_PATH doesn't work <0> hawking: that's still wrong as far as Python is concerned. It needs to be told where to find wx. do you have a 'wx.pth' file anywhere?
<2> Yhg1s : well not in /opt/wx/2.6 <2> searching it now... <2> Yhg1s : is that absolutely needed? I mean there is no other way? <0> you're installing wx*Python*, right, not just wx*Widgets* ? <0> hawking: it should be there. if it's not there, it indicates the Python part of wxPython didn't install at all. <2> hmm <0> if you can find any .py files, that may tell you differntly. <2> well I got the wxpython source and compiled <2> how can python part be missinG? <0> no idea. I install binary packages, myself, so others deal with the mess that is retarded installation paths :) <0> why aren't you installing a platform package, anyway? <2> Yhg1s : ubuntu has problems with wxpython <2> libtiff related <10> i love python, indeed clean syntax <8> hawking: I haven't noticed. <0> hawking: the INSTALL file (http://www.wxpython.org/INSTALL.html) says to do 'python setup.py install' as well, btw. <0> hawking: are you running ubuntu unstable? :) <2> Aragandion : me too until I started working with systray stuff with wxpython <0> hawking: anyway, if you want to install it on ubuntu, you're better off fetching the deb-src and building that, instead. <2> Yhg1s : no it's stable <3> In all examples that I've seen realted with SOAP and Python, The oly point where WSDL appear is on webservice consume. I wrote a webservice with ZSI, How can I export the WSDL of this service ??? <8> hawking: I haven't done systray work. <2> Yhg1s : I am fine <2> Arafangion : yeah you won't notice it until you do <2> so don't ;) <10> lol <10> guys, are there any python modules for SDL and GTK and stuff? <2> sure <10> and wxpython? what's that? oO (i'm new) <10> is it easier than gtk? xD <8> robinl1: More portable. <10> what i see, is that is it more readable and more easier. <8> robinl1: Hard to say. <8> robinl1: But it uses native widgets on mac, windows, and gtk on linux. <8> (WHerever possible) <8> robinl1: One could say it compets with Qt, except that Qt draws the widgets itself, while Wx uses the host as much as possible. <11> PyGame is an SDL wrapper <11> If you want to use that... <3> How can I generate a WSDL file from a ZSI webservice ? <12> Dammit! Every time I type to join #python I type #pythong :) <13> heh <14> same <12> I found this code to manipulate windows services.. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/59872/index_txt Should I use it or is there a better alternative out there? <14> i also tend to type pythong something.py sometimes <14> i don't know why :( <12> yeah I think I'll copy the exe to a new name :) <14> heh <12> I'm really pleased with Python so far. I just replaced a big complex Delphi app with a short script. <14> :( <12> your subconscious has a thing for thongs. Why fight it? <15> what is 'thongs' <8> zorglu1: I'm guessing it's not footwear. <16> What is the best way to freeze my app for *unix ? <12> anyway I have a windows service (yes I know, evil windows boo hiss) and it is stopping my shiny new python script from working. So I want Python to stop the service, do its thing, and restart the service. <15> ok :) <12> yep <15> qk, kill -SIGSTOP pid_of_your_app <8> zorglu1: It also refers to underwear I think, but in either case, it's _very_ minimal. <16> zorglu1: i mean - have binary ;) <15> qk? <12> i'm going to try out the code I found above. If I suddenly drop off, you'll know I killed the wrong service :) <15> Arafangion: ok :) in my langage it is tong :) <17> what is the simplest way to strip a string with another string, eg. "oneTwo".strip("one") --> "Two"? <18> qk: To not do it at all. Distribute your python files instead, require user to install Python. <18> sakkew: "oneTwo".replace('one', '') <8> zorglu1: In that case, when you ask what a something is, you ask "What are thongs?", or "What is a thong?" <8> zorglu1: What language do you speak? <15> Arafangion: french <8> zorglu1: Cool :) That is a nice language. <15> Arafangion: yep :) <12> French huh? Its ok, you can surrender to us. <8> zorglu1: Wierd government, but nice language :) <15> Arafangion: indead. even if recently i have been surprised by some ministers <15> Arafangion: the culture minister is actually fighting for the p2p ideology aka 'let cut the middle man to spread the culture wider and give more money to art makers'
Return to
#python or Go to some related
logs:
ubuntu disable gdm #kde #suse #centos guiss extension sound driver hp-epc c10 recording internet radio illegal do_syncrep1: rid ldap_sasl_bind_s failed (-1) #gentoo #nvidia
|
|