Re: it's a shame... python error over error

2025-01-03 Thread Chris Angelico via Python-list
On Sat, 4 Jan 2025 at 09:22, aotto1968 via Python-list wrote: > > On 30.12.24 18:29, Michael Torrie wrote: > > On 12/26/24 12:34 AM, aotto1968 via Python-list wrote: > >> sorry you don't understand the problem… > >> > >> > You managed to make a build of Python that attempts to link to a DLL > >>

Re: it's a shame... python error over error

2025-01-03 Thread aotto1968 via Python-list
On 30.12.24 18:29, Michael Torrie wrote: On 12/26/24 12:34 AM, aotto1968 via Python-list wrote: sorry you don't understand the problem… > You managed to make a build of Python that attempts to link to a DLL I never touch the OpenSUSE python. the OpenSUSE python try to use my sqalite3. The

Re: it's a shame... python error over error

2024-12-30 Thread Michael Torrie via Python-list
On 12/26/24 12:34 AM, aotto1968 via Python-list wrote: > sorry you don't understand the problem… > > > You managed to make a build of Python that attempts to link to a DLL > > I never touch the OpenSUSE python. the OpenSUSE python try to use my > sqalite3. The *only* mechanism that would cause

Re: it's a shame... python error over error

2024-12-29 Thread Chris Angelico via Python-list
On Mon, 30 Dec 2024 at 15:02, aotto1968 via Python-list wrote: > > You managed to make a build of Python that attempts to link to a DLL > > I never touch the OpenSUSE python. the OpenSUSE python try to use my > sqalite3. You keep saying this, but do you even know what "make install" does? Are y

Re: it's a shame... python error over error

2024-12-29 Thread aotto1968 via Python-list
On 26.12.24 19:33, Michael Torrie wrote: On 12/25/24 10:46 PM, Chris Angelico wrote: Right. That's exactly what would happen if he'd built Python using absolute paths to libraries, which is the normal way to do it. And so the solution is to rebuild Python using absolute paths to libraries. You

Re: it's a shame... python error over error

2024-12-29 Thread aotto1968 via Python-list
On 26.12.24 04:55, Michael Torrie wrote: On 12/25/24 3:55 PM, Chris Angelico via Python-list wrote: On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list wrote: It is not only an *usage* error it is also an *security* error because: 1) "cnf" is using OS python 2) os "root" python 3) using *

Re: it's a shame... python error over error

2024-12-29 Thread aotto1968 via Python-list
On 26.12.24 04:55, Michael Torrie wrote: On 12/25/24 3:55 PM, Chris Angelico via Python-list wrote: On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list wrote: It is not only an *usage* error it is also an *security* error because: 1) "cnf" is using OS python 2) os "root" python 3) using *

Re: it's a shame... python error over error

2024-12-29 Thread aotto1968 via Python-list
On 26.12.24 06:46, Chris Angelico wrote: On Thu, 26 Dec 2024 at 14:57, Michael Torrie via Python-list wrote: On 12/25/24 3:55 PM, Chris Angelico via Python-list wrote: On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list wrote: It is not only an *usage* error it is also an *security* err

Re: it's a shame... python error over error

2024-12-29 Thread aotto1968 via Python-list
On 25.12.24 23:55, Chris Angelico wrote: On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list wrote: It is not only an *usage* error it is also an *security* error because: 1) "cnf" is using OS python 2) os "root" python 3) using **my** local non-root library Yes. And YOU were the one who

Re: it's a shame... python error over error

2024-12-26 Thread Michael Torrie via Python-list
On 12/25/24 10:46 PM, Chris Angelico wrote: > Right. That's exactly what would happen if he'd built Python using > absolute paths to libraries, which is the normal way to do it. And so > the solution is to rebuild Python using absolute paths to libraries. You're right. Definitely appears to be a p

Re: it's a shame... python error over error

2024-12-25 Thread Chris Angelico via Python-list
On Thu, 26 Dec 2024 at 14:57, Michael Torrie via Python-list wrote: > > On 12/25/24 3:55 PM, Chris Angelico via Python-list wrote: > > On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list > > wrote: > >> It is not only an *usage* error it is also an *security* error because: > >> > >> 1) "cnf"

Re: it's a shame... python error over error

2024-12-25 Thread Michael Torrie via Python-list
On 12/25/24 8:55 PM, Michael Torrie wrote: > This is Python related, but > it's not necessarily python's fault per se. It's also a good reminder to use venv. Then there's no way of activating your custom python with its custom sqlite3 library unless you explicitly activate the venv. -- https://m

