Re: Trying to use pyinstaller under python 3.11, and, recently started receiving error message about specific module/distribution

2024-04-04 Thread Jacob Kruger via Python-list
Ok, had received response on pyinstaller mailing list, but, also just related to trying clean uninstall/reinstall of modules, but, while checking that out, something else occurred to me, and, it now operates as it should. Anyway, what seemed to be causing issue was actually that, since, while

Re: Trying to use pyinstaller under python 3.11, and, recently started receiving error message about specific module/distribution

2024-04-03 Thread Jacob Kruger via Python-list
Ok, last update for now - checked out the following page on pyinstaller.org, and, ended up posting to the mailing list, so, let's see: https://pyinstaller.org/en/latest/when-things-go-wrong.html Jacob Kruger +2782 413 4791 "Resistance is futile!...Acceptance is versatile..." On 2024/04/02 17

Re: Trying to use pyinstaller under python 3.11, and, recently started receiving error message about specific module/distribution

2024-04-02 Thread Barry via Python-list
> On 1 Apr 2024, at 15:52, Jacob Kruger via Python-list > wrote: > > Found many, many mentions of errors, with some of the same keywords, but, no > resolutions that match my exact issue at all. Try asking the pyinstaller developers. I think there is a mailing list. Barry > > > As in, mos

Re: Trying to use pyinstaller under python 3.11, and, recently started receiving error message about specific module/distribution

2024-04-01 Thread Jacob Kruger via Python-list
Found many, many mentions of errors, with some of the same keywords, but, no resolutions that match my exact issue at all. As in, most of them are mentioning older versions of python, and, mainly different platforms - mac and linux, but, various google searches have not mentioned much of usin

Re: Trying to use pyinstaller under python 3.11, and, recently started receiving error message about specific module/distribution

2024-03-31 Thread Barry via Python-list
> On 31 Mar 2024, at 13:24, Jacob Kruger via Python-list > wrote: > > pkg_resources.DistributionNotFound: The 'altgraph' distribution was not found > and is required by the application I think I have seen this error being discussed before… A web search for pyinstaller and that error leads t

Trying to use pyinstaller under python 3.11, and, recently started receiving error message about specific module/distribution

2024-03-31 Thread Jacob Kruger via Python-list
This started happening this past week, and, while it's worked fine in the past, the moment I try to launch the pyinstaller process at all, to generate compiled output, or even if just launch it with no command line options, I receive the following error me

Matplotlib warning [error?] message

2024-02-19 Thread Leif Svalgaard via Python-list
now I get: File e:\getmodpot.py:40 fig,ax = initPlot() File E:\mystuff.py:272 in initPlot fig,ax = plt.subplots(figsize=(xs,ys)) File ~\anaconda3\Lib\site-packages\matplotlib\pyplot.py:1501 in subplots fig = figure(**fig_kw) File ~\anaconda3\Lib\site-packages\matplotlib\_api\d

Re: Matplotlib warning [error?] message

2024-02-19 Thread Zahraa Fadhil via Python-list
On Sunday, February 18, 2024 at 10:48:29 PM UTC+3, Leif Svalgaard wrote: > The latest[?] version of Matplotlib cannot show a figure. I get the > annoying error message: "Matplotlib is currently using agg, which is a > non-GUI backend, so cannot show the figure" > I'm

Matplotlib warning [error?] message

2024-02-18 Thread Leif Svalgaard via Python-list
The latest[?] version of Matplotlib cannot show a figure. I get the annoying error message: "Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure" I'm using Spyder python 3.11 on Windows 11. What to do? -- Leif Svalgaard l...@lei

Re: f-string error message

2023-08-30 Thread Random832 via Python-list
al. > However, to my mind it is not the format string that is invalid, but the > value supplied to it. > Would it be possible to have a different error message, something like > > ValueError: int expected in format string but decimal.Decimal found > > Or am I missing something?

f-string error message

2023-08-30 Thread Rob Cliffe via Python-list
. However the following error message confused me for a while when it happened in real code: import decimal x=42 f"{x:3d}" ' 42' x=decimal.Decimal('42') f"{x:3d}" Traceback (most recent call last):   File "", line 1, in ValueError: invalid form

Re: Confusing error message: lambda walruses

2021-10-06 Thread Thomas Jollans
On 06/10/2021 23:53, Chris Angelico wrote: On Thu, Oct 7, 2021 at 8:51 AM Thomas Jollans wrote: On 03/10/2021 01:39, Chris Angelico wrote: Using assignment expressions in lambda functions sometimes works, but sometimes doesn't. Does this commit by a certain Chris Angelico help clear things up

