在注册表中找不到(Windows 10)



我正在Anaconda环境中作为一个包运行AnyPyTools。当我尝试运行AnyPyTools";开始";jupyter笔记本,我得到一个错误,说";在注册表中找不到AnyBody";。有什么想法吗?

我尝试卸载&重新安装AnyPyTools,其间会关闭,但仍然会出现相同的错误。此外,我找不到一个单独的AnyBody python包来安装。

版本信息:

  • conda版本:4.10.3 conda构建版本:3.21.6
  • python版本:3.8.12.最终版本.0
  • anypytools:版本=1.7.5构建=py38haa244fe1通道=conda-forge
  • Windows 10版本=10.0.18363内部版本=18363

代码

(来自http://localhost:8888/notebooks/01_Getting_started_with_anypytools.ipynb)

from anypytools import AnyPyProcess 
app = AnyPyProcess()

错误消息:

OSError: Could not locate AnyBody in registry

跟踪:

---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
~Anaconda3libsite-packagesanypytoolstools.py in get_anybodycon_path()
461     try:
--> 462         abpath = winreg.QueryValue(
463             winreg.HKEY_CLASSES_ROOT, "AnyBody.AnyScript\shell\open\command"
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
OSError                                   Traceback (most recent call last)
~AppDataLocalTemp/ipykernel_11000/586603320.py in <module>
1 from anypytools import AnyPyProcess
----> 2 app = AnyPyProcess()
~Anaconda3libsite-packagesanypytoolsabcutils.py in __init__(self, num_processes, anybodycon_path, timeout, silent, ignore_errors, warnings_to_include, fatal_warnings, return_task_info, keep_logfiles, logfile_prefix, python_env, debug_mode, use_gui, priority, **kwargs)
537 
538         if anybodycon_path is None:
--> 539             anybodycon_path = get_anybodycon_path()
540         anybodycon_path = Path(anybodycon_path)
541         if use_gui:
~Anaconda3libsite-packagesanypytoolstools.py in get_anybodycon_path()
464         )
465     except WindowsError:
--> 466         raise WindowsError("Could not locate AnyBody in registry")
467     abpath = abpath.rsplit(" ", 1)[0].strip('"')
468     abpath = os.path.join(os.path.dirname(abpath), "AnyBodyCon.exe")
OSError: Could not locate AnyBody in registry

答案是它不起作用,因为它需要单独安装需要付费许可证的Anyone软件。

最新更新