AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-6703783

Manu Chadha's questions

Martin Hope
Manu Chadha
Asked: 2025-04-20 01:46:10 +0800 CST

无法使用 git repo 代码在 VS Code 中本地测试和运行 Azure 函数项目

  • 4

该 repo包含 Azure 函数的代码。

我想在 VS Code 中打开 repo,在本地测试它,然后在 Azure 中发布代码。

我下载了 zip 文件并在 VS Code 中打开了解压后的文件夹。

VS Code 检测到该文件夹​​包含 Azure 函数代码,并通过提示语言(在我的情况下是 Python)和解释器进行了相应的优化调整。

我该如何测试代码?当我使用 F5 键开始调试时,出现了错误:

 *  Executing task: .venv\Scripts\python -m pip install -r requirements.txt 

Collecting azure-functions
  Using cached azure_functions-1.23.0-py3-none-any.whl (137 kB)
Collecting azure-ai-projects
  Using cached azure_ai_projects-1.0.0b9-py3-none-any.whl (199 kB)
Collecting azure-identity
  Using cached azure_identity-1.21.0-py3-none-any.whl (189 kB)
Collecting werkzeug~=3.0.6
  Using cached werkzeug-3.0.6-py3-none-any.whl (227 kB)
Collecting MarkupSafe>=2.1.1
  Using cached MarkupSafe-2.1.5-cp38-cp38-win_amd64.whl (17 kB)
Collecting isodate>=0.6.1
  Using cached isodate-0.7.2-py3-none-any.whl (22 kB)
Collecting azure-core>=1.30.0
  Using cached azure_core-1.33.0-py3-none-any.whl (207 kB)
Collecting typing-extensions>=4.12.2
  Using cached typing_extensions-4.13.2-py3-none-any.whl (45 kB)
Collecting six>=1.11.0
  Using cached six-1.17.0-py2.py3-none-any.whl (11 kB)
Collecting requests>=2.21.0
  Using cached requests-2.32.3-py3-none-any.whl (64 kB)
Collecting charset-normalizer<4,>=2
  Using cached charset_normalizer-3.4.1-cp38-cp38-win_amd64.whl (102 kB)
Collecting urllib3<3,>=1.21.1
  Using cached urllib3-2.2.3-py3-none-any.whl (126 kB)
Collecting idna<4,>=2.5
  Using cached idna-3.10-py3-none-any.whl (70 kB)
Collecting certifi>=2017.4.17
  Using cached certifi-2025.1.31-py3-none-any.whl (166 kB)
Collecting msal-extensions>=1.2.0
  Using cached msal_extensions-1.3.0-py3-none-any.whl (28 kB)
Collecting msal>=1.30.0
  Using cached msal-1.32.0-py3-none-any.whl (114 kB)
Collecting cryptography>=2.5
  Using cached cryptography-44.0.2-cp37-abi3-win_amd64.whl (3.2 MB)
Collecting cffi>=1.12
  Using cached cffi-1.17.1-cp38-cp38-win_amd64.whl (181 kB)
Collecting pycparser
  Using cached pycparser-2.22-py3-none-any.whl (117 kB)
Collecting PyJWT[crypto]<3,>=1.0.0
  Using cached PyJWT-2.9.0-py3-none-any.whl (22 kB)
Installing collected packages: pycparser, cffi, urllib3, PyJWT, idna, cryptography, charset-normalizer, certifi, requests, typing-extensions, six, msal, MarkupSafe, werkzeug, msal-extensions, isodate, azure-core, azure-identity, azure-functions, azure-ai-projects
Successfully installed MarkupSafe-2.1.5 PyJWT-2.9.0 azure-ai-projects-1.0.0b9 azure-core-1.33.0 azure-functions-1.23.0 azure-identity-1.21.0 certifi-2025.1.31 cffi-1.17.1 charset-normalizer-3.4.1 cryptography-44.0.2 idna-3.10 isodate-0.7.2 msal-1.32.0 msal-extensions-1.3.0 pycparser-2.22 requests-2.32.3 six-1.17.0 typing-extensions-4.13.2 urllib3-2.2.3 werkzeug-3.0.6
WARNING: You are using pip version 21.1.1; however, version 25.0.1 is available.
You should consider upgrading via the 'C:\Users\manuchadha\OneDrive - Microsoft\Manu_Personal\programs\2025learnresolution\azure-ai-foundry-agent-main (1)\azure-ai-foundry-agent-main\.venv\Scripts\python.exe -m pip install --upgrade pip' command.
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: .venv\Scripts\activate ; func host start 

