Re: PyInstaller value error: Invalid Windows resource specifier

2023-10-30 Thread MRAB via Python-list
On 2023-10-30 19:19, McDermott Family via Python-list wrote: Hello, I am trying to create a one file executable with pyinstaller 6.1.0 and auto-py-to-exe 2.41.0 using Python version 3.10.9 in a virtual environment. Some points before the output of pinstaller is shown. My resource .py file is the

Re: Matplotlib error: Value Error: x and y must have same first dimension

2015-11-16 Thread Abhishek Mallela
Thank you Laura and Oscar. Abhishek -- https://mail.python.org/mailman/listinfo/python-list

Re: Matplotlib error: Value Error: x and y must have same first dimension

2015-11-13 Thread Laura Creighton
In a message of Fri, 13 Nov 2015 14:04:01 +, Oscar Benjamin writes: >On 13 November 2015 at 08:34, Laura Creighton wrote: >> In a message of Thu, 12 Nov 2015 17:54:28 -0800, Abhishek writes: >>>I am trying to run some Python code for the last few hours. How can I >>>achieve the effect of "dot

Re: Matplotlib error: Value Error: x and y must have same first dimension

2015-11-13 Thread Oscar Benjamin
On 13 November 2015 at 08:34, Laura Creighton wrote: > In a message of Thu, 12 Nov 2015 17:54:28 -0800, Abhishek writes: >>I am trying to run some Python code for the last few hours. How can I achieve >>the effect of "dot divide" from Matlab, in the following code? I am having >>trouble working

Re: Matplotlib error: Value Error: x and y must have same first dimension

2015-11-13 Thread Laura Creighton
In a message of Thu, 12 Nov 2015 17:54:28 -0800, Abhishek writes: >I am trying to run some Python code for the last few hours. How can I achieve >the effect of "dot divide" from Matlab, in the following code? I am having >trouble working with list comprehension and numpy arrays and getting the >

Matplotlib error: Value Error: x and y must have same first dimension

2015-11-12 Thread Abhishek
I am trying to run some Python code for the last few hours. How can I achieve the effect of "dot divide" from Matlab, in the following code? I am having trouble working with list comprehension and numpy arrays and getting the following error: Traceback (most recent call last): File "T

About a value error called 'ValueError: A value in x_new is below the interpolation range'

2013-02-05 Thread Isaac Won
Dear all, I am trying to calculate correlation coefficients between one time series data and other time series. However,there are some missing values. So, I interploated each time series with 1d interpolation in scipy and got correlation coefficients between them. This code works well for some

Re: value error

2009-04-23 Thread Terry Reedy
Francesco Pietra wrote: hi: with script data = open('134-176_rectified_edited.pdb', 'r') outp = open('134-176_renumbered.pdb', 'w') for L in data: if L[3] == 'M': L = L[:24] + "%4d" % (int(L[24-28])+133) + L[28:] outp.write(L) i wanted to modify lines of the type: ATOM 1 HH31

Re: value error

2009-04-23 Thread Jeremiah Dodds
On Thu, Apr 23, 2009 at 3:59 PM, Francesco Pietra wrote: > hi: > with script > > data = open('134-176_rectified_edited.pdb', 'r') > outp = open('134-176_renumbered.pdb', 'w') > > for L in data: > if L[3] == 'M': > L = L[:24] + "%4d" % (int(L[24-28])+133) + L[28:] > outp.write(L) > > > i wa

Re: value error

2009-04-23 Thread Ben Finney
Francesco Pietra writes: > $ python renumber.py 134-176_rectified.pdb > Traceback (most recent call last): > File "renumber.py", line 6, in > L = L[:24] + "%4d" % (int(L[24-28])+133) + L[28:] > ValueError: invalid literal for int() with base 10: '' For this reason, it's best to break up b

Re: value error

2009-04-23 Thread Gerhard Häring
Francesco Pietra wrote: > hi: > with script > > data = open('134-176_rectified_edited.pdb', 'r') > outp = open('134-176_renumbered.pdb', 'w') > > for L in data: >if L[3] == 'M': > L = L[:24] + "%4d" % (int(L[24-28])+133) + L[28:] >outp.write(L) > > > i wanted to modify lines of the

value error

2009-04-23 Thread Francesco Pietra
hi: with script data = open('134-176_rectified_edited.pdb', 'r') outp = open('134-176_renumbered.pdb', 'w') for L in data: if L[3] == 'M': L = L[:24] + "%4d" % (int(L[24-28])+133) + L[28:] outp.write(L) i wanted to modify lines of the type: ATOM 1 HH31 ACE 1 1.573 1.

Re: os.walk Value Error?

2008-06-15 Thread Gabriel Genellina
En Sat, 14 Jun 2008 19:06:16 -0300, <[EMAIL PROTECTED]> escribió: > I'm using os.walk as follows: > > (basedir, pathnames, files) = os.walk("results", topdown=True) > > and I'm getting the error: > > ValueError: too many values to unpack > >> From my googling, that means: > > This is the standard

Re: os.walk Value Error?

2008-06-14 Thread tdahsu
On Jun 14, 7:11 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hi, > > > I'm using os.walk as follows: > > > (basedir, pathnames, files) = os.walk("results", topdown=True) > > > and I'm getting the error: > > > ValueError: too many values to unpack > > > From my googling,

Re: os.walk Value Error?

2008-06-14 Thread Christian Heimes
[EMAIL PROTECTED] wrote: > Is there any other reason I might get that error? Yes, you are using it the wrong way. The correct way is for root, dirs, files in os.walk(path): do something os.walk returns an iterator which yields root, dirs and files for each iteration. Christian -- http://ma

Re: os.walk Value Error?

2008-06-14 Thread Larry Bates
[EMAIL PROTECTED] wrote: Hi, I'm using os.walk as follows: (basedir, pathnames, files) = os.walk("results", topdown=True) and I'm getting the error: ValueError: too many values to unpack From my googling, that means: This is the standard message when Python tries to unpack a tuple into fewe

os.walk Value Error?

2008-06-14 Thread tdahsu
Hi, I'm using os.walk as follows: (basedir, pathnames, files) = os.walk("results", topdown=True) and I'm getting the error: ValueError: too many values to unpack >From my googling, that means: This is the standard message when Python tries to unpack a tuple into fewer variables than are in th