Re: AttributeError: LineLogic instance has no attribute 'probe'

2015-07-27 Thread Cameron Simpson
On 27Jul2015 13:43, John Gordon wrote: In Abder-Rahman Ali writes: In the class ---> LineLogic def __init__(self): self.probe = vtk.vtkProbeFilter() In another class ---> LineLogicTest logic = LineLogic() probe = logic.probe data = probe.GetOutput().GetPointData().GetScalars()

Re: Error: valueError: ordinal must be >= 1

2015-07-27 Thread Emile van Sebille
On 7/27/2015 4:13 PM, ryguy7272 wrote: It seems to work perfectly find when I see the results in the book, but all I'm getting is this . . . *** ValueError: ordinal must be >= 1 (Pdb) Does anyone have any idea what I'm doing wrong? You've been dropped into the python debugger. I'd suspect

Re: Python Questions - July 25, 2015

2015-07-27 Thread Rob Gaddi
On Sun, 26 Jul 2015 13:49:57 +0100, BartC wrote: > How do you actually install Numpy in Windows? > > I had a go a month or two ago and couldn't get anywhere. > As I recall you noodle around with it for a few hours making things that look like progress but turn out to be rabbit holes. Then you

Error: valueError: ordinal must be >= 1

2015-07-27 Thread ryguy7272
Hello experts. I'm working in Python > Anaconda > Spyder. I'm reading a book called 'Python for Finance' and I'm trying to run this sample code: import numpy as np import pandas as pd import pandas.io.data as web sp500 = web.DataReader('^GSPC', data_source='yahoo', start='1/1/2000', end='4/

Re: sys path modification

2015-07-27 Thread Cameron Simpson
On 27Jul2015 14:09, neubyr wrote: Modules are installed, but they are in a different directory than standard modules directory. I considered an option to add a site specific directory, but I want to make module path application specific rather than installing it in system-wide directory. virtual

Authenticate users using command line tool against AD in python

2015-07-27 Thread Prasad Katti
I am writing a command line tool in python to generate one time passwords/tokens. The command line tool will have certain sub-commands like --generate-token and --list-all-tokens for example. I want to restrict access to certain sub-commands. In this case, when user tries to generate a new token

Re: sys path modification

2015-07-27 Thread neubyr
Modules are installed, but they are in a different directory than standard modules directory. I considered an option to add a site specific directory, but I want to make module path application specific rather than installing it in system-wide directory. virtualenv is one option, but that means any

Re: ImportError: No module named site

2015-07-27 Thread Laura Creighton
What I want to know is can you import anything else? If site.py is just the first thing in a long list of modules, and you cannot find any of them, which is what I think is the case, and I'd start looking for problems with the PYTHONPATH then you have a different problem than if you can find other

Re: sys path modification

2015-07-27 Thread Ned Batchelder
On Monday, July 27, 2015 at 1:24:50 PM UTC-4, neubyr wrote: > I am trying to understand sys.path working and best practices for managing it > within a program or script. Is it fine to modify sys.path using > sys.path.insert(0, EXT_MODULES_DIR)? One stackoverflow answer - > http://stackoverflow.c

Re: ImportError: No module named site

2015-07-27 Thread Terry Reedy
On 7/26/2015 10:00 PM, chenc...@inhand.com.cn wrote: hi: I'm Needing to get python 2.7.10 to cross compile correctly for an ARM embedded device. When I execute python using shell, it comes out this error:ImportError: No module named site.I have setted environment varible:PYTHONHOME and PYTH

Re: sys path modification

2015-07-27 Thread Cem Karan
On Jul 27, 2015, at 1:24 PM, neubyr wrote: > > I am trying to understand sys.path working and best practices for managing it > within a program or script. Is it fine to modify sys.path using > sys.path.insert(0, EXT_MODULES_DIR)? One stackoverflow answer - > http://stackoverflow.com/a/1009754

sys path modification