Re: Confusing error message: lambda walruses

2021-10-06 Thread Chris Angelico
On Thu, Oct 7, 2021 at 8:51 AM Thomas Jollans wrote: > > On 03/10/2021 01:39, Chris Angelico wrote: > > Using assignment expressions in lambda functions sometimes works, but > > sometimes doesn't. > > Does this commit by a certain Chris Angelico help clear things up? > > https://github.com/python/

Re: Confusing error message: lambda walruses

2021-10-06 Thread Thomas Jollans
On 03/10/2021 01:39, Chris Angelico wrote: Using assignment expressions in lambda functions sometimes works, but sometimes doesn't. Does this commit by a certain Chris Angelico help clear things up? https://github.com/python/peps/commit/f906b988b20c9a8e7e13a2262f5381bd2b1399e2 -- https://mail.

Re: Confusing error message: lambda walruses

2021-10-03 Thread Peter J. Holzer
On 2021-10-03 10:39:38 +1100, Chris Angelico wrote: > # Oh, and it doesn't actually assign anything. > >>> def f(n): > ... return (lambda: (n := 1)), (lambda: n) > ... > >>> g, h = f(5) > >>> h() > 5 > >>> g() > 1 > >>> h() > 5 I thought about that one a bit more and I think that the lambda is

Re: Confusing error message: lambda walruses

2021-10-03 Thread Peter J. Holzer
On 2021-10-03 10:39:38 +1100, Chris Angelico wrote: > Using assignment expressions in lambda functions sometimes works, but > sometimes doesn't. > ... return lambda x: (x, x := 2, x) syntax ok > return lambda: n := 1 syntax error > ... return lambda: (n := 1) syntax ok > return

Confusing error message: lambda walruses

2021-10-02 Thread Chris Angelico
Using assignment expressions in lambda functions sometimes works, but sometimes doesn't. Python 3.11.0a0 (heads/main:dc878240dc, Oct 3 2021, 10:28:40) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. # Fine if it's a parameter to the lambda function >>>

Re: Funny error message

2021-01-01 Thread Bob van der Poel
> Assuming Python is maintained only at the system-level (cf --user or > > venv) then it may be possible that installing some application that > runs > > 'on' Python added the local-library (as a "dependency"). Alternately, > > many beginners following installation instructions on a

Re: Funny error message

2021-01-01 Thread DL Neil via Python-list
On 1/2/21 9:39 AM, Bob van der Poel wrote: > > > On Fri, Jan 1, 2021 at 12:17 PM DL Neil via Python-list > mailto:python-list@python.org>> wrote: > > On 1/2/21 6:35 AM, Bob van der Poel wrote: > > Found it! > > Well done! > > > >>     I had the proper urllib3 installed. But, i

Re: Funny error message

2021-01-01 Thread Bob van der Poel
On Fri, Jan 1, 2021 at 12:17 PM DL Neil via Python-list < python-list@python.org> wrote: > On 1/2/21 6:35 AM, Bob van der Poel wrote: > > Found it! > > Well done! > > > >> I had the proper urllib3 installed. But, in my .local/lib/ a > previous > >> version was installed. Removing .local/li

Re: Funny error message

2021-01-01 Thread DL Neil via Python-list
On 1/2/21 6:35 AM, Bob van der Poel wrote: > Found it! Well done! >> I had the proper urllib3 installed. But, in my .local/lib/ a previous >> version was installed. Removing .local/lib/python3.8 has resolved the >> problem. >> >> Anyone hazard a guess as to why I had a .local tre

Re: Funny error message

