首页 > 其他分享 >Debug: ERROR: Directory '*py3-none-any.whl' is not installable. Neither 'setup.py�

Debug: ERROR: Directory '*py3-none-any.whl' is not installable. Neither 'setup.py�

时间:2024-01-31 15:59:38浏览次数:18  
标签:pyproject none py3 whl py tfx usr

[ERROR: Directory '*py3-none-any.whl' is not installable. Neither 'setup.py' nor 'pyproject.toml' found.]

kubectl lgos trainer-pod-name -n kubeflow

-->

, pipeline_info=id: "detect_anomolies_on_wafer_tfdv_schema"
, pipeline_run_id='detect-anomolies-on-wafer-tfdv-schema-lnz6m')
INFO:absl:Train on the 'train' split when train_args.splits is not set.
INFO:absl:Evaluate on the 'eval' split when eval_args.splits is not set.
INFO:absl:udf_utils.get_fn {'custom_config': '{"epochs": 50}', 'eval_args': '{}', 'module_path': 'detect_anomalies_in_wafer_trainer@/tfx/pipelines/detect_anomolies_on_wafer_tfdv_schema/_wheels/tfx_user_code_Trainer-0.0+35148d2579a5a421da4bda3bd371de44bf8888bb4ea4f5cc424f859c6e4db9db-py3-none-any.whl', 'train_args': '{\n "num_steps": 21\n}'} 'run_fn'
INFO:absl:Installing '/tfx/pipelines/detect_anomolies_on_wafer_tfdv_schema/_wheels/tfx_user_code_Trainer-0.0+35148d2579a5a421da4bda3bd371de44bf8888bb4ea4f5cc424f859c6e4db9db-py3-none-any.whl' to a temporary directory.
INFO:absl:Executing: ['/usr/bin/python', '-m', 'pip', 'install', '--target', '/tmp/tmp3dt6mzvy', '/tfx/pipelines/detect_anomolies_on_wafer_tfdv_schema/_wheels/tfx_user_code_Trainer-0.0+35148d2579a5a421da4bda3bd371de44bf8888bb4ea4f5cc424f859c6e4db9db-py3-none-any.whl']
ERROR: Directory '/tfx/pipelines/detect_anomolies_on_wafer_tfdv_schema/_wheels/tfx_user_code_Trainer-0.0+35148d2579a5a421da4bda3bd371de44bf8888bb4ea4f5cc424f859c6e4db9db-py3-none-any.whl' is not installable. Neither 'setup.py' nor 'pyproject.toml' found.