Can't determine project language from files. Please use one of [--dotnet-isolated, --dotnet, --javascript, --typescript, --java, --python, --powershell, --custom]
Can't determine project language from files. Please use one of [--dotnet-isolated, --dotnet, --javascript, --typescript, --java, --python, --powershell, --custom]
Can't determine project language from files. Please use one of [--dotnet-isolated, --dotnet, --javascript, --typescript, --java, --python, --powershell, --custom]

Azure Functions Core Tools
Core Tools Version:       4.0.1 Commit hash: N/A +421f0144b42047aa289ce691dc6db4fc8b6143e6 (32-bit)
Function Runtime Version: 4.834.3.22875

Can't determine project language from files. Please use one of [--dotnet-isolated, --dotnet, --javascript, --typescript, --java, --python, --powershell, --custom]
Can't determine project language from files. Please use one of [--dotnet-isolated, --dotnet, --javascript, --typescript, --java, --python, --powershell, --custom]
Can't determine project language from files. Please use one of [--dotnet-isolated, --dotnet, --javascript, --typescript, --java, --python, --powershell, --custom]
[2025-04-19T17:43:47.687Z] File 'C:\Program Files (x86)\dotnet\dotnet.exe' is not found, 'dotnet' invocation will rely on the PATH environment variable.
[2025-04-19T17:43:48.552Z] File 'C:\Program Files (x86)\dotnet\dotnet.exe' is not found, 'dotnet' invocation will rely on the PATH environment variable.
[2025-04-19T17:43:49.293Z] The 'FUNCTIONS_WORKER_RUNTIME' setting is required. Please specify a valid value. See https://go.microsoft.com/fwlink/?linkid=2257963 for more information. The application will continue to run, but may throw an exception in a future release.
[2025-04-19T17:43:49.513Z] No job functions found. Try making your job classes and methods public. If you're using binding extensions (e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. builder.AddAzureStorage(), builder.AddServiceBus(), builder.AddTimers(), etc.).
For detailed output, run func with --verbose flag.
[2025-04-19T17:43:54.272Z] Host lock lease acquired by instance ID '0000000000000000000000001CFB97BF'.

在此处输入图片描述

  • 1 个回答
  • 68 Views
Martin Hope
Manu Chadha
Asked: 2024-11-10 04:46:28 +0800 CST

在笔记本中使用 pip 安装包时如何提供用户输入

  • 5

notebook我在 中创建了一个Microsoft Fabric。我正在尝试安装一个包。安装过程要求用户输入。但是,我找不到提供答案的方法。

我使用的命令是!conda install -c conda-forge poppler。安装时,该过程要求回答是或否。

在此处输入图片描述

jupyter-notebook
  • 1 个回答
  • 19 Views
Martin Hope
Manu Chadha
Asked: 2024-01-10 02:11:05 +0800 CST

是否可以更改 Azure 部署中心中的外部 Git 链接

  • 5

Azure OpenAI已经自动为我部署了一个应用程序。似乎 src 是存储库,其位置在deployment centre. 我已经分叉了 repo,对 html 文件进行了更改(所有这些都是在网上完成的git,我没有下载 src 并使用了 IDE。我也不想这样做)。是否可以将其指向App新的存储库?我该怎么做?如何app service使用新的存储库和我的更改启动应用程序?

在此输入图像描述

  • 1 个回答
  • 17 Views
Martin Hope
Manu Chadha
Asked: 2024-01-03 23:10:18 +0800 CST

将 JSON 参数映射到 python api 以在 Azure AI 搜索中进行矢量搜索

  • 5

我正在关注本教程 - https://learn.microsoft.com/en-us/azure/search/search-get-started-vector。post我尝试使用pythonapi ,而不是发送呼叫。

对于请求

POST https://{{search-service-name}}.search.windows.net/indexes/{{index-name}}/docs/search?api-version=2023-11-01
Content-Type: application/json
api-key: {{admin-api-key}}
{
    "count": true,
    "select": "HotelId, HotelName, Description, Category",
    "vectors": [
        {
            "value": [0.01944167, 0.0040178085
                . . . 
                010858015, -0.017496133],
            "k": 7,
            "fields": "DescriptionVector",
            "kind": "vector",
            "exhaustive": true
        }
    ]
}

参数如何映射到https://learn.microsoft.com/en-us/python/api/azure-search-documents/azure.search.documents.searchclient?view=azure-python#azure-searchsearch中提到的api -文档搜索客户端搜索

到目前为止,我已经创建了