Re: it's a shame... python error over error

2024-12-25 Thread Michael Torrie via Python-list
On 12/25/24 3:55 PM, Chris Angelico via Python-list wrote: > On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list > wrote: >> It is not only an *usage* error it is also an *security* error because: >> >> 1) "cnf" is using OS python >> 2) os "root" python >> 3) using **my** local non-root librar

Re: it's a shame... python error over error

2024-12-25 Thread Chris Angelico via Python-list
On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list wrote: > It is not only an *usage* error it is also an *security* error because: > > 1) "cnf" is using OS python > 2) os "root" python > 3) using **my** local non-root library Yes. And YOU were the one who installed a new root Python. This i

Re: it's a shame... python error over error

2024-12-25 Thread aotto1968 via Python-list
On 25.12.24 12:05, aotto1968 wrote: I get angry… next python error… 1) The OpenSUSE command "cnf" checks if a special package feature is installed. 2) I recently compiled **my** SQLite3 library specifically tailored to **my** requirement and installed it in **my** SQLite3 project

Re: it's a shame... python error over error

2024-12-25 Thread aotto1968 via Python-list
I get angry… next python error… 1) The OpenSUSE command "cnf" checks if a special package feature is installed. 2) I recently compiled **my** SQLite3 library specifically tailored to **my** requirement and installed it in **my** SQLite3 project directory and never changed th

Re: it's a shame... python error over error

2024-12-17 Thread Michael Torrie via Python-list
On 12/16/24 12:08 AM, aotto1968 via Python-list wrote: > If I read the answers I come to the conclusion that the "supporters" at > python doesn't ever understand the problem. Sorry you feel that way. Various people gave the best advice they could based on what you had provided. You were given s

Re: it's a shame... python error over error

2024-12-16 Thread Grant Edwards via Python-list
On 2024-12-16, aotto1968 via Python-list wrote: > If I read the answers I come to the conclusion that the "supporters" > at python doesn't ever understand the problem. You should definitely demand to speak to the manager and request your money back. -- Grant -- https://mail.python.org/mailman

Re: it's a shame... python error over error

2024-12-16 Thread Peter J. Holzer via Python-list
On 2024-12-16 08:08:46 +0100, aotto1968 via Python-list wrote: > On 13.12.24 11:36, aotto1968 wrote: > > it's a shame... > > almost every tool I touch that uses "python" in some way has some > > configuration error because apparently a __private__ python installation > > __isn't__ properly "underst

Re: it's a shame... python error over error

2024-12-16 Thread aotto1968 via Python-list
On 13.12.24 11:36, aotto1968 wrote: it's a shame... almost every tool I touch that uses "python" in some way has some configuration error because apparently a __private__ python installation __isn't__ properly "understood". -> I think after ~30 years *python* should be able to handle a shared-

Re: it's a shame... python error over error

2024-12-14 Thread Michael Torrie via Python-list
On 12/14/24 10:31 AM, aotto1968 via Python-list wrote: > The CORE problem is that python3 works well in *my* environment but the > installation is done as root and root does not use *my* environment. > > the mono build search for a working python3 and find *my* > > HOME/ext/x86_64-suse-linux-gnu/

Re: it's a shame... python error over error

2024-12-14 Thread Chris Angelico via Python-list
On Sun, 15 Dec 2024 at 06:05, aotto1968 via Python-list wrote: > The CORE problem is that python3 works well in *my* environment but the > installation is done as root and root does not use *my* environment. > So, it's an environment problem, NOT a Python problem. You messed up your installation.

Re: it's a shame... python error over error

2024-12-14 Thread aotto1968 via Python-list
On 14.12.24 10:56, Peter J. Holzer wrote: On 2024-12-13 11:36:01 +0100, aotto1968 via Python-list wrote: it's a shame... almost every tool I touch that uses "python" in some way has some configuration error because apparently a __private__ python installation __isn't__ properly "understood". ->

Re: it's a shame... python error over error

2024-12-14 Thread Michael Torrie via Python-list
On 12/14/24 2:56 AM, Peter J. Holzer via Python-list wrote: > So it might be because it's in a different directory ("HOME/ext/..." is > a relative path. That will not work in a different directory. Also > "HOME" is a strange choice for a directory name. Did you mean $HOME?) or > because the accepta

Re: it's a shame... python error over error

2024-12-14 Thread Michael Torrie via Python-list
On 12/13/24 1:56 PM, aotto1968 via Python-list wrote: > the problem is *not* to setup an environment variable, the problem is that > python is *not* > able to setup the *python* environment by it self. You're mistaken in this case. Nothing you've posted indicates the problem is in Python itself.

Re: it's a shame... python error over error

2024-12-14 Thread Peter J. Holzer via Python-list
On 2024-12-13 11:36:01 +0100, aotto1968 via Python-list wrote: > it's a shame... > almost every tool I touch that uses "python" in some way has some > configuration error because apparently a __private__ python installation > __isn't__ properly "understood". > > -> I think after ~30 years *python*

Re: it's a shame... python error over error

2024-12-13 Thread aotto1968 via Python-list
On 13.12.24 19:24, Barry wrote: On 13 Dec 2024, at 15:54, aotto1968 via Python-list wrote: HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open shared object file: No such file or directory This is a debug build? Try

Re: it's a shame... python error over error

2024-12-13 Thread Barry via Python-list
> On 13 Dec 2024, at 15:54, aotto1968 via Python-list > wrote: > > HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared > libraries: libpython3.12d.so.1.0: cannot open shared object file: No such > file or directory This is a debug build? Try setting LD_LIBRARY_PAT

Re: it's a shame... python error over error

2024-12-13 Thread aotto1968 via Python-list
On 13.12.24 11:44, aotto1968 wrote: On 13.12.24 11:36, aotto1968 wrote: it's a shame... almost every tool I touch that uses "python" in some way has some configuration error because apparently a __private__ python installation __isn't__ properly "understood". -> I think after ~30 years *pytho

Re: it's a shame... python error over error

2024-12-13 Thread aotto1968 via Python-list
On 13.12.24 11:36, aotto1968 wrote: it's a shame... almost every tool I touch that uses "python" in some way has some configuration error because apparently a __private__ python installation __isn't__ properly "understood". -> I think after ~30 years *python* should be able to handle a shared-

it's a shame... python error over error

2024-12-13 Thread aotto1968 via Python-list
it's a shame... almost every tool I touch that uses "python" in some way has some configuration error because apparently a __private__ python installation __isn't__ properly "understood". -> I think after ~30 years *python* should be able to handle a shared-library proper __or__ switch to a *s

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-25 Thread Weatherby,Gerard
ehalf of Peter J. Holzer Date: Saturday, February 25, 2023 at 5:21 PM To: python-list@python.org Subject: Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ? On 2023-02-25 21:58:18 +, Weatherby,Gerard wrote: > I only use asserts for things I know to be true.

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-25 Thread Peter J. Holzer
On 2023-02-25 21:58:18 +, Weatherby,Gerard wrote: > I only use asserts for things I know to be true. Yeah, that's what assers are for. Or rather for things that you *think* are true. > In other words, a failing assert means I have a hole in my program > logic. Yes, if you include your assump

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-25 Thread Weatherby,Gerard
, February 25, 2023 at 9:22 AM To: python-list@python.org Subject: Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ? On 2023-02-25 09:10:06 -0500, Thomas Passin wrote: > On 2/25/2023 1:13 AM, Peter J. Holzer wrote: > > On 2023-02-24 18:19:52 -0500, Thoma

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-25 Thread Peter J. Holzer
On 2023-02-25 09:10:06 -0500, Thomas Passin wrote: > On 2/25/2023 1:13 AM, Peter J. Holzer wrote: > > On 2023-02-24 18:19:52 -0500, Thomas Passin wrote: > > > Sometimes you can use a second parameter to assert if you know what kind > > > of > > > error to expect: [...] > > > With type errors, asse

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-25 Thread Thomas Passin
On 2/25/2023 1:13 AM, Peter J. Holzer wrote: On 2023-02-24 18:19:52 -0500, Thomas Passin wrote: On 2/24/2023 2:47 PM, dn via Python-list wrote: On 25/02/2023 08.12, Peter J. Holzer wrote: On 2023-02-24 16:12:10 +1300, dn via Python-list wrote: In some ways, providing this information seems ap

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-24 Thread Peter J. Holzer
On 2023-02-24 18:19:52 -0500, Thomas Passin wrote: > On 2/24/2023 2:47 PM, dn via Python-list wrote: > > On 25/02/2023 08.12, Peter J. Holzer wrote: > > > On 2023-02-24 16:12:10 +1300, dn via Python-list wrote: > > > > In some ways, providing this information seems appropriate. > > > > Curiously, t

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-24 Thread Thomas Passin
On 2/24/2023 2:47 PM, dn via Python-list wrote: On 25/02/2023 08.12, Peter J. Holzer wrote: On 2023-02-24 16:12:10 +1300, dn via Python-list wrote: In some ways, providing this information seems appropriate. Curiously, this does not even occur during an assert exception - despite the value/rel

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-24 Thread Peter J. Holzer
On 2023-02-25 08:47:00 +1300, dn via Python-list wrote: > That said, have observed coders 'graduating' from other languages, making > wider use of assert - assumed to be more data (value) sanity-checks than > typing, but ... > > Do you use assert frequently? Not very often, but I do use it. Somet

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-24 Thread dn via Python-list
On 25/02/2023 08.12, Peter J. Holzer wrote: On 2023-02-24 16:12:10 +1300, dn via Python-list wrote: In some ways, providing this information seems appropriate. Curiously, this does not even occur during an assert exception - despite the value/relationship being the whole point of using the comma

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-24 Thread Peter J. Holzer
On 2023-02-24 16:12:10 +1300, dn via Python-list wrote: > In some ways, providing this information seems appropriate. Curiously, this > does not even occur during an assert exception - despite the > value/relationship being the whole point of using the command! > > x = 1 > assert x == 2 >

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-24 Thread Peter J. Holzer
On 2023-02-23 20:32:26 -0700, Michael Torrie wrote: > On 2/23/23 01:08, Hen Hanna wrote: > > Python VM is seeing an "int" object (123) (and telling me that) > > ... so it should be easy to print that "int" object What does > > Python VMknow ? and when does it know it ? > It knows ther

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-24 Thread Peter J. Holzer
r: can only concatenate str (not "int") to str > > > > > > Why doesn't Python (error msg) do the obvious thing and tell me > > WHAT the actual (offending, arg) values are ? > > > > In many cases, it'd help to know what string the var A ha

RE: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-23 Thread avi.e.gross
mainly gripes. I personally now ignore any post by them. -Original Message- From: Python-list On Behalf Of Michael Torrie Sent: Thursday, February 23, 2023 10:32 PM To: python-list@python.org Subject: Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ? On 2/

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-23 Thread Michael Torrie
On 2/23/23 01:08, Hen Hanna wrote: > Python VM is seeing an "int" object (123) (and telling me that) ... > so it should be easy to print that "int" object > What does Python VMknow ? and when does it know it ? It knows there is an object and its name and type. It knows this from t

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-23 Thread dn via Python-list
On 23/02/2023 09.05, Hen Hanna wrote: > py bug.py Traceback (most recent call last): File "C:\Usenet\bug.py", line 5, in print( a + 12 ) TypeError: can only concatenate str (not "int") to str Why doesn&#

RE: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-23 Thread avi.e.gross
gs down. -Original Message- From: Python-list On Behalf Of Rob Cliffe via Python-list Sent: Wednesday, February 22, 2023 4:31 PM To: python-list@python.org Subject: Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ? On 22/02/2023 20:05, Hen Hanna wro

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-23 Thread Rob Cliffe via Python-list
On 22/02/2023 20:05, Hen Hanna wrote: Python makes programming (debugging) so easy I agree with that! Rob Cliffe -- https://mail.python.org/mailman/listinfo/python-list

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-23 Thread Hen Hanna
na wrote: > >>>> py bug.py > >>> Traceback (most recent call last): > >>> File "C:\Usenet\bug.py", line 5, in > >>> print( a + 12 ) > >>> TypeError: can only concatenate str (not "int") to str > >>> >

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-23 Thread Barry
;>> File "C:\Usenet\bug.py", line 5, in >>> print( a + 12 ) >>> TypeError: can only concatenate str (not "int") to str >>> >>> >>> Why doesn't Python (error msg) do the obvious thing and tell me >>> WHAT th

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-22 Thread Hen Hanna
print( a + 12 ) > > TypeError: can only concatenate str (not "int") to str > > > > > > Why doesn't Python (error msg) do the obvious thing and tell me > > WHAT the actual (offending, arg) values are ? > > > > In many cases, it'd help to k

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-22 Thread Thomas Passin
On 2/22/2023 6:46 PM, Hen Hanna wrote: On Wednesday, February 22, 2023 at 12:05:34 PM UTC-8, Hen Hanna wrote: py bug.py Traceback (most recent call last): File "C:\Usenet\bug.py", line 5, in print( a + 12 ) TypeError: can only concatenate str (not "int") to str Why doesn

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-22 Thread Hen Hanna
On Wednesday, February 22, 2023 at 12:05:34 PM UTC-8, Hen Hanna wrote: > > py bug.py > Traceback (most recent call last): > File "C:\Usenet\bug.py", line 5, in > print( a + 12 ) > TypeError: can only concatenate str (not "int") to str > > >

