Closed hubert-associates closed 8 months ago
Persistence may be paying off: although it is written "azure-cosmos" everywhere, "azure.cosmos" seems to get me further... Maybe far enough, not sure yet:
julia> ac=pyimport("azure.cosmos") Python: <module 'azure.cosmos' from '/home/hubert/.julia/environments/v1.9/.CondaPkg/env/lib/python3.12/site-packages/azure/cosmos/init.py'>
Cool, sounds like you solved your problem.
Microsoft now has explicit support for Conda. Hurray, I thought :-) Here are the salient links on that: https://devblogs.microsoft.com/azure-sdk/python-conda-sdk-preview/ https://anaconda.org/Microsoft/azure-cosmos https://anaconda.org/conda-forge/azure-cosmos https://azure.github.io/azure-sdk/releases/latest/index.html#python
Here is my attempt as newcomer to PythonCall to get a simple ac=pyimport("azure-cosmos") to work with these Microsoft-channel modules. As shown below, pyimport("azure") works, but then does not provide the cosmos symbols I need (ac.CreateDatabase etc...)
Any idea what I'm doing wrong? ... as I continue to weed through various trial-error options... Thanks for any tips.