search_client.search(query_type='semantic', semantic_configuration_name='my-semantic-config',
    search_text="which restaurant has rating of 4 or over?", 
    select='HotelName,Description,Category', query_caption='extractive',
    vector_queries = [..],

我在哪里提到其他参数,例如k, fields, kind,exhaustive

  • 1 个回答
  • 15 Views
Martin Hope
Manu Chadha
Asked: 2023-09-03 19:06:01 +0800 CST

关于猫鼬文档的清晰度 - 连接返回连接数组

  • 7

我正在使用mongoose并参考api https://mongoosejs.com/docs/api/mongoose.html

我这么package.json说,"mongoose": "^7.4.0"所以我不确定我使用的是哪个特定版本。假设是7.5.0,我正在使用connectcall 来连接到mongodbviamongoose

const connection = await mongoose.connect(process.env.DATABASE_URL);
          var localdbClient = connection.connections[0].client;

我在文档中找不到它说connection有的地方connections array。哪里有提到呢?类型是connection[]a吗connection?这并不是这么说的 - https://mongoosejs.com/docs/api/mongoose.html

我应该如何引用api和definitions?

mongoose
  • 1 个回答
  • 8 Views
Martin Hope
Manu Chadha
Asked: 2023-08-19 00:37:34 +0800 CST

如何关闭所有数据库连接 - Moongose

  • 5

似乎当我连接到mongodb使用connect apiof时,我在对象mongoose内得到了一个连接数组connection

const connection = await mongoose.connect(process.env.DATABASE_URL);
        var dbClient = connection.connections[0].client;

如果我想关闭连接,我是否需要遍历每个连接connection,或者是否有更高级别的 api 可以关闭所有连接?

mongoose
  • 1 个回答
  • 8 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    重新格式化数字,在固定位置插入分隔符

    • 6 个回答
  • Marko Smith

    为什么 C++20 概念会导致循环约束错误,而老式的 SFINAE 不会?

    • 2 个回答
  • Marko Smith

    VScode 自动卸载扩展的问题(Material 主题)

    • 2 个回答
  • Marko Smith

    Vue 3:创建时出错“预期标识符但发现‘导入’”[重复]

    • 1 个回答
  • Marko Smith

    具有指定基础类型但没有枚举器的“枚举类”的用途是什么?

    • 1 个回答
  • Marko Smith

    如何修复未手动导入的模块的 MODULE_NOT_FOUND 错误?

    • 6 个回答
  • Marko Smith

    `(表达式,左值) = 右值` 在 C 或 C++ 中是有效的赋值吗?为什么有些编译器会接受/拒绝它?

    • 3 个回答
  • Marko Smith

    在 C++ 中,一个不执行任何操作的空程序需要 204KB 的堆,但在 C 中则不需要

    • 1 个回答
  • Marko Smith

    PowerBI 目前与 BigQuery 不兼容:Simba 驱动程序与 Windows 更新有关

    • 2 个回答
  • Marko Smith

    AdMob:MobileAds.initialize() - 对于某些设备,“java.lang.Integer 无法转换为 java.lang.String”

    • 1 个回答
  • Martin Hope
    Fantastic Mr Fox msvc std::vector 实现中仅不接受可复制类型 2025-04-23 06:40:49 +0800 CST
  • Martin Hope
    Howard Hinnant 使用 chrono 查找下一个工作日 2025-04-21 08:30:25 +0800 CST
  • Martin Hope
    Fedor 构造函数的成员初始化程序可以包含另一个成员的初始化吗? 2025-04-15 01:01:44 +0800 CST
  • Martin Hope
    Petr Filipský 为什么 C++20 概念会导致循环约束错误,而老式的 SFINAE 不会? 2025-03-23 21:39:40 +0800 CST
  • Martin Hope
    Catskul C++20 是否进行了更改,允许从已知绑定数组“type(&)[N]”转换为未知绑定数组“type(&)[]”? 2025-03-04 06:57:53 +0800 CST
  • Martin Hope
    Stefan Pochmann 为什么 {2,3,10} 和 {x,3,10} (x=2) 的顺序不同? 2025-01-13 23:24:07 +0800 CST
  • Martin Hope
    Chad Feller 在 5.2 版中,bash 条件语句中的 [[ .. ]] 中的分号现在是可选的吗? 2024-10-21 05:50:33 +0800 CST
  • Martin Hope
    Wrench 为什么双破折号 (--) 会导致此 MariaDB 子句评估为 true? 2024-05-05 13:37:20 +0800 CST
  • Martin Hope
    Waket Zheng 为什么 `dict(id=1, **{'id': 2})` 有时会引发 `KeyError: 'id'` 而不是 TypeError? 2024-05-04 14:19:19 +0800 CST
  • Martin Hope
    user924 AdMob:MobileAds.initialize() - 对于某些设备,“java.lang.Integer 无法转换为 java.lang.String” 2024-03-20 03:12:31 +0800 CST

热门标签

python javascript c++ c# java typescript sql reactjs html

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve