Re: Python not found

2023-01-27 Thread Eryk Sun
On 1/27/23, Bela Gesztesi  wrote:
>
> I'm not that familiar with the steps to be taken.
>
> How do I find the app version of Python for my desktop?
> or
> I don't know how to disable the "python.exe" and "python3.exe" app aliases

To install the app version, run "python3" from the command line. This
will open the Microsoft Store to install the Python app. (If it
doesn't, simply open the store from the start menu.) It may not open
to the latest version of Python, which currently is 3.11.1. Search for
"python" to find the latest version. Make sure the package is from
"Python Software Foundation". Click the "Get" button.

OR

To disable the aliases for the default installer app, begin by
right-clicking the start button and select "settings". Click on "Apps"
in the sidebar. Then click on "Apps & Features" in the window. Click
the drop-down arrow on "More settings". Click on "App execution
aliases". Disable the aliases for "App Installer / python.exe" and
"App Installer / python3.exe".

Some of the above names will be localized to your preferred user
interface language. Hopefully the translations are obvious.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python not found

2023-01-26 Thread Eryk Sun
On 1/26/23, Bela Gesztesi  wrote:
>
> C:\DJI>py comm_og_service_tool.py WM231 --port COM3 GimbalCalib JointCoarse
>
> Python was not found; run without arguments to install from the Microsoft
> Store, or disable this shortcut from Settings > Manage App Execution
> Aliases.

Do what it's telling you to do. Either install the app version of
Python, or disable the "python.exe" and "python3.exe"  app aliases.

The "python.exe" and "python3.exe" app aliases that are distributed
with Windows run a "PythonRedirector" app that just opens the
Microsoft Store to download the latest version of the app version of
Python. When run with command-line arguments, they print the message
that's quoted above.

What's happening here is that the py launcher reads a shebang line
from "comm_og_service_tool.py" of the form "#!/usr/bin/env python3".
It thus searches PATH for "python3.exe" and finds the app alias. We
should probably update the launcher to ignore an alias to the
"PythonRedirector" app.
-- 
https://mail.python.org/mailman/listinfo/python-list


Python not found

2023-01-26 Thread Bela Gesztesi
I have downloaded python, checking path installation and I receive the 
following:



C:\DJI>py comm_og_service_tool.py WM231 --port COM3 GimbalCalib JointCoarse

Python was not found; run without arguments to install from the Microsoft 
Store, or disable this shortcut from Settings > Manage App Execution Aliases.



Please offer any suggestions,

Thank you,

BG
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue11831] "pydoc -w" causes "no Python documentation found" error when the path is not current directory

2022-01-25 Thread Irit Katriel


Irit Katriel  added the comment:

Closed Issue31305 as a duplicate of this.

--
nosy: +iritkatriel
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31305] 'pydoc -w import' report "no Python documentation found for 'import'"

2022-01-25 Thread Irit Katriel


Irit Katriel  added the comment:

It is still relevant, but there is another issue for this: issue11831.

--
nosy: +iritkatriel
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> "pydoc -w" causes "no Python documentation found" error when 
the path is not current directory

___
Python tracker 
<https://bugs.python.org/issue31305>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11831] "pydoc -w" causes "no Python documentation found" error when the path is not current directory

2020-10-22 Thread Éric Araujo

Éric Araujo  added the comment:

pydoc help:

  pydoc -w  ...
Write out the HTML documentation for a module to a file in the current
directory. […]

So there is no support for not using the current directory, probably on purpose 
in order to use the current-dir-in-sys.path trick, so I’m not sure if this 
should be addressed.

(These days I would be more worried about src directories, which I’ve just 
tested are not handled well by pydoc, but that would be a different ticket.)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31305] 'pydoc -w import' report "no Python documentation found for 'import'"

2020-07-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
components: +Library (Lib)
type: behavior -> enhancement
versions: +Python 3.10 -Python 2.7, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31305] 'pydoc -w import' report "no Python documentation found for 'import'"