2021-01-01 Thread Bob van der Poel
Found it! > > I had the proper urllib3 installed. But, in my .local/lib/ a previous > version was installed. Removing .local/lib/python3.8 has resolved the > problem. > > Anyone hazard a guess as to why I had a .local tree (nope, I did not create > it ... I don't think!). > > > That is where "pyth

Re: Funny error message

2021-01-01 Thread Barry Scott
> On 1 Jan 2021, at 16:50, Bob van der Poel wrote: > > On Thu, Dec 31, 2020 at 9:25 PM DL Neil via Python-list < > python-list@python.org > wrote: > >> On 1/1/21 11:46 AM, Bob van der Poel wrote: >>> When I run python from the command line and generate an error

Re: Funny error message

2021-01-01 Thread Bob van der Poel
On Thu, Dec 31, 2020 at 9:25 PM DL Neil via Python-list < python-list@python.org> wrote: > On 1/1/21 11:46 AM, Bob van der Poel wrote: > > When I run python from the command line and generate an error I get the > > following: > > > > Python 3.8.5 (default, Jul 28 2020, 12:59:40) > > [GCC 9.3.0] on

Re: Funny error message

2021-01-01 Thread Bob van der Poel
a one line script with only a bad command in it and running "python -v script.py >err_file" does not give the lengthy printout. The same error message is displayed on the terminal. I really have no idea ... and don't care that much, except it is annoying to have these same lines re

Re: Funny error message

2021-01-01 Thread Peter Otten
On 31/12/2020 23:46, Bob van der Poel wrote: When I run python from the command line and generate an error I get the following: Python 3.8.5 (default, Jul 28 2020, 12:59:40) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. z /home/bob/.local/lib/pyth

Re: Funny error message

2020-12-31 Thread DL Neil via Python-list
On 1/1/21 11:46 AM, Bob van der Poel wrote: > When I run python from the command line and generate an error I get the > following: > > Python 3.8.5 (default, Jul 28 2020, 12:59:40) > [GCC 9.3.0] on linux > Type "help", "copyright", "credits" or "license" for more information. z > /home/bob/.l

Funny error message

2020-12-31 Thread Bob van der Poel
When I run python from the command line and generate an error I get the following: Python 3.8.5 (default, Jul 28 2020, 12:59:40) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> z /home/bob/.local/lib/python3.8/site-packages/requests/__init__.py:89: R

Re: Debian testing and virtual environment error message

2020-12-27 Thread Christian Heimes
On 27/12/2020 04.05, songbird wrote: > songbird wrote: > ... >> The package mentioned is installed: >> >> >> = >> >> $ dpkg -l | grep python3-venv >> ii python3-venv 3.9.0-4 >> amd64pyvenv-3 binary for python3 (default python3 version)

Re: Debian testing and virtual environment error message

2020-12-27 Thread songbird
Chris Angelico wrote: > On Mon, Dec 28, 2020 at 2:56 AM songbird wrote: ...needed to pull a few more things from unstable... > Ah, yep, that makes sense. I was a tad concerned about the mismatch of > versions, but honestly, I don't think I've ever installed Python from > testing or unstable (unles

Re: Debian testing and virtual environment error message

2020-12-27 Thread Chris Angelico
On Mon, Dec 28, 2020 at 2:56 AM songbird wrote: > > Chris Angelico wrote: > > ok, i got it to work. i noticed that there was a 3.8 > version of distutils that was not upgraded to 3.9 so once > i specifically pulled that in from the unstable Debian > distribution then it upgraded and my creation

Re: Debian testing and virtual environment error message

2020-12-27 Thread songbird
Chris Angelico wrote: ok, i got it to work. i noticed that there was a 3.8 version of distutils that was not upgraded to 3.9 so once i specifically pulled that in from the unstable Debian distribution then it upgraded and my creation of a new virtual environment would work without errors. so

Re: Debian testing and virtual environment error message

2020-12-26 Thread songbird
songbird wrote: ... > The package mentioned is installed: > > >= > > $ dpkg -l | grep python3-venv > ii python3-venv 3.9.0-4amd64 >pyvenv-3 binary for python3 (default python3 version) > here is something i missed including in my fi

Re: Debian testing and virtual environment error message

2020-12-26 Thread songbird
Chris Angelico wrote: ... > $ which python /usr/bin/python for both user and root looking at /usr/bin it looks like: lrwxrwxrwx 1 root root 7 Nov 3 03:20 python -> python3 lrwxrwxrwx 1 root root 9 Dec 6 05:36 python3 -> python3.9 -rwxr-xr-x 1 root root 5479

Re: Debian testing and virtual environment error message

2020-12-26 Thread Chris Angelico
On Sun, Dec 27, 2020 at 11:31 AM songbird wrote: > > > Simlar to Rich's asking about how to deal with python3.9 > I'm not able to to get my virtual environment set up to work > now and I'm not sure how to go about fixing this. > > As it is testing I may have broken it somehow but I do not > kn

Debian testing and virtual environment error message

2020-12-26 Thread songbird
Simlar to Rich's asking about how to deal with python3.9 I'm not able to to get my virtual environment set up to work now and I'm not sure how to go about fixing this. As it is testing I may have broken it somehow but I do not know how to fix this. I asked on the Debian user mailing list

Re: How to run Jupyter notebook in command line and get full error message?

2020-11-29 Thread Skip Montanaro
> > My VPN keeps dropping and can not run Jupyter Notebook as it is. > You don't provide a lot of detail, but this seems similar to the kind of flaky networking we used to deal with in the Before Times. Simply connecting directly to a host over the Internet was often plagued by disconnects. For th

How to run Jupyter notebook in command line and get full error message?

2020-11-28 Thread Shaozhong SHI
How to run Jupyter notebook in command line and get full error messages? My VPN keeps dropping and can not run Jupyter Notebook as it is. I started to use nbconvert in command line. But, when it stops due to error, I can not see where the error occurs. In order to make life easier for debugging

How to record full error message for debugging with nbconvert?

2020-11-28 Thread Shaozhong SHI
Hi, When I use nbconvert to run Jupyter notebook, it is so difficult to see the full error message for debugging? How to save full error messages? Regards, David -- https://mail.python.org/mailman/listinfo/python-list

Re: "pip" error message

2020-04-21 Thread Mats Wichmann
On 4/21/20 5:38 AM, Frank Millman wrote: > On 2020-04-21 12:02 PM, Simone Bravin wrote: >> >> I found that I had downloaded Python from what I would call "automatic >> check version link" and that downloaded the 32-bit version, but my >> notebook have 64-bit, so I changed the version to the 64-bit

Re: "pip" error message

2020-04-21 Thread Frank Millman
On 2020-04-21 12:02 PM, Simone Bravin wrote: I found that I had downloaded Python from what I would call "automatic check version link" and that downloaded the 32-bit version, but my notebook have 64-bit, so I changed the version to the 64-bit one. I have had the same problem in the past.

Re: "pip" error message

2020-04-21 Thread Simone Bravin
but it > doesn't work. > > When I check for pip version using command line> pip --version I get > the following error message: > > Traceback (most recent call last): >   File > "c:\users\simon\appdata\local\programs\python\py

Re: "pip" error message

2020-04-20 Thread Souvik Dutta
tall few extra packages using pip but it > > doesn't work. > > > > When I check for pip version using command line> pip --version I get > > the following error message: > > > > Traceback (most recent call last): > > File > > "c:\u

Re: "pip" error message

2020-04-20 Thread Richard Guinn
20, 2020 at 12:42 PM Simone Bravin wrote: > Hello everyone, > > > I just started using Python to learn a bit of coding, so I'm pretty a > > newbie to this, I tried to install few extra packages using pip but it > > doesn't work. > > > > When I check

"pip" error message

2020-04-20 Thread Simone Bravin
Hello everyone, I just started using Python to learn a bit of coding, so I'm pretty a newbie to this, I tried to install few extra packages using pip but it doesn't work. When I check for pip version using command line> pip --version I get the following error message: Tr

Re: How to catch a usefull error message ?

2019-04-25 Thread Vincent Vande Vyvre
Le 25/04/19 à 08:25, Chris Angelico a écrit : On Thu, Apr 25, 2019 at 2:32 PM Vincent Vande Vyvre wrote: Le 24/04/19 à 19:57, MRAB a écrit : On 2019-04-23 20:21, Vincent Vande Vyvre wrote: Le 23/04/19 à 20:54, Chris Angelico a écrit : Why a SystemError ? The SystemError means that you're us

Re: How to catch a usefull error message ?

2019-04-25 Thread Gregory Ewing
Vincent Vande Vyvre wrote: But the "return 0" is a common case for an "Foo_init()" see: https://docs.python.org/3.5//extending/newtypes.html#adding-data-and-methods-to-the-basic-example Look carefully at the init function from that example: static int Noddy_init(Noddy *self, PyObject

Re: How to catch a usefull error message ?

2019-04-24 Thread Chris Angelico
On Thu, Apr 25, 2019 at 2:32 PM Vincent Vande Vyvre wrote: > > Le 24/04/19 à 19:57, MRAB a écrit : > > On 2019-04-23 20:21, Vincent Vande Vyvre wrote: > >> Le 23/04/19 à 20:54, Chris Angelico a écrit : > >>> On Wed, Apr 24, 2019 at 4:47 AM Vincent Vande Vyvre > >>> wrote: > >>> > >>> Into the lib

Re: How to catch a usefull error message ?

2019-04-24 Thread Vincent Vande Vyvre
Le 24/04/19 à 19:57, MRAB a écrit : On 2019-04-23 20:21, Vincent Vande Vyvre wrote: Le 23/04/19 à 20:54, Chris Angelico a écrit : On Wed, Apr 24, 2019 at 4:47 AM Vincent Vande Vyvre wrote: Into the lib: static int ImgProc_init(ImgProc *self, PyObject *args, PyObject *kwds) {   PyObject *

Re: How to catch a usefull error message ?

2019-04-24 Thread MRAB
take one argument, a file name.   char *fname;   if (!PyArg_ParseTuple(args, "s", &fname))   return NULL; So, if I instanciate my object with a bad argument I've a good error message: tif = ImgProc(123) TypeError: argument 1 must be str, not int (followed by

Re: How to catch a usefull error message ?

2019-04-24 Thread MRAB
On 2019-04-23 20:21, Vincent Vande Vyvre wrote: Le 23/04/19 à 20:54, Chris Angelico a écrit : On Wed, Apr 24, 2019 at 4:47 AM Vincent Vande Vyvre wrote: Into the lib: static int ImgProc_init(ImgProc *self, PyObject *args, PyObject *kwds) { PyObject *tmp; char *fname; if (!P

Re: How to catch a usefull error message ?

2019-04-24 Thread Vincent Vande Vyvre
*fname;   if (!PyArg_ParseTuple(args, "s", &fname))   return NULL; So, if I instanciate my object with a bad argument I've a good error message: tif = ImgProc(123) TypeError: argument 1 must be str, not int (followed by the traceback) But if I do: try:   tif =

Re: How to catch a usefull error message ?

2019-04-24 Thread Vincent Vande Vyvre
Le 23/04/19 à 20:54, Chris Angelico a écrit : On Wed, Apr 24, 2019 at 4:47 AM Vincent Vande Vyvre wrote: Into the lib: static int ImgProc_init(ImgProc *self, PyObject *args, PyObject *kwds) { PyObject *tmp; char *fname; if (!PyArg_ParseTuple(args, "s", &fname)) ret

Re: How to catch a usefull error message ?

2019-04-23 Thread Gregory Ewing
Vincent Vande Vyvre wrote: static int ImgProc_init(ImgProc *self, PyObject *args, PyObject *kwds) { PyObject *tmp; char *fname; if (!PyArg_ParseTuple(args, "s", &fname)) return NULL; You should be returning -1 here, not NULL. -- Greg -- https://mail.python.org/mailman/list

Re: How to catch a usefull error message ?

2019-04-23 Thread MRAB
, "s", &fname)) return NULL; So, if I instanciate my object with a bad argument I've a good error message: tif = ImgProc(123) TypeError: argument 1 must be str, not int (followed by the traceback) But if I do: try: tif = ImgProc(123) except Exception as why:

Re: How to catch a usefull error message ?

2019-04-23 Thread Chris Angelico
> >> name. > >> > >> char *fname; > >> > >> if (!PyArg_ParseTuple(args, "s", &fname)) > >> return NULL; > >> > >> So, if I instanciate my object with a bad argument I've a good error > >> m

Re: How to catch a usefull error message ?

2019-04-23 Thread Chris Angelico
thod wich take one argument, a file > >> name. > >> > >> char *fname; > >> > >> if (!PyArg_ParseTuple(args, "s", &fname)) > >> return NULL; > >> > >> So, if I instanciate my object with a bad argument I've

Re: How to catch a usefull error message ?

2019-04-23 Thread Vincent Vande Vyvre
iate my object with a bad argument I've a good error message: tif = ImgProc(123) TypeError: argument 1 must be str, not int (followed by the traceback) But if I do: try:       tif = ImgProc(123) except Exception as why:       print("Error:", why) I get just: Error: returned a resu

Re: How to catch a usefull error message ?

2019-04-23 Thread Vincent Vande Vyvre
ULL; So, if I instanciate my object with a bad argument I've a good error message: tif = ImgProc(123) TypeError: argument 1 must be str, not int (followed by the traceback) But if I do: try: tif = ImgProc(123) except Exception as why: print("Error:", why) I get just: Erro

Re: How to catch a usefull error message ?

2019-04-23 Thread MRAB
. That's not very usefull. I prefer to keep the instanciation of this object into a try-except bloc but how to read the error message ? Have a look ta the 'traceback' module. Example: import traceback try: 1/0 except Exception as ex: print('Error:', ex) tr

Re: How to catch a usefull error message ?

2019-04-23 Thread Chris Angelico
gt; > So, if I instanciate my object with a bad argument I've a good error > message: > > tif = ImgProc(123) > TypeError: argument 1 must be str, not int > (followed by the traceback) > > But if I do: > try: > tif = ImgProc(123) > except Exception as why: &g

How to catch a usefull error message ?

2019-04-23 Thread Vincent Vande Vyvre
Hi, In a CPython lib I have an _init() method wich take one argument, a file name.     char *fname;     if (!PyArg_ParseTuple(args, "s", &fname))     return NULL; So, if I instanciate my object with a bad argument I've a good error message: tif = ImgProc(123) Ty

amusing error message

2018-11-02 Thread songbird
python/ https://salsa.debian.org/ant-guest/gfpoken-in-python/tree/next i'm using pyglet (most recent version) and gtk... the amusing bit: working on my git next branch... in my_sprite.py if i take the self out of on_animation_end parentheses i get this error message: TypeError: T

Re: Multiprocessing "Pool" aborts without any error message or return code? (Python 3.6.4, cygwin 32 bit, Windows Server 2012)

2018-08-13 Thread Niels Kristian Jensen
fredag den 10. august 2018 kl. 15.35.46 UTC+2 skrev Niels Kristian Jensen: > Please refer to: > (cut) It appears, that Python is simply not supported on Cygwin (!): https://bugs.python.org/issue30563 Best regards, Niels Kristian -- https://mail.python.org/mailman/listinfo/python-list

Multiprocessing "Pool" aborts without any error message or return code? (Python 3.6.4, cygwin 32 bit, Windows Server 2012)

2018-08-10 Thread aenkaa
Please refer to: https://docs.python.org/3.6/library/multiprocessing.html the first example program. If I run it on Windows 10 (Python 3.6.4) or Linux Mint 18 (Python 3.5.2), it works as expected. On Windows Server 2012, however, I get no (none!) output, no matter if I run with admin rights or

Re: I keep getting this error message when i try to run a program in Python

2018-03-22 Thread Thomas Jollans
On 2018-03-22 19:37, Damjan Stojanovski wrote: > i am sorry but i can not find a way to attach an image here so you can see > what i mean. Please someone tell me how to add an image here. > This is a text only list. -- https://mail.python.org/mailman/listinfo/python-list

Re: I keep getting this error message when i try to run a program in Python

2018-03-22 Thread Terry Reedy
On 3/22/2018 2:37 PM, Damjan Stojanovski wrote: i am sorry but i can not find a way to attach an image here so you can see what i mean. Please someone tell me how to add an image here. You cannot and there is no need. List is text only, no attachments. Reduce code to the minimum needed to ge

Re: I keep getting this error message when i try to run a program in Python

2018-03-22 Thread Larry Martell
On Thu, Mar 22, 2018 at 2:37 PM, Damjan Stojanovski wrote: > i am sorry but i can not find a way to attach an image here so you can see > what i mean. Please someone tell me how to add an image here. You can't. Copy/paste the error. And please include the post you are replying to. -- https://ma

Re: I keep getting this error message when i try to run a program in Python

2018-03-22 Thread Damjan Stojanovski
i am sorry but i can not find a way to attach an image here so you can see what i mean. Please someone tell me how to add an image here. Thanks Dan -- https://mail.python.org/mailman/listinfo/python-list

I keep getting this error message when i try to run a program in Python

2018-03-22 Thread Damjan Stojanovski
keep getting an error message and it shows that the error is in the beginning in the version of Python. (See a pic bellow) Can someone help me and tell me what to do and why is this error showing up??? Thanks Dan -- https://mail.python.org/mailman/listinfo/python-list

Re: error message by installation

2018-01-19 Thread Ben Finney
‪Ibrahim Nasr‬ ‪ via Python-list writes: > kindly inform me what to do. Welcome to this discussion forum, and congratulations on trying Python. Can you write a new message that describes exactly what you've tried, exactly what happened (please copy-and-paste any error messages), and what you ex

Re: error message by installation

2018-01-19 Thread breamoreboy
On Friday, January 19, 2018 at 8:47:52 PM UTC, i.na...@yahoo.com wrote: > kindly inform me what to do. Please read this http://www.catb.org/esr/faqs/smart-questions.html and then try asking again. -- Kindest regards. Mark Lawrence. -- https://mail.python.org/mailman/listinfo/python-list

error message by installation

2018-01-19 Thread ‪Ibrahim Nasr‬ ‪ via Python-list
kindly inform me what to do. -- https://mail.python.org/mailman/listinfo/python-list

Re: h5py.File() gives error message

2017-10-25 Thread C W
wow, thanks so much! I don't know how you figured that it's HTML, but that's awesome! Mike On Wed, Oct 25, 2017 at 5:20 AM, Peter Otten <__pete...@web.de> wrote: > C W wrote: > > > Oh, I was running a debug file, that's why the path is different. > > > > The file is here, > > https://www.dropbox

Re: h5py.File() gives error message

2017-10-25 Thread Peter Otten
C W wrote: > Oh, I was running a debug file, that's why the path is different. > > The file is here, > https://www.dropbox.com/s/6jx4rzyg9xwl95m/train_catvnoncat.h5?dl=0 > > Is anyone able to get it working? Thank you! Hm, that file seems to contain HTML and that causes an OSError here, too: $

Re: h5py.File() gives error message

2017-10-25 Thread C W
Oh, I was running a debug file, that's why the path is different. The file is here, https://www.dropbox.com/s/6jx4rzyg9xwl95m/train_catvnoncat.h5?dl=0 Is anyone able to get it working? Thank you! On Tue, Oct 24, 2017 at 10:37 PM, Dennis Lee Bieber wrote: > On Tue, 24 Oct 2017 18:02:26 -0700, R

Re: h5py.File() gives error message

2017-10-24 Thread Rob Gaddi
On 10/24/2017 10:58 AM, C W wrote: Dear list, The following Python code gives an error message # Python code starts here: import numpy as np import h5py train_dataset = h5py.File('datasets/train_catvnoncat.h5', "r") # Python code ends The error message: train

h5py.File() gives error message

2017-10-24 Thread C W
Dear list, The following Python code gives an error message # Python code starts here: import numpy as np import h5py train_dataset = h5py.File('datasets/train_catvnoncat.h5', "r") # Python code ends The error message: train_dataset = h5py.File('train_catvnoncat.

Re: Unhelpful error message

2017-06-06 Thread Thomas Nyberg
On 06/06/2017 02:32 PM, Chris Angelico wrote: > > That's what I thought. If the OP's happy to upgrade to 3.6/3.7, of > course, the problem disappears. > > ChrisA > As far as I can tell this affects all versions of python. Here are some versions I played with: 2.7: >>> float("") Traceback (most

Re: Unhelpful error message

2017-06-06 Thread Chris Angelico
On Wed, Jun 7, 2017 at 7:28 AM, Terry Reedy wrote: >> Yeah. Unfortunately this exception doesn't make good use of its args, >> so you can't get programmatic information from it (this is true in 3.7 >> too actually). So if a change were to be made, I'd recommend putting >> the actual string into e.

Re: Unhelpful error message

2017-06-06 Thread Terry Reedy
On 6/6/2017 2:29 PM, Chris Angelico wrote: On Wed, Jun 7, 2017 at 4:22 AM, Skip Montanaro wrote: On Tue, Jun 6, 2017 at 12:27 PM, Chris Angelico wrote: Or perhaps showing the repr of the string would be clearer. This would definitely be better, I think, and require no special casing of the

Re: Unhelpful error message

2017-06-06 Thread Chris Angelico
On Wed, Jun 7, 2017 at 4:31 AM, Thomas Nyberg wrote: > Does it make sense to open a bug report? I'm always a bit intimidated by > contributing to python, but the following patch does seem to work > (against a new clone of the master branch): Your original post talked about 2.7; when you say "mast

Re: Unhelpful error message

2017-06-06 Thread Jon Ribbens
ume the string >>> formatting is already there for a reason (e.g. "%.200s"). >> >> Just change the '%.200s' to '%.200R' and it should work. The '.200' >> isn't necessary to avoid buffer-overflow or anything, but an error >> m

Re: Unhelpful error message

2017-06-06 Thread Thomas Nyberg
alueError: could not convert string to float: >> >> Maybe there were some backward compatibility concerns that I lack the >> fantasy to imagine. > > It's a little odd, PyFloat_FromString just calls: > > PyErr_Format(PyExc_ValueError, > &qu

Re: Unhelpful error message

2017-06-06 Thread Thomas Nyberg
for a reason (e.g. "%.200s"). > > Just change the '%.200s' to '%.200R' and it should work. The '.200' > isn't necessary to avoid buffer-overflow or anything, but an error > message of unlimited length is probably a good t

Re: Unhelpful error message

2017-06-06 Thread Jon Ribbens
0s' to '%.200R' and it should work. The '.200' isn't necessary to avoid buffer-overflow or anything, but an error message of unlimited length is probably a good thing to avoid anyway ;-) -- https://mail.python.org/mailman/listinfo/python-list

Re: Unhelpful error message

2017-06-06 Thread Jon Ribbens
backward compatibility concerns that I lack the > fantasy to imagine. It's a little odd, PyFloat_FromString just calls: PyErr_Format(PyExc_ValueError, "could not convert string to float: %R", v); which should be appending the repr() of the argument to th

Re: Unhelpful error message

2017-06-06 Thread Thomas Nyberg
On 06/06/2017 11:22 AM, Skip Montanaro wrote: > On Tue, Jun 6, 2017 at 12:27 PM, Chris Angelico wrote: >> Or perhaps showing the repr of the string would be clearer. > > This would definitely be better, I think, and require no special > casing of the empty string. Still, I doubt this would ever b

Re: Unhelpful error message

2017-06-06 Thread Chris Angelico
On Wed, Jun 7, 2017 at 4:22 AM, Skip Montanaro wrote: > On Tue, Jun 6, 2017 at 12:27 PM, Chris Angelico wrote: >> Or perhaps showing the repr of the string would be clearer. > > This would definitely be better, I think, and require no special > casing of the empty string. Still, I doubt this woul

Re: Unhelpful error message

2017-06-06 Thread Skip Montanaro
On Tue, Jun 6, 2017 at 12:27 PM, Chris Angelico wrote: > Or perhaps showing the repr of the string would be clearer. This would definitely be better, I think, and require no special casing of the empty string. Still, I doubt this would ever be backported for fear of breaking code might be out the

Re: Unhelpful error message

2017-06-06 Thread Peter Otten
Stephen Tucker wrote: > Hi, > > I have just been thrown through an unecessary loop because of an unhelpful > error message. > > I am running Python 2.7.10 on a Windows 10 machine. > > I incorporate sample output from IDLE: > > ~~~

Re: Unhelpful error message

2017-06-06 Thread Chris Angelico
On Wed, Jun 7, 2017 at 3:09 AM, Stephen Tucker wrote: > I have just been thrown through an unecessary loop because of an unhelpful > error message. > > I am running Python 2.7.10 on a Windows 10 machine. > >>>> print float ("") > > Traceback (most

Unhelpful error message

2017-06-06 Thread Stephen Tucker
Hi, I have just been thrown through an unecessary loop because of an unhelpful error message. I am running Python 2.7.10 on a Windows 10 machine. I incorporate sample output from IDLE: ~~~ >>> print float ("123.456") 123.456 >>> print float

Re: Help Please ! Undocumented ERROR message so dont know how to fix the problem

2017-05-03 Thread Stephen Tucker
re! But here is the thing, when I run the program it >> gives me a very ambiguous message with only a string as in: >> >> "The Receiver Noise Figure = > 0x063E5A60> dBm" >> > > This is not an error message. This is Python faithfully prin

Re: Help Please ! Undocumented ERROR message so dont know how to fix the problem

2017-05-02 Thread Rhodri James
, when I run the program it gives me a very ambiguous message with only a string as in: "The Receiver Noise Figure = dBm" This is not an error message. This is Python faithfully printing out what you asked it to print out. Here's the line that does the printing: print

Re: Help Please ! Undocumented ERROR message so dont know how to fix the problem

2017-05-02 Thread Steve D'Aprano
figure! But here is the thing, when I run the program it > gives me a very ambiguous message with only a string as in: > > "The Receiver Noise Figure = 0x063E5A60> dBm" That is absolutely not a Python error message. There are two sorts of Python error messages: t

Re: Help Please ! Undocumented ERROR message so dont know how to fix the problem

2017-05-01 Thread Gregory Ewing
murdock wrote: BW = float (input ("Enter the Receiver Bandwidth in Hz")) Signal_to_Noise = float (input ("Enter the Signal to Noise in dB")) RX_Sensitivity = float (input ("Enter the RX_Sensitivity in dBm")) # print ("The Receiver Noise Figure = ",Hamath._Noise_Figure," dBm" ) I

Re: Help Please ! Undocumented ERROR message so dont know how to fix the problem

2017-05-01 Thread Michael Torrie
On 05/01/2017 08:57 PM, murdock wrote: > I am having a problem that seems to persist. I have written a program that > makes a mathematical calculation and uses a uses library that I have written. > It had been working but somehow in playing around with it, it stoppedgo > figure! But here is

Help Please ! Undocumented ERROR message so dont know how to fix the problem

2017-05-01 Thread murdock
float (input ("Enter the Receiver Bandwidth in Hz")) Signal_to_Noise = float (input ("Enter the Signal to Noise in dB")) RX_Sensitivity = float (input ("Enter the RX_Sensitivity in dBm")) # print ("The Receiver Noise Figure = ",Hamath._Noise_Figure,

Re: Error message IDLE

2017-01-09 Thread Gretchen Hasselbring
e exercises as files (.py) under the >> python directory which conflicted with the running of Idle. All cleared >> up now. > > Thanks for the update. Can you tell which file you shadowed to cause the > error? Perhaps even if the underlying problem turns out to be ha

  1   2   3   4   5   >