Re: Tkinter problem: TclError> couldn't connect to display ":0
On Sunday, 29 December 2013 20:20:00 UTC, Michael Matveev wrote: > Hi, > I use live Debian on VM and trying to compile this code. > > > import Tkinter > > root = Tkinter.Tk() > > root.title("Fenster 1") > root.geometry("100x100") > > root.mainloop() > > > The shell gives out that kind of message: > > File "test.py", line 5, in > root = Tkinter.Tk() > File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1712, in __init__ > self.tk = _tkinter.create(screenName, baseName, className, interactive, > wantobjects, useTk, sync, use) > _tkinter.TclError: couldn't connect to display ":0" > > > > thanks for helping out. > > greets. > Mike This fixed my problem with thkinter. sudo cp ~/.Xauthority ~root/ -- https://mail.python.org/mailman/listinfo/python-list
Re: scipy
On May 9, 3:34 pm, Robert Kern wrote: > On 5/9/11 3:35 AM, pb wrote: > > > On May 9, 12:29 am, Terry Reedy wrote: > >> On 5/8/2011 6:44 AM, pb wrote: > > >>> Hi, > >>> I', having trouble with scipy. > > >> If you do not get an answer here, try the scipy list where scipy experts > >> hang out. You might also try searching the archives of that list or the > >> scipy bug tracker. > > >> -- > >> Terry Jan Reedy > > > Hi, > > the scipy mailing list? > > http://www.scipy.org/Mailing_Lists > > -- > Robert Kern > > "I have come to believe that the whole world is an enigma, a harmless enigma > that is made terrible by our own mad attempt to interpret it as though it > had > an underlying truth." > -- Umberto Eco Thanks, I have tried to register for the mailing lists there, but cannot loggin and have received no "registration comfirmation email" from them. I'd email the list maintainer/admin, but cannot find an email address for them. Peter -- http://mail.python.org/mailman/listinfo/python-list
Re: scipy
On May 9, 12:29 am, Terry Reedy wrote: > On 5/8/2011 6:44 AM, pb wrote: > > > Hi, > > I', having trouble with scipy. > > If you do not get an answer here, try the scipy list where scipy experts > hang out. You might also try searching the archives of that list or the > scipy bug tracker. > > -- > Terry Jan Reedy Hi, the scipy mailing list? Thanks, Peter -- http://mail.python.org/mailman/listinfo/python-list
scipy
Hi, I', having trouble with scipy. I have followed the instructions at scipy website and have installed the following on my mac osx 10.6.6 NumPy version 1.5.1 NumPy is installed in /Library/Frameworks/Python.framework/Versions/ 2.6/lib/python2.6/site-packages/numpy SciPy version 0.8.0 SciPy is installed in /Library/Frameworks/Python.framework/Versions/ 2.6/lib/python2.6/site-packages/scipy Python version 2.6.6 (r266:84374, Aug 31 2010, 11:00:51) [GCC 4.0.1 (Apple Inc. build 5493)] nose version 1.0.0 When I run the test scipy.test('1','10') some items seem to pass: test_streams.test_make_stream(True,) ... ok Some tests seem to be skipped: nose.selector: INFO: /Library/Frameworks/Python.framework/Versions/2.6/ lib/python2.6/site-packages/scipy/io/matlab/mio5_utils.so is executable; skipped some seem to fail: /Users/user/.python26_compiled/m7/module_multi_function.cpp:13:19: error: complex: No such file or directory and == ERROR: test_string_and_int (test_ext_tools.TestExtModule) -- Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/site-packages/scipy/weave/tests/test_ext_tools.py", line 72, in test_string_and_int mod.compile(location = build_dir) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/site-packages/scipy/weave/ext_tools.py", line 367, in compile verbose = verbose, **kw) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/site-packages/scipy/weave/build_tools.py", line 273, in build_extension setup(name = module_name, ext_modules = [ext],verbose=verb) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/site-packages/numpy/distutils/core.py", line 186, in setup return old_setup(**new_attr) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/distutils/core.py", line 169, in setup raise SystemExit, "error: " + str(msg) CompileError: error: Command "c++ -fno-strict-aliasing -fno-common - dynamic -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/ 2.6/lib/python2.6/site-packages/scipy/weave -I/Library/Frameworks/ Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy/weave/ scxx -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ site-packages/numpy/core/include -I/Library/Frameworks/ Python.framework/Versions/2.6/include/python2.6 -c /Library/Frameworks/ Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy/weave/ scxx/weave_imp.cpp -o /var/folders/4b/4bhByeH9HSuDIezfnSZ6GTI/- Tmp-/user/python26_intermediate/ compiler_7ca1591dfd3261e140e707030a00840e/Library/Frameworks/ Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy/weave/ scxx/weave_imp.o" failed with exit status 1 with the final result being: FAILED (KNOWNFAIL=15, SKIP=40, errors=242, failures=2) I'm assuming I have the wrong version of something, would that be right? Does anyone know how I can fix this? thanks, Peter -- http://mail.python.org/mailman/listinfo/python-list
install excel xlwt in ubuntu 9
Hey friends i tried a lot to install excel xlwt in ubuntu 9 but failed please help me before i get full fraustrated... -- http://mail.python.org/mailman/listinfo/python-list
How to install python xlwt in ubuntu 9
Hey friends i tried a lot to unstall excel xlwt in ubuntu 9 but failed please help me before i get full fraustrated... -- http://mail.python.org/mailman/listinfo/python-list
Uninstalling Eggs
I just installed the Shove module with the monumentally crap setuptools. Whilst the install succeeded, imports now trigger errors, so clearly it did not install correctly. Can I simply delete the .egg file from my lib/python2.3/site-packages/ directory? Cheers, -- http://mail.python.org/mailman/listinfo/python-list
Re: Image Libraries
Maybe I am unaware of the right way to do it, but the only way I can think to draw several shapes of different transparencies is to create an image for each layer and then combine them which seems overly complex. It would be nice to simply be able to specify colors with an alpha value combined (ie RGBA) for image draw operations. Is there a way to do this? Cheers, Peter Ken wrote: > PB wrote: > > I have been using PIL for generating images, however it does not > > easily support operations with transparency etc. > > > > I tried to install aggdraw but it wouldn't compile. > > > > Ideally I'd like something open source so I can adapt it, hopefully > > mostly written in python rather than C. > > > > Is there any other decent image libraries for python? > > > > > I use PIL, and I haven't had any difficulty with alpha channel > transparency. But maybe I'm using it for different things than you > (blitting PGN(RGBA) antialiased images mostly). What problems are you > having specifically? > > Ken Seehart -- http://mail.python.org/mailman/listinfo/python-list
Image Libraries
I have been using PIL for generating images, however it does not easily support operations with transparency etc. I tried to install aggdraw but it wouldn't compile. Ideally I'd like something open source so I can adapt it, hopefully mostly written in python rather than C. Is there any other decent image libraries for python? -- http://mail.python.org/mailman/listinfo/python-list