| |
| |
| |
|
Page: 1 2
Comments:
<0> does anyone know of a module in python that can solve systems of 2nd order non-linear differential equations <0> ? <0> I can't seem to find anything in SciPy <1> does anyone know how to read a file in python in byte increments (like a while statement) <2> whata u mean <1> i want to you the read([n]) function but i need to be able to repete this until EOF but i don't know how to do the loop <1> (i'm not usually a python developer) <1> you=use <2> are you wanting to read a whole file into an array <1> actually i will be writting it out as i read it in <1> writting it to annother place that is <1> i can't do just a read() because the file is very large and i don't have enough memory <2> heh i just wrote a script that does that <1> i have to go at small byte increments <2> how big is the file? <1> not huge just more memory than the system has 56MB
<1> and i should probably clarify that it is a file that is comming through a url stream. <2> ouch <2> well <2> if you know how many lines are in your file <1> no <2> for i in range(numlinesinfile) <2> u dont know how many lines <2> ? <2> it will be hard to do that with such little memory <2> i would think if 56meg could read in file list <2> if = even <3> reading some literature from microsoft... "Note that a well designed web application will should not fail if an SSL session is broken;" <3> they really messed up with that sentence... <1> oh i figured it out <1> yeah <1> its akward but it works <4> hey guys, have you ever seen this? <4> pygame.error: mixer system not initialized <4> i'm getting that when i try to run pydance on my linux computer, but it worked fine on windows. <5> this is speculation/guesswork, but I think maybe you need sdl-mixer <4> i do have it <4> HOLY CRAP <4> i just upgraded sdl-mixer from 1.2.6 to 1.2.6-r1 (gentoo) <4> fixed it <4> 1.2.6-r1 is masked, but oh well :) <5> it might have been the rebuilding <5> not the new version <4> nope :) <4> i had just installed sdl-mixer <4> fresh install, no work, upgrade to unstable, works <4> of course, now i'm running the game and it is kinda broken <4> the songs aren't synching to the beats properly. <6> hey <6> why am I getting this: ImportError: No module named logging <7> probably you have an older version of Python installed <6> damn <6> ok <6> thanks <7> sure <6> i've never used python before in my life <6> might as well start <7> just install the latest version, no big deal <7> python.org <6> ok thsnkd <6> thanks* <6> simple install? <7> if you're using a package manager, you'll have one ready for you <7> if not, it's just ./configure && make && make install <6> don't think centos has one <7> never heard of that one <6> k <7> if it's Linux/Unix-like, then it's totally straightforward <6> ok thanks <7> sure <6> it's a linux based OS <6> so eyah <7> it'll install it in /usr/local as is proper so /usr/local/bin/python and you'll be using the new version, straightforward stuff <6> sweet <6> do i need to reboot something? <6> ImportError: No module named logging <6> arr
<7> well make sure you're running the right version of Python <7> the new one is in /usr/local/bin <7> the old one is likely in /usr/bin <6> is there a command i can use <7> make sure your PATH contains /usr/local/bin/ before /usr/bin <6> to check <7> which python <6> arr what <6> Python 2.2.3 (#1, Feb 15 2005, 02:41:06) <6> but i just installed the new one :( <7> that's what I'm saying, you're running the wrong version of Python <7> when I said "which python" that wasn't a question, type that in your shell :-) <6> /usr/bin/python <7> yes <6> i see <6> err <6> how do i fix <7> so what's happening here (this is a basic Unix thing) is that it's not finding your new Python <7> what shell are you using <7> echo $SHELL <6> bash <6> /bin/bash <7> type:: export PATH=/usr/local/bin/:$PATH <7> type:: export PATH=/usr/local/bin:$PATH <7> (the / is unnecessary) <6> done <7> then type:: rehash <7> then:: which python <6> err <6> not a command <6> rehahs <6> rehash* <7> okay don't worry about it then <7> type:: which python <6> /usr/local/bin/python <6> but it changed <7> there you go <6> k <7> yes <7> that was the point <7> now try running whatever you were running before <6> arr <6> still same error <6> oh <7> if that's the case then whatever you're running is likely hardcoded to run whatever's in /usr/bin/python and therefore is broken <6> maybe i should reinstall it? <7> reinstall what? <6> what im running <7> well I have no idea what you're running so it may or may not work <6> "Palabre, as already said is an open source (and free as in free beer) XML Socket Python Server." <7> if someone's doing what they're supposed to it should find the version of Python in your path <7> you'll have to contact them <7> try reinstalling <6> for communication with flash <6> ok <6> i <6> i'd need to delete everything <6> erm <7> but in the future you want #linuxhelp for this sort of thing (this is actually not a Python question) <6> oh ok lol <6> aaah <6> its reinstalling <6> to the right dir <6> well it copied the files over <7> well the directory it installs to shouldn't make a difference <7> it's what's in the first line of the scripts that matters <7> note that you'll want to add that PATH change to your .bashrc file, again, check #linuxhelp <7> he was trying to be cool and saying how he was involved in a car accident with someone who he concluded was a drunk driver <7> mischan, sorry <8> hi everyone <8> I am interesting in learning python and was wondering what real python users would recommend as a good book to start with? <8> i am some basic programming/scripting experience <7> probably _Learning Python_
Return to
#python or Go to some related
logs:
#gentoo #beginner #politics #computers make playlists in XBMC #stocks VSFTPD error connection refused to Ubuntu 6 #politics #netbsd #beginner
|
|