Post

bug记录

记录一些各种地方遇到的bug

使用bitsandbytes报错,当前版本不支持GPU(重装环境又好了)

报错提示

Warning: “The installed version of bitsandbytes was compiled without GPU support.”

调用GPU获取更详细的错误:

srun -w aias-compute-4 python -m bitsandbytes

尝试解决

https://blog.csdn.net/anycall201/article/details/129930919 解决bitsandbytes找不到GPU的问题,只需配置好相应的环境变量,LD_LIBRARY_PATH

因为libcudart.so 位于/usr/local/cuda/lib64 ,

vim ~/.bashrc

1
2
export LD_LIBRARY_PATH=/usr/local/cuda/lib64
export PATH=/usr/local/cuda/bin:$PATH

保存 .bashrc 文件,然后在终端中运行以下命令以使更改生效:

source ~/.bashrc

最终解决

删除环境,重新安装实验python指定版本,又tm好了……

$ conda create –name BadAgent python=3.10.10

安装playwright 自动化测试工具 时pip install的报错,改为conda install 的正常

最终解决

找了playwright 安装教程 改用conda install安装` 并在自己电脑上具有root权限和ui界面,来安装。

1
2
3
4
conda config --add channels conda-forge
conda config --add channels microsoft
conda install playwright  # 安装playwright
playwright install  # 安装驱动

分析

在conda 激活的环境中pip 安装 使用pypi的Channel mac上 conda install playwright ,Channel为microsoft 版本不一致: playwright 1.42.0 py311_0 microsoft reuiuirements.txt 要求playwright==1.40.0

发现在服务器安装的playwright ,Channel为conda-forge 但会缺少依赖项,无法正常启动 查看安装包可用频道命令: conda search playwright --info 尝试:conda install -c microsoft playwright=1.40.0 但提示sudo playwright install-deps 需要root 权限 ,先还是在自己电脑做吧 (后续考虑是否切换docker 安装的 方式)

This post is licensed under CC BY 4.0 by the author.