On 4/23/22, Sunil KR via Python-list wrote:
>
> I am happy with how the python starts up. When I use python I get
> python 2. I am ok with using py -3 for my new scripts, even using the
> shebang like #!py -3
`#!py -3` is not a valid shebang for the py launcher. Use `#!python3`
to run a script
On 2022-04-24 01:19:38 +, Sunil KR via Python-list wrote:
> But the real question/s for me is/are
>
> -- Why are my strings being sent to python3, so that I get the unicode
> related error?
You haven't shown us how you invoke those scripts, so we can't answer
that question with the
The question is not one of conversion. The question is this:
When I have both python 2 and python3, why is my python 2 script breaking? And
when I remove python3 the problem goes away?
In both cases (regardless of installing python 3 or not) I am using only python
2 to run the python2 script.
On Sun, 24 Apr 2022 01:19:38 + (UTC), Sunil KR
declaimed the following:
>
>-- Why are my strings being sent to python3, so that I get the unicode related
>error?
>-- in other cases I see error pertaining to the print function
In python2, the default for strings is BYTES -- you must
I am happy with how the python starts up. When I use
python
I get python 2.
I am ok with using py -3 for my new scripts, even using the shebang like
#!py -3
I don't want to put a unix (or for that matter windows) path in the shebang, as
it is not platform portable
But the real question/s for me
> On 22 Apr 2022, at 18:43, Gisle Vanem wrote:
>
> Barry wrote:
>
>> Tip “py.exe -0” will list the state of installed pythons.
> Not here; 'py.exe -0' gives:
> Requested Python version (0) not installed
>
> Which PyInstaller version support this '-0' option?
I do not when it was first
On 4/22/22 11:40, Gisle Vanem wrote:
> Barry wrote:
>
>> Tip “py.exe -0” will list the state of installed pythons.
> Not here; 'py.exe -0' gives:
> Requested Python version (0) not installed
>
> Which PyInstaller version support this '-0' option?
>
Looks like this got added around 3.7...
Barry wrote:
Tip “py.exe -0” will list the state of installed pythons.
Not here; 'py.exe -0' gives:
Requested Python version (0) not installed
Which PyInstaller version support this '-0' option?
--
--gv
--
https://mail.python.org/mailman/listinfo/python-list
Please excuse the formatting in my previous message. And it is not complete
even, so here is the rest of it.
What happens after I follow the above steps:
- Upon running one of my python 2 scripts (using python2), I see this error:
""" ^SyntaxError: (unicode error) 'unicodeescape' codec
> On 22 Apr 2022, at 17:10, Sunil KR via Python-list
> wrote:
>
> I have some scripts that are old and won't work under python2 and at the
> same time I am writing new scripts which will use python3. However, if python
> 2 and 3 cannot co-exist in a windows box it will be impossible to
I have some scripts that are old and won't work under python2 and at the same
time I am writing new scripts which will use python3. However, if python 2 and
3 cannot co-exist in a windows box it will be impossible to transition
What I try:- remove all pythons and launchers- Use windows installer
11 matches
Mail list logo