[notice] A new release of pip is available: 23.1.2 -> 23.3.2
[notice] To update, run: pip install --upgrade pip
INFO:absl:MetadataStore with gRPC connection initialized
ERROR:absl:Execution 27 failed.
INFO:absl:Cleaning up stateless execution info.
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.8/dist-packages/tfx/orchestration/kubeflow/container_entrypoint.py", line 510, in
main(sys.argv[1:])
File "/usr/local/lib/python3.8/dist-packages/tfx/orchestration/kubeflow/container_entrypoint.py", line 502, in main
execution_info = component_launcher.launch()
File "/usr/local/lib/python3.8/dist-packages/tfx/orchestration/portable/launcher.py", line 574, in launch
executor_output = self._run_executor(execution_info)
File "/usr/local/lib/python3.8/dist-packages/tfx/orchestration/portable/launcher.py", line 449, in _run_executor
executor_output = self._executor_operator.run_executor(execution_info)
File "/usr/local/lib/python3.8/dist-packages/tfx/orchestration/portable/python_executor_operator.py", line 135, in run_executor
return run_with_executor(execution_info, executor)
File "/usr/local/lib/python3.8/dist-packages/tfx/orchestration/portable/python_executor_operator.py", line 58, in run_with_executor
result = executor.Do(execution_info.input_dict, output_dict,
File "/usr/local/lib/python3.8/dist-packages/tfx/components/trainer/executor.py", line 174, in Do
run_fn = udf_utils.get_fn(exec_properties, 'run_fn')
File "/usr/local/lib/python3.8/dist-packages/tfx/components/util/udf_utils.py", line 56, in get_fn
return import_utils.import_func_from_module(module_path, fn_name)
File "/usr/local/lib/python3.8/dist-packages/tfx/utils/import_utils.py", line 59, in import_func_from_module
wheel_context_manager.enter()
File "/usr/local/lib/python3.8/dist-packages/tfx/components/util/udf_utils.py", line 307, in enter
install_to_temp_directory(dependency, temp_dir=self.temp_directory)
File "/usr/local/lib/python3.8/dist-packages/tfx/components/util/udf_utils.py", line 348, in install_to_temp_directory
subprocess.check_call(install_command)
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python', '-m', 'pip', 'install', '--target', '/tmp/tmp3dt6mzvy', '/tfx/pipelines/detect_anomolies_on_wafer_tfdv_schema/_wheels/tfx_user_code_Trainer-0.0+35148d2579a5a421da4bda3bd371de44bf8888bb4ea4f5cc424f859c6e4db9db-py3-none-any.whl']' returned non-zero exit status 1.

[ANALYSIS]

1. Run the failed command: /usr/bin/python, -m, pip, install, --target, /tmp/tmp3dt6mzvy, tfx_user_code_Trainer-0.0+35148d2579a5a421da4bda3bd371de44bf8888bb4ea4f5cc424f859c6e4db9db-py3-none-any.whl-path-on-host , on host, to see if ok.

$ /home/maye/anaconda3/bin/python -m pip install --target /tmp/tmptse6gaxa pipelines/detect_anomolies_on_wafer_tfdv_schema/_wheels/tfx_user_code_Trainer-0.0+35148d2579a5a421da4bda3bd371de44bf8888bb4ea4f5cc424f859c6e4db9db-py3-none-any.whl

Processing ./pipelines/detect_anomolies_on_wafer_tfdv_schema/_wheels/tfx_user_code_Trainer-0.0+35148d2579a5a421da4bda3bd371de44bf8888bb4ea4f5cc424f859c6e4db9db-py3-none-any.whl
Installing collected packages: tfx-user-code-Trainer
Successfully installed tfx-user-code-Trainer-0.0+35148d2579a5a421da4bda3bd371de44bf8888bb4ea4f5cc424f859c6e4db9db
$

And, *.whl is zip file, not need setup.py in it.

2. run the failed command in the container, to see if ok.

kubectl exec -it trainer-pod-name -n kubeflow -- bash

--> entered pod trainer:

root@detect-anomolies-on-wafer-tfdv-schema-lnz6m-331885160:/tfx/src# /usr/bin/python -m pip install --target /tmp/tmp3dt6mzvy /tfx/pipelines/detect_anomolies_on_wafer_tfdv_schema/_wheels/tfx_user_code_Trainer-0.0+35148d2579a5a421da4bda3bd371de44bf8888bb4ea4f5cc424f859c6e4db9db-py3-none-any.whl

ERROR: Directory '/tfx/pipelines/detect_anomolies_on_wafer_tfdv_schema/_wheels/tfx_user_code_Trainer-0.0+35148d2579a5a421da4bda3bd371de44bf8888bb4ea4f5cc424f859c6e4db9db-py3-none-any.whl' is not installable. Neither 'setup.py' nor 'pyproject.toml' found.

3. see if the needed packages wheel and setuptools for intalling *.whl, exist in the container.

kubectl exec -it trainer-pod-name -n kubeflow -- bash

--> entered pod trainer:

root@detect-anomolies-on-wafer-tfdv-schema-lnz6m-331885160:/usr/bin# /usr/bin/python

Python 3.8.10 (default, Mar 13 2023, 10:26:41) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import wheel
>>> import setuptools
>>> 

4. cd the Directory '*py3-none-any.whl' which is not installable. Neither 'setup.py' nor 'pyproject.toml' found. to see what in it.

kubectl exec -it trainer-pod-name -n kubeflow -- bash

--> entered pod trainer:

root@detect-anomolies-on-wafer-tfdv-schema-lnz6m-331885160:/tfx/src# cd path-of-*py3-none-any.whl 
root@detect-anomolies-on-wafer-tfdv-schema-lnz6m-331885160: path-of *py3-none-any.whl # ls

--> nothing shown

This means Directory *py3-none-any.whl is an empty directory.

5. check the hostPath which mounts to paht-of-*py3-none-any.whl, to see if ok.

There is directory: /home/maye/pipelnes/detect_anomolies_on_wafer_tfdv_schema/_wheels/tfx_user_code_Trainer-0.0+35148d2579a5a421da4bda3bd371de44bf8888bb4ea4f5cc424f859c6e4db9db-py3-none-any.whl
on host, which is an newly created empty directory.

The volumes.hostPath.path is spelled wrong: "pipelnes", the right one is: "pipelines", in the file pipeline.yaml, and if the volumes.hostPath.path not exists on host, it will be created.
And the true *.whl is File, not Directory.

Attention:
volumeMounts.mountPath can not contain parent directory which does not exists, if so, no error will be raised, bu the mount Path just not work.

[SOLUTION]

The volumes.hostPath.path is spelled wrong: "pipelnes", the right one is: "pipelines", in the file pipeline.yaml.

标签:pyproject,none,py3,whl,py,tfx,usr
From: https://www.cnblogs.com/zhenxia-jiuyou/p/17999414

相关文章

  • python网络编程笔记(一)Socket 编程入门
    一:Socket简介套接字起源于20世纪70年代加利福尼亚大学伯克利分校版本的Unix,即人们所说的BSDUnix。因此,有时人们也把套接字称为“伯克利套接字"或"BSD套接字”。一开始,套接字被设计用在同-台主机上多个应用程序之间的通讯BSDSocket接口是TCP/IP网络的API在Linux,Unix和W......
  • python网络编程(二)模拟ssh远程执行命令
    1、项目需求:要实现一个像ssh远程连接工具一样,在终端输入命令,返回对应的结果。比如window的dos命令:dir:查看目录下的文件ipconfig:查看网卡信息tasklist:查看进程列表linux的命令:ls:查看目录下的文件ifconfig:查看网卡信息ps-aux:查看进程列表2、项目分析:这......
  • python网络编程(三)实现文件下载功能
    一:目标:要实现一个客户端从服务端下载文件的功能,这个在模拟ssh远程执行命令的基础上再做修改就可以了二:分析:1、要规定客户端获取文件的格式:下载文件用get文件名,比如要下载服务端的a.txt,就写成geta.txt2、因为我目前是客户端和服务端都是在一台服务器上,我模拟的时候就把......
  • python网络编程(四)用面向对象方式实现文件上传下载
    一:背景在之前已经实现了文件的下载,现在再来完善上传功能,并且使用面向对象来封装,让代码看起来更加清楚明了。二:使用规则和运行结果下载文件,下载格式get文件名get空格后面直接接文件名称,在服务端存放的文件名上传文件,上传格式put文件路径+文件名因为是上传,上传的时......
  • 手撸代码#1:从0开始的LeNet5(PyTorch框架)
    摘要:本文介绍了如何从0开始构建LeNet5去识别手写数字(在MNIST数据集上)。代码包括三大部分:网络结构部分、训练部分、测试部分。在编LeNet5部分代码之前,本文详细地梳理了LeNet5的结构,对于初学者十分友好。训练和测试部分也都有详细的代码说明。在实现LeNet5手写数字识别的同时,......
  • python将pdf每页截图保存
    python将pdf每页保存成图片保存一、安装依赖包pipinstallpdf2image 二、代码importosfrompdf2imageimportconvert_from_pathdefconvert_pdf_to_images(pdf_file,output_folder):#创建输出文件夹os.makedirs(output_folder,exist_ok=True)#......
  • python识别图片中的文本保存到word中
    python可以使用第三方库pytesseract实现图像的文本识别,并将识别的结果保存到word中,代码本生不复杂pytesseract环境有点麻烦这里整理总结一下一、简介Tesseract是一个由HP实验室开发由Google维护的开源的光学字符识别(OCR)引擎,可以在Apache2.0许可下获得。它可以直接使用,或者(......
  • python中设置cudnn作用理解
     1、cudnn的简介cuDNN(CUDADeepNeuralNetworklibrary):是NVIDIA打造的针对深度神经网络的加速库,是一个用于深层神经网络的GPU加速库。如果你要用GPU训练模型,cuDNN不是必须的,但是一般会采用这个加速库。2、torch.backends.cudnn的理解 cuDNN使用非确定性算法,并且可以使用to......
  • scrapy 响应文本乱码(不支持Brotli解压)
    一.介绍在scrapy中,默认不支持Brotli解压,当发现响应乱码时,如何分析确定是由Brotli压缩引起的呢?1)是看请求头是否有'Accept-Encoding':"gzip,deflate,br"中的br,如果去掉br再请求网页,如果响应不成功,则表示服务端只支持br压缩格式,如果成功则看是否乱码。2)......
  • Python+Selenium 自动化测试
    自动化测试是把以人为驱动的测试行为转化成机器执行的一种过程,通常在设计了测试用例并通过评审之后,由测试人员根据测试用例中描述的规程一步步执行测试,得到实际结果与期望结果的比较,再此过程中,为了节省人力,时间或硬件资源,提高测试效率,便引用了自动化测试的概念Selenium:是一套代码......