2020-07-05 Thread Joannah Nanjekye


Joannah Nanjekye  added the comment:

Given EOL is this still relevant? as it is marked 2.7

--
nosy: +nanjekyejoannah

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31305] 'pydoc -w import' report "no Python documentation found for 'import'"

2018-09-14 Thread Karthikeyan Singaravelan


New submission from Karthikeyan Singaravelan :

> Run "pydoc -w " to write out the HTML documentation for a module
to a file named ".html".

As mentioned in the help this works only for modules and since import is a 
keyword it throws an error. Maybe this could be added as an enhancement?

Thanks

--
nosy: +xtreak

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31305] 'pydoc -w import' report "no Python documentation found for 'import'"

2017-08-29 Thread Morris Li

Changes by Morris Li :


--
versions: +Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31305] 'pydoc -w import' report "no Python documentation found for 'import'"

2017-08-29 Thread Morris Li

Changes by Morris Li <limuyua...@126.com>:


--
assignee: docs@python
components: Documentation
nosy: docs@python, limuyuan
priority: normal
severity: normal
status: open
title: 'pydoc -w import' report "no Python documentation found for 'import'"
type: behavior
versions: Python 2.7

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue31305>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18274] python: not found

2013-06-21 Thread Brett Cannon

Brett Cannon added the comment:

It would either be with freebsd-ports for having packaged Mesa incorrectly or 
with Mesa for having something wrong with their build setup.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18274
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18274] python: not found

2013-06-20 Thread William Moreno

New submission from William Moreno:

