#apache #archlinux #asterisk #centos #debian #gentoo #haskell #kde #kubuntu #lisp #math #mysql #perl #python #ruby-lang #rubyonrails #suse #ubuntu #vim #wikipedia 0 1 2 3 4 5 6 7 8 9 
Top Prev 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 Next

#python

<ehird> Bracki: Read Eval Print loop
<Bracki> and how do i put my module in that mode?
<Jafet> ehird: this version number is for branding, or just internal module use?
<Jafet> if the latter, then fine, anything you like really
<ehird> Jafet: internal
<ehird> the version number is not the db version number
<chrisjw> is there any socks module?
<jhammel> i'm trying to get easy_install to install same data files: https://svn.openplans.org/svn/build/deliverance.build/setup.py
<jhammel> however, i get "/usr/lib64/python2.4/distutils/dist.py:236: UserWarning: Unknown distribution option: 'datafiles'"
<jhammel> does anyone know a way around this? or a reference setup.py file I can use for easy_install?
<astan> if i need a minimal configuration file for a script of mine, just a few config options, what would you recommend? syck (yaml)? or is there something in the standard library that would do the job?
<luks> astan: ConfigParser
<astan> ah. thanks. just found that.
<et> *scratches head* any reason why import foo works and from foo import * raises an ImportError about an undefined symbol (foo is scipy here)
<ehird> __all__?
<elefth> London Python developers meetup tomorrow for anyone who's interested: http://announce.londonpython.org.uk/
<insanekane> wish I was in London
<insanekane> hi baijum
<insanekane> baijum: Rajeev here
<baijum> insanekane, hi
<insanekane> hi
<insanekane> baijum: in bangalore ?
<baijum> yes
<OrgulloKmoore> I have a CGIprogram.py in Folder A that needs to execute program.py which is in Folder B and imports many files from Folder B...is there anyway to do this without moving CGIprogram.py to Folder B?
<pjd> OrgulloKmoore: $PYTHON_PATH
<flavioribeiro> OrgulloKmoore, u can add the path
<flavioribeiro> import sys
<flavioribeiro> sys.path.append(folder)
<OrgulloKmoore> let's try...
<_follower_> hi. i'm trying to build the sqlite extension on freebsd for 2.3* and i have it working if i use sqlite3.*.so but i'm not sure how to build it using the static libsqlite3.a. i've tried googling and trying cflag and ldflag settings but they didn't get me what i wanted. any pointers please?
<pjd> it's generally much better to add to $PYTHON_PATH, if you can
<pjd> keep the application's deployment and its logic separate
<OrgulloKmoore> ermm...the libraries are like meant to be executed from their own folders
<OrgulloKmoore> it seems that they depend on that a lot...
<OrgulloKmoore> import config, mediawiki_messages, login
<OrgulloKmoore> File "/home/kyle/pywikipedia/config.py", line 58, in ?
<OrgulloKmoore> for filename in os.listdir('families'):
<OrgulloKmoore> OSError: [Errno 2] No such file or directory: 'families'
<OrgulloKmoore> (don't know if that's considered flood) :-0
<pjd> OrgulloKmoore: it's bordering on :)
<OrgulloKmoore> yep, more than 3 lines
<pjd> err, is config.py part of pywikipedia?
<OrgulloKmoore> in either case...I suppose I have to move the library, copy it, or rewrite my program to not use it
<pjd> if so, that's rather broken
<OrgulloKmoore> config.py is in the folder pywikipedia
<OrgulloKmoore> and is imported by wikipedia, also in pywikipedia
<OrgulloKmoore> wikipedia.py*
<pjd> OrgulloKmoore: if it's an external config module, you should fix it
<pjd> if it's actually part of the pywikipedia distribution, it should be fixed upstream :)
<OrgulloKmoore> umm...I think it is...but I don't wanna fix it :-p

Previous Page  Next Page

Search ircarchive.info