RE: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-22 Thread avi.e.gross
PM To: python-list@python.org Subject: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ? > py bug.py Traceback (most recent call last): File "C:\Usenet\bug.py", line 5, in print( a + 12 ) TypeEr

Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-22 Thread Hen Hanna
> py bug.py Traceback (most recent call last): File "C:\Usenet\bug.py", line 5, in print( a + 12 ) TypeError: can only concatenate str (not "int") to str Why doesn't Python (error msg) do t

Re: How to fix Python error, The term '.../python.exe' is not recognized as the name of a cmdlet, function, script file, or operable program, in VS Code?

2022-10-12 Thread Dennis Lee Bieber
On Tue, 11 Oct 2022 16:40:31 -0700, LouisAden Capellupo declaimed the following: > So basically, I get, "The term '...\python.exe' is not recognized as the >name of a cmdlet, function, script, file, or operable program... At line: 1 >char: 3." It works the first way I showed with Code Runne

Re: How to fix Python error, The term '.../python.exe' is not recognized as the name of a cmdlet, function, script file, or operable program, in VS Code?

2022-10-11 Thread Eryk Sun
On 10/11/22, LouisAden Capellupo via Python-list wrote: > Variables. > C:\Users\It'sMeLil'Loui\AppData\Local\Programs\Python\Python310\Scripts\, > and C:\Users\It'sMeLil'Loui\AppData\Local\Programs\Python\Python310\. I suggest that you switch to a user account that doesn't have single quotes in

How to fix Python error, The term '.../python.exe' is not recognized as the name of a cmdlet, function, script file, or operable program, in VS Code?

2022-10-11 Thread LouisAden Capellupo via Python-list
Hi! I've just downloaded and installed Python 3.10.7 (64-bit) for Windows 10 from python.org. I'm quite new but, I've already downloaded and installed Visual Studio Code as well. I have included the two paths for python under User Variables.  C:\Users\It'sMeLil'Loui\AppData\Local\Programs\P

Re: Python Error