mklib: Making FreeBSD static library:  librtasm.a
gmake[4]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary/rtasm'
gmake[4]: Entering directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary/util'
python u_format_access.py u_format.csv  u_format_access.c
python u_format_table.py u_format.csv  u_format_table.c
python: not found
python: not found
gmake[4]: *** No rule to make target `u_format_access.c', needed by `depend'.  
Stop.
gmake[4]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary/util'
gmake[3]: *** [default] Error 1
gmake[3]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary'
gmake[2]: *** [default] Error 1
gmake[2]: Leaving directory 
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium'
gmake[1]: *** [subdirs] Error 1
gmake[1]: Leaving directory `/usr/ports/graphics/libGL/work/Mesa-7.6.1/src'
gmake: *** [default] Error 1
*** [do-build] Error code 1

Stop in /usr/ports/graphics/libGL.

--
components: Build
messages: 191545
nosy: wmoreno3
priority: normal
severity: normal
status: open
title: python: not found
type: compile error
versions: Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18274
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18274] python: not found

2013-06-20 Thread Brett Cannon

Brett Cannon added the comment:

This is not the right place to ask for help with this. This is either a FreeBSD 
or Mesa issue. Have you tried installing Python using FreeBSD-ports?

--
nosy: +brett.cannon
resolution:  - invalid
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18274
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18274] python: not found

2013-06-20 Thread William Moreno

William Moreno added the comment:

Hi ... tks for answer me
 
What is the right place ?

Yes, I have installed Python using FreeBSD-ports?

I am using FreeBSD-ports regulary.

William Elasio Moreno Albarracin
Ingeniero de Sistemas de la Universidad Antonio Nariño
Universidad Industrial de Santander - Cursos Especialización en 
Telecomunicaciones


 De: Brett Cannon rep...@bugs.python.org
Para: wmore...@yahoo.com 
Enviado: Jueves, 20 de junio, 2013 8:43 P.M.
Asunto: [issue18274] python: not found

Brett Cannon added the comment:

This is not the right place to ask for help with this. This is either a FreeBSD 
or Mesa issue. Have you tried installing Python using FreeBSD-ports?

--
nosy: +brett.cannon
resolution:  - invalid
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18274
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18274
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11831] pydoc -w causes no Python documentation found error when the path is not current directory

2011-04-15 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +eric.araujo, ron_adam
title: python -w causes no Python documentation found error when the path 
is not current directory - pydoc -w causes no Python documentation found 
error when the path is not current directory

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11831
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11831] python -w causes no Python documentation found error when the path is not current directory

2011-04-11 Thread Susam Pal

New submission from Susam Pal su...@susam.in:

Steps to reproduce:

susam@nifty:~/pydoc-test$ tree ../pydoc-subject/
../pydoc-subject/
|-- calc
|   |-- formulae.py
|   `-- __init__.py
|-- config.py
|-- default.conf
|-- main.py
`-- spal.conf

1 directory, 6 files

susam@nifty:~/pydoc-test$ pydoc -w ../pydoc-subject/
no Python documentation found for 'calc'
no Python documentation found for 'config'
no Python documentation found for 'main'

--
components: Library (Lib)
messages: 133557
nosy: susam
priority: normal
severity: normal
status: open
title: python -w causes no Python documentation found error when the path 
is not current directory
type: behavior
versions: Python 2.7, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11831
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11831] python -w causes no Python documentation found error when the path is not current directory

2011-04-11 Thread Susam Pal

Susam Pal su...@susam.in added the comment:

Attached a one line fix that fixes this issue.

susam@nifty:~/pydoc-test$ pydoc -w ../pydoc-subject/
wrote calc.html
wrote calc.formulae.html
wrote config.html
wrote main.html
susam@nifty:~/pydoc-test$ ls
calc.formulae.html  calc.html  config.html  main.html

Diff:

--- /usr/lib/python2.7/pydoc.py.original2011-04-12 04:56:19.0 
+0530
+++ /usr/lib/python2.7/pydoc.py 2011-04-12 05:37:20.0 +0530
@@ -2299,6 +2299,7 @@
 if ispath(arg) and os.path.isfile(arg):
 arg = importfile(arg)
 if writing:
+sys.path.insert(0, arg)
 if ispath(arg) and os.path.isdir(arg):
 writedocs(arg)
 else:

--
keywords: +patch
Added file: http://bugs.python.org/file21624/pydoc-27-syspath.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11831
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Python on Windows XP 64-bit: python not found in registry

2008-09-12 Thread Berco Beute
After first trying to install the beta of Python 2.6 on my Windows XP
64-bit machine I finally succeeded installing 2.5.2. But I still have
a some problem: Installing iPython, PIL, easy_install etc fails saying
that python.exe cannot be found (although I can start the python
interpeter just fine). The problem is that python cannot be found in
the registry. I tried Effbot's solution of adding Python to the
registry, but that doesn't help:

http://effbot.org/zone/python-register.htm

Anybody here that had the same problem and solved it?

Thanks.

2B
--
http://mail.python.org/mailman/listinfo/python-list


Re: Python on Windows XP 64-bit: python not found in registry

2008-09-12 Thread Martin v. Löwis
 Anybody here that had the same problem and solved it?

Did you install the 32-bit or the 64-bit installer?

If the 64-bit installer, did you also install 32-bit or 64-bit
installers for iPython, PIL, and easy_install?

If you try to use 32-bit extensions or installers to locate a 64-bit
Python, that will fail: even if installation would succeed, you still
couldn't use the resulting installations, since you just can't mix
the two architectures in a single process.

Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list


Re: Is this possible in Python? SOLUTION FOUND

2006-03-14 Thread alainpoint

jalanb wrote:
 You might like the version here:
 http://www.jorendorff.com/toys/out.html

 Especially the need to know presentation, which is cute

 --
 Alan
 http://aivipi.blogspot.com

Thank you for the tip.
Meanwhile, I found a shorter solution to my problem:
def magic(arg):
import inspect
return inspect.stack()[1][4][0].split(magic)[-1][1:-1]

assert magic(3+4)==3+4

Alain

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Is this possible in Python? SOLUTION FOUND

2006-03-14 Thread Kay Schluehr

[EMAIL PROTECTED] wrote:
 jalanb wrote:
  You might like the version here:
  http://www.jorendorff.com/toys/out.html
 
  Especially the need to know presentation, which is cute
 
  --
  Alan
  http://aivipi.blogspot.com

 Thank you for the tip.
 Meanwhile, I found a shorter solution to my problem:
 def magic(arg):
   import inspect
   return inspect.stack()[1][4][0].split(magic)[-1][1:-1]

 assert magic(3+4)==3+4

 Alain

Does it? Using your function I keep an assertion error. Storing the
return value of magic()in a variable s I receive the following result:

def magic(arg):
import inspect
return inspect.stack()[1][4][0].split(magic)[-1][1:-1]

s = magic(3+4) # magic line

 s
'lin'


BTW grepping the stack will likely cause context sensitive results.

Kay

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Is this possible in Python? SOLUTION FOUND

2006-03-14 Thread alainpoint

Kay Schluehr wrote:
 [EMAIL PROTECTED] wrote:
  jalanb wrote:
   You might like the version here:
   http://www.jorendorff.com/toys/out.html
  
   Especially the need to know presentation, which is cute
  
   --
   Alan
   http://aivipi.blogspot.com
 
  Thank you for the tip.
  Meanwhile, I found a shorter solution to my problem:
  def magic(arg):
  import inspect
  return inspect.stack()[1][4][0].split(magic)[-1][1:-1]
 
  assert magic(3+4)==3+4
 
  Alain

 Does it? Using your function I keep an assertion error. Storing the
 return value of magic()in a variable s I receive the following result:

 def magic(arg):
 import inspect
 return inspect.stack()[1][4][0].split(magic)[-1][1:-1]

 s = magic(3+4) # magic line

  s
 'lin'


 BTW grepping the stack will likely cause context sensitive results.

 Kay


This is no production-ready code, just a proof of concept.
Adding 3 or 4 lines would make it more robust.
Just hope someone else will benefit from this discussion.

Alain

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Is this possible in Python? SOLUTION FOUND

2006-03-14 Thread Steven D'Aprano
On Tue, 14 Mar 2006 13:33:01 -0800, alainpoint wrote:

 
 Kay Schluehr wrote:
 [EMAIL PROTECTED] wrote:
  jalanb wrote:
   You might like the version here:
   http://www.jorendorff.com/toys/out.html
  
   Especially the need to know presentation, which is cute
  
   --
   Alan
   http://aivipi.blogspot.com
 
  Thank you for the tip.
  Meanwhile, I found a shorter solution to my problem:
  def magic(arg):
 import inspect
 return inspect.stack()[1][4][0].split(magic)[-1][1:-1]
 
  assert magic(3+4)==3+4
 
  Alain

 Does it? Using your function I keep an assertion error. Storing the
 return value of magic()in a variable s I receive the following result:

 def magic(arg):
 import inspect
 return inspect.stack()[1][4][0].split(magic)[-1][1:-1]

 s = magic(3+4) # magic line

  s
 'lin'


 BTW grepping the stack will likely cause context sensitive results.

 Kay
 
 
 This is no production-ready code, just a proof of concept.
 Adding 3 or 4 lines would make it more robust.
 Just hope someone else will benefit from this discussion.

Doesn't work for me either:

 def magic(arg):
... import inspect
... return inspect.stack()[1][4][0].split(magic)[-1][1:-1]
...
 magic(3+4)
Traceback (most recent call last):
  File stdin, line 1, in ?
  File stdin, line 3, in magic
TypeError: unsubscriptable object


Kay gets an AssertionError, I get a TypeError. I think describing it as
proof of concept is rather optimistic.

Here is the inspect.stack() I get:

[(frame object at 0x825d974, 'stdin', 2, 'magic', None, None),
(frame object at 0x8256534, 'stdin', 1, '?', None, None)]


-- 
Steven.

-- 
http://mail.python.org/mailman/listinfo/python-list