PermissionError: [Errno 13] Permission denied:
还没有人认领这个 Issue。
评估
调研方向
从 python/fb_ads_library_api_operators.py 中的 save_to_csv 和 open(output_file, "w") 调用开始,然后跟踪 python/fb_ads_library_api_cli.py 如何从报告中的命令传递输出文件名。在 Windows 上重现该命令,并确定为什么后续数据集无法打开 CSV;完成的标准是重复保存都能在没有 PermissionError 的情况下完成。
由索引模型根据 Issue 内容生成。
描述
Hello,
I am running this command on my terminal :
C:\Ad-Library-API-Script-Repository-main\python> py fb_ads_library_api_cli.py -t (token) -f "id,page_id,page_name,ad_creative_bodies,spend,demographic_distribution,bylines,ad_delivery_start_time" -c "CA" -s "climate" --after-date "2024-05-01" save_to_csv file.csv
And I get the following error :
Traceback (most recent call last):
File "C:\Ad-Library-API-Script-Repository-main\python\fb_ads_library_api_cli.py", line 147, in
main()
File "C:\Ad-Library-API-Script-Repository-main\python\fb_ads_library_api_cli.py", line 134, in main
save_to_csv(
File "C:\Ad-Library-API-Script-Repository-main\python\fb_ads_library_api_operators.py", line 96, in save_to_csv
with open(output_file, "w") as csvfile:
^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied.
I have tried adding "encoding="utf-8" in the fb_ads_library_api_operators file, but it didn't work (i am able to get one dataset then i get the same error all over again)
Does anyone have a solution ? i'm not sure I understand how the Permission system works in the Graph Api.
- 主要语言
- Python
- 星标
- 338
- 派生
- 131
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
facebookresearch/Ad-Library-API-Script-Repository 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 25/100
facebookresearch/Ad-Library-API-Script-Repository#62 · 2 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
-
难度 4/5 3-5 天 新手友好度 25/100
-
难度 4/5 3-5 天 新手友好度 25/100
-
难度 4/5 3-5 天 新手友好度 25/100
facebookresearch/Ad-Library-API-Script-Repository#50 · 5 条评论 · 4 个 reaction ·
查看 facebookresearch/Ad-Library-API-Script-Repository 的全部 Issue
相似的 Issue
-
bug ci good first issue
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 76/100
-
documentation
难度 2/5 半天 新手友好度 62/100
inmanta/inmanta-core#10835 ·
-
难度 1/5 1 小时以内 新手友好度 92/100
-
sponsored
难度 2/5 1-3 小时 新手友好度 65/100