2020-11-24 Thread Mayukh Chakraborty via Python-list
Thanks. I updated the path and was able to launch python.exe for v3.8. I got rid of the other errors but now facing an error with 'pandas' although  it is installed ok and the path correctly updated. C:\Users\mchak>pythonPython 3.8.6 (tags/v3.8.6:db45529, Sep 23 2020, 15:52:53) [MSC v.1927 64 b

Re: Python Error

2020-11-24 Thread Barry
Two observations. Python.exe is not on your PATH. But that does not matter as you can use the py command instead And nymph may not be available for python 3.9 yet. Check on pypi to see if there is a build for 3.9. Maybe use 3.8 for the time being. Barry > On 24 Nov 2020, at 11:18, Mayukh Chak

Re: Python Error

2020-11-24 Thread Mayukh Chakraborty via Python-list
Thanks - I am able to launch 'py' from the command prompt and it gives me the python versions installed in my machine from python.org website. However, when I am trying to execute a python program from command prompt, I am getting the error below. I had reinstalled python packages (numpy, pandas

Re: Python Error

2020-11-23 Thread Gisle Vanem
Barry Scott wrote: If you have python from python.org installed you should be able to list all the version you have installed with the command: py -0 When was that '-0' feature added? I have Python 3.6 from Python.org and here a 'py.exe -0' gives: Requested Python version (0) not install

Re: Python Error

2020-11-23 Thread Mayukh Chakraborty via Python-list
med 'numpy.core._multiarray_umath' Regards,MayukhOn Monday, November 23, 2020, 08:17:06 PM GMT, Mayukh Chakraborty via Python-list wrote: Hi Terry, 1. The command py doesn't work. It gives me the error below : C:\Users\mchak>pyFatal Python error: init_sys_streams: can't

Re: Python Error

2020-11-23 Thread Mayukh Chakraborty via Python-list
Hi Terry, 1. The command py doesn't work. It gives me the error below : C:\Users\mchak>pyFatal Python error: init_sys_streams: can't initialize sys standard streamsPython runtime state: core initializedAttributeError: module 'io' has no attribute 'open' Curre

Re: Python Error

2020-11-23 Thread Mayukh Chakraborty via Python-list
1. The command 'py' doesn't work. It gives me the error below : C:\Users\mchak>pyFatal Python error: init_sys_streams: can't initialize sys standard streamsPython runtime state: core initializedAttributeError: module 'io' has no attribute 'open' Curren

Re: Python Error

2020-11-23 Thread Terry Reedy
On 11/23/2020 9:10 AM, Mayukh Chakraborty via Python-list wrote: Hi, I had uninstalled and installed Python in Windows 10 but I am getting the error below. Can you please help ? C:\Users\mchak>python Fatal Python error: init_sys_streams: can't initialize sys standard streams Python

Re: Python Error

2020-11-23 Thread Barry Scott
> On 23 Nov 2020, at 14:10, Mayukh Chakraborty via Python-list > wrote: > > Hi, > I had uninstalled and installed Python in Windows 10 but I am getting the > error below. Can you please help ? > C:\Users\mchak>pythonFatal Python error: init_sys_streams: can'

Python Error

2020-11-23 Thread Mayukh Chakraborty via Python-list
Hi, I had uninstalled and installed Python in Windows 10 but I am getting the error below. Can you please help ? C:\Users\mchak>pythonFatal Python error: init_sys_streams: can't initialize sys standard streamsPython runtime state: core initializedAttributeError: module 'io'

Re: Python error

2020-04-02 Thread MRAB
On 2020-04-02 19:09, J Conrado wrote: Hi, I have the version of python installed: Python 3.7.6 and Python 3.8.1 If I type: python Python 3.7.6 (default, Jan  8 2020, 19:59:22) [GCC 7.3.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information. >>> impo

Re: Python error

2020-04-02 Thread Mirko via Python-list
Am 02.04.2020 um 20:09 schrieb J Conrado: > Hi, > > I have the version of python installed: > Python 3.7.6 and Python 3.8.1 > If I type: > python > Python 3.7.6 (default, Jan 8 2020, 19:59:22) > [GCC 7.3.0] :: Anaconda, Inc. on linux > Type "help", "copyright", "credits" or "license" for more inf

Python error

2020-04-02 Thread J Conrado
Hi, I have the version of python installed: Python 3.7.6 and Python 3.8.1 If I type: python Python 3.7.6 (default, Jan  8 2020, 19:59:22) [GCC 7.3.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information. >>> import numpy it is Ok, no error, but if I di

Re: Python Error Still Occured on sklearn

2019-12-02 Thread Maisarah
Thank you. Maisarah Binti Mohd Yusak Certified CPRE-FL & CTFL Software Tester, IT Team. AVL Infotech (Malaysia) Sdn. Bhd.   L2-I-3, Enterprise - 4 , Technology Park Malaysia, Bukit Jalil, Kuala Lumpur, Malaysia -57000 Mobile: +6016 507 3051 Mail: mailto:maisa...@avlinfotech.net Li

Re: Fatal Python error

2019-01-27 Thread songbird
Abdallah Adham wrote: > Hey > I am having this problem for about 2 weeks, I can't do anything, so please > give me some instructions so I can solve it. > > Fatal Python error: initfsencoding: unable to load the file system code. > ModuleNotFoundError: No module named 'e

Fatal Python error

2019-01-27 Thread Abdallah Adham
Hey I am having this problem for about 2 weeks, I can't do anything, so please give me some instructions so I can solve it. Fatal Python error: initfsencoding: unable to load the file system code. ModuleNotFoundError: No module named 'encodings' :Current thread 0x3c7c (most re

Re: Problem with assignment. Python error or mine?

2017-12-22 Thread Tim Williams
On Friday, December 22, 2017 at 8:41:29 AM UTC-5, Tim Williams wrote: > On Thursday, December 21, 2017 at 12:18:11 PM UTC-5, MarkA wrote: > > On Thu, 21 Dec 2017 07:05:33 -0800, rafaeltfreire wrote: > > From docs.python.org: > > > > 8.10. copy — Shallow and deep copy operations > > > > Source cod

Re: Problem with assignment. Python error or mine?

2017-12-22 Thread Tim Williams
On Thursday, December 21, 2017 at 12:18:11 PM UTC-5, MarkA wrote: > On Thu, 21 Dec 2017 07:05:33 -0800, rafaeltfreire wrote: > From docs.python.org: > > 8.10. copy — Shallow and deep copy operations > > Source code: Lib/copy.py > > Assignment statements in Python do not copy objects, they create

Re: Problem with assignment. Python error or mine?

2017-12-21 Thread duncan smith
On 21/12/17 19:06, John Ladasky wrote: > On Thursday, December 21, 2017 at 7:37:39 AM UTC-8, MRAB wrote: > >> Python never makes a copy unless you ask it to. >> >> What x1=X does is make the name x1 refer to the same object that X >> refers to. No copying. > > Well, except with very simple, muta

Re: Problem with assignment. Python error or mine?

2017-12-21 Thread Kirill Balunov
2017-12-21 22:06 GMT+03:00 John Ladasky : > On Thursday, December 21, 2017 at 7:37:39 AM UTC-8, MRAB wrote: > > > Python never makes a copy unless you ask it to. > > > > What x1=X does is make the name x1 refer to the same object that X > > refers to. No copying. > > Well, except with very simple,

Re: Problem with assignment. Python error or mine?

2017-12-21 Thread John Ladasky
On Thursday, December 21, 2017 at 7:37:39 AM UTC-8, MRAB wrote: > Python never makes a copy unless you ask it to. > > What x1=X does is make the name x1 refer to the same object that X > refers to. No copying. Well, except with very simple, mutable data types like scalars... compare this: >>>

Re: Problem with assignment. Python error or mine?

2017-12-21 Thread MarkA
On Thu, 21 Dec 2017 07:05:33 -0800, rafaeltfreire wrote: From docs.python.org: 8.10. copy — Shallow and deep copy operations Source code: Lib/copy.py Assignment statements in Python do not copy objects, they create bindings between a target and an object. For collections that are mutable or co

Re: Problem with assignment. Python error or mine?

2017-12-21 Thread MRAB
On 2017-12-21 15:05, rafaeltfre...@gmail.com wrote: Dear community, I am having the following problem when I am assigning the elements of a vector below a certain number to zero or any other value. I am creating a new variable but Python edits the root variable. Why? import numpy as np X=np.ar

Re: Problem with assignment. Python error or mine?

2017-12-21 Thread rafaeltfreire
Em quinta-feira, 21 de dezembro de 2017 16:21:57 UTC+1, Neil Cerutti escreveu: > On 2017-12-21, rafaeltfre...@gmail.com wrote: > > Dear community, I am having the following problem when I am > > assigning the elements of a vector below a certain number to > > zero or any other value. I am creatin

Re: Problem with assignment. Python error or mine?

2017-12-21 Thread Neil Cerutti
On 2017-12-21, rafaeltfre...@gmail.com wrote: > Dear community, I am having the following problem when I am > assigning the elements of a vector below a certain number to > zero or any other value. I am creating a new variable but > Python edits the root variable. Why? > > import numpy as np > > X

Problem with assignment. Python error or mine?

2017-12-21 Thread rafaeltfreire
Dear community, I am having the following problem when I am assigning the elements of a vector below a certain number to zero or any other value. I am creating a new variable but Python edits the root variable. Why? import numpy as np X=np.arange(1, 1, 1) #root variable x1=X x1[x1<1]=0

Re: Python Error

2017-01-16 Thread Terry Reedy
On 1/16/2017 12:32 AM, Girish Khasnis wrote: Hi, I am unable to install Python on my system. After installing Python I get the below error when I try to open Python. [image: Inline image 1] Copy and paste the error message. This is text only list. -- Terry Jan Reedy -- https://mail.pytho

Python Error

2017-01-16 Thread Girish Khasnis
Hi, I am unable to install Python on my system. After installing Python I get the below error when I try to open Python. [image: Inline image 1] Regards Girish -- https://mail.python.org/mailman/listinfo/python-list

Re: import pybel in python error code

2016-09-09 Thread Peter Otten
talari.gopiprashanth.go...@gmail.com wrote: > ValueErrorTraceback (most recent call > last) in () > 1 from django.conf import settings > > 2 import pybel > 3 import random, os > > C:\Miniconda2\lib\site-packages\pybel.py in () > 67 _obconv = o

import pybel in python error code

2016-09-09 Thread talari . gopiprashanth . gopi2
ValueErrorTraceback (most recent call last) in () 1 from django.conf import settings > 2 import pybel 3 import random, os C:\Miniconda2\lib\site-packages\pybel.py in () 67 _obconv = ob.OBConversion() 68 _builder = ob.OBBuilder() ---> 69 in

Re: Fatal Python error

2016-08-31 Thread eryk sun
On Wed, Aug 31, 2016 at 9:04 AM, Wanderer <864483...@qq.com> wrote: > The system environment I alse configured.The Sigil project also build > successed. > But When I run the Sigil.exe that follow errors occured. > ------ > Fatal Python error: Py_Initialize: un

Fatal Python error

2016-08-31 Thread Wanderer
md64 QT:qt5.5.1 ActivePerl:ActivePerl-5.24.0.2400-MSWin32-x64-300558 Ruby:rubyinstaller-2.3.1-x64 Sigil:Sigil-0.9.6-Code VS:VS2015 The system environment I alse configured.The Sigil project also build successed. But When I run the Sigil.exe that follow errors occured. ------ Fat

Re: Python Error message

2016-08-05 Thread dieter
; Final response...HTTP Status 415 - class=" > line">type Status reportmessage > description The server refused this request because > the request entity is in a format not supported by the reque > sted resource for the requested method.Apache > Tomcat/8.0.26 What

Re: Python Error message

2016-08-04 Thread Chris Angelico
On Fri, Aug 5, 2016 at 5:36 AM, Terry Reedy wrote: > An example of the latter is when one writes code in Python to execute > 'other' code. (IDLE is one example. It both executes user statements and > evals user expressions.) One needs "except BaseException:" to isolate the > interpreter from e

Re: Python Error message

2016-08-04 Thread Terry Reedy
On 8/4/2016 12:19 PM, MRAB wrote: In those rare occasions when you do write a bare except, A bare "except:" is never needed and in my opinion, and that of others, one should never write one (except possibly for experimentation). Be explicit and write "except BaseException:" or "except Except

Re: Python Error message

2016-08-04 Thread Chris Angelico
On Fri, Aug 5, 2016 at 2:09 AM, Igor Korot wrote: >> [1] There are exceptions to this rule, for experts. But if you need to ask >> what they are, you're not ready to know > > But even the experts will never write such a code - you never know what > happens > in a month. Server might throw some ne

Re: Python Error message

2016-08-04 Thread MRAB
On 2016-08-04 17:09, Igor Korot wrote: Steven, On Thu, Aug 4, 2016 at 11:56 AM, Steven D'Aprano wrote: On Fri, 5 Aug 2016 01:31 am, GBANE FETIGUE wrote: try: parsed_response = json.loads(response) deployid = parsed_response[u'id'] print "Your deployid is: " + deployid except: prin

Re: Python Error message

2016-08-04 Thread MRAB
On 2016-08-04 16:31, GBANE FETIGUE wrote: Hi, I am running a python script to run some CURL commands, and return the response which is the applicationId and the versionId. I was able to do it. Now the versionId value supposed to be used on the second CURL as a value of the applications key whi

Re: Python Error message

2016-08-04 Thread Igor Korot
Steven, On Thu, Aug 4, 2016 at 11:56 AM, Steven D'Aprano wrote: > On Fri, 5 Aug 2016 01:31 am, GBANE FETIGUE wrote: > >> try: >> parsed_response = json.loads(response) >> deployid = parsed_response[u'id'] >> print "Your deployid is: " + deployid >> except: >> print 'Seems the named id

Re: Python Error message

2016-08-04 Thread Steven D'Aprano
On Fri, 5 Aug 2016 01:31 am, GBANE FETIGUE wrote: > try: > parsed_response = json.loads(response) > deployid = parsed_response[u'id'] > print "Your deployid is: " + deployid > except: > print 'Seems the named id already exists!' I'm not going to try to debug your code blindfolded wit

Re: Python Error message

2016-08-04 Thread Chris Angelico
On Fri, Aug 5, 2016 at 1:31 AM, GBANE FETIGUE wrote: > try: > parsed_response = json.loads(response) > print "Your applicationId is: " + parsed_response[u'applicationId'] > version_id = parsed_response[u'versionId'] > print "Your versionId is: " + version_id > except: > print '

Python Error message

2016-08-04 Thread GBANE FETIGUE
Hi, I am running a python script to run some CURL commands, and return the response which is the applicationId and the versionId. I was able to do it. Now the versionId value supposed to be used on the second CURL as a value of the applications key which is an array. but it doesn't work.I 'll p

  1   2   3   >