2015-07-27 Thread neubyr
I am trying to understand sys.path working and best practices for managing it within a program or script. Is it fine to modify sys.path using sys.path.insert(0, EXT_MODULES_DIR)? One stackoverflow answer - http://stackoverflow.com/a/10097543 - suggests that it may break external 3'rd party code as

Re: Python Questions - July 25, 2015

2015-07-27 Thread mm0fmf via Python-list
On 27/07/2015 01:18, Mark Lawrence wrote: On 27/07/2015 00:12, Ned Batchelder wrote: On Sunday, July 26, 2015 at 5:15:31 PM UTC-4, mm0fmf wrote: On 26/07/2015 20:17, E.D.G. wrote: [around 90 lines snipped] Am I the only person thinking Troll? Yes. --Ned. Was it really necessary to re

Re: AttributeError: LineLogic instance has no attribute 'probe'

2015-07-27 Thread John Gordon
In Abder-Rahman Ali writes: > In the class ---> LineLogic > def __init__(self): > self.probe = vtk.vtkProbeFilter() > In another class ---> LineLogicTest > logic = LineLogic() > probe = logic.probe > data = probe.GetOutput().GetPointData().GetScalars() > When I try running the program

Re: Which GUI?

2015-07-27 Thread Todd
On Sun, Jul 26, 2015 at 7:19 PM, Paulo da Silva < p_s_d_a_s_i_l_v_a...@netcabo.pt> wrote: > On 26-07-2015 05:47, blue wrote: > > Hi . > > I tested all. Now I think the PySide can more. > > No python3! > Besides ... any differences to pyqt4? > Thanks > pyside has supported python 3 for a long time

amfast - serialising back which was deserialised - trying to produce same output

2015-07-27 Thread Rafał Rajko-Nenow
Hi, I think it's really amfast issue, and has not much in common with mitmproxy, but last days this problem became urgent to me so I'm asking here hoping that anyone succeeded this before. I am using mitmdump with some inline scripts to track AMF serialised flex remoting traffic. As I'm des

Re: Python Questions - July 25, 2015

2015-07-27 Thread tjohnson
#6: I don't know what your colleague will think, but I've read too many negative things about Eric (lots of dependencies, poor documentation, etc.) to ever try it. For a powerful Free Python IDE, I'd recommend either Eclipse with PyDev (what I use), or PyCharm. -- https://mail.python.org/mailma

ANN: Python Meeting Düsseldorf - 29.07.2015

2015-07-27 Thread eGenix Team: M.-A. Lemburg
[This announcement is in German since it targets a local user group meeting in Düsseldorf, Germany] ANKÜNDIGUNG Python Meeting Düsseldorf http://pyddf.de/ Ein Treffen

Re: Python Questions - July 25, 2015

2015-07-27 Thread Laura Creighton
In a message of Sun, 26 Jul 2015 18:58:14 -0500, "E.D.G." writes: > This is an indirect URL for a potentially important computer program >that I feel needs to be developed. Unfortunately, although Python could be >used to create PC or Mac versions of the program I don't think that those

Re: Python Questions - July 25, 2015

2015-07-27 Thread Matt Wheeler
I'll just answer the one part I don't feel has had enough attention yet, all other parts chopped... On Sat, 25 Jul 2015 10:39 E.D.G. wrote: Posted by E.D.G. July 25, 2015 6. What is Python's version of the DOS level "System" command that many programs use as in: system "open notepad.exe" You

Re: Hi

2015-07-27 Thread Christopher Mullins
> > I downloaded files(Python 2.7.10 - 2015-05-23 > ) to setup on your > website. > (also got the version of x64 because of my cpu) > But when I try to install it, there is an error. > The error is "There is a problem with this Windows Installe

AttributeError: LineLogic instance has no attribute 'probe'

2015-07-27 Thread Abder-Rahman Ali
Hello, I'm quite puzzled with an error I'm having in my code. In the class ---> LineLogic I have the following portion of code: def __init__(self): self.probe = vtk.vtkProbeFilter() probe.SetInputConnection(line.GetOutputPort()) probe.SetSourceData(volumeNode.GetImageData()) probe.Update