Thank you for the reply.
The docs could probably be improved in this regard [ā¦]
Nothing better than consult the creator directly. With all due respect to PyCall, I do really like PythonCall.
I hope @andrew-saydjari does not mind I will try to ask some additional questions here. Pls be informed that should there be a need/will, I am ready to start a new topic.
I am on Julia Version 1.8.0-DEV.772
and PythonCall v0.4.0
GitHub - JuliaPy/PythonCall.jl: Python and Julia in harmony.
[ā¦] donāt add packages by calling conda yourself. Either create a PythonCallDeps.toml file or use PythonCall.Deps.add.
So I understand that in case of PythonCallDeps.toml
I will have two of those files:
[ Info: Found PythonCall dependencies at '/home/username/data/pythoncall_test1/PythonCallDeps.toml'
[ Info: Found PythonCall dependencies at '/home/username/.julia/packages/PythonCall/KiVdf/PythonCallDeps.toml'
The first one I can create myself or will be created automaticly when I use / add some dependencies i.e. by PythonCall.Deps.add(conda_packages= ["python-cdo=1.5.5"]) # the syntax is slightly different than PyCall as it requires []
.
I did so like a line above and I got PythonCall.Deps.status()
printing:
Status `~/data/pythoncall_test1/Project.toml`
[5fb14364] OhMyREPL v0.5.10
[6099a3de] PythonCall v0.4.0 `https://github.com/cjdoris/PythonCall.jl.git#master`
Status /home/username/data/pythoncall_test1/PythonCallDeps.toml
Conda packages:
python-cdo =1.5.5
However, I am still getting ERROR: LoadError: Python: ModuleNotFoundError: No module named 'cdo'
when trying pycdo = pyimport("cdo")
.
I am recalling that when using PyCall even thought executing julia> Conda.add("python-cdo", channel="conda-forge")
I had to add this package again by shell> conda install -c conda-forge python-cdo
otherwise it was similarly not working. I do not now why was that. Other thing I noticed, I am not sure if it makes any difference, is that when PythonCall is adding the package, in contrary to pip and python I see lack of ''
like in the line below.
[ Info: Running
conda install --yes --no-channel-priority --freeze-installed --channel defaults āpip>=18ā python-cdo=1.5.5 āpython>=3.5,<4ā in /home/username/data/pythoncall_test1/conda_env environment
The other thing, not related to python-cdo is following info when trying to recreate the environment by PythonCall.Deps.add(create=true)
. This I guess might be related to my global conda, however, I am not sure.
[ Info: Found PythonCall dependencies at '/home/username/data/pythoncall_test/PythonCallDeps.toml'
[ Info: Found PythonCall dependencies at '/home/username/.julia/packages/PythonCall/KiVdf/PythonCallDeps.toml'
[ Info: Running `conda env remove --yes --prefix /home/username/data/pythoncall_test/conda_env` in root environment
Remove all packages in environment /home/username/data/pythoncall_test/conda_env:
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(143): Could not remove or rename /home/username/data/pythoncall_test/conda_env/lib/python3.10/lib-dynload/.nfs0000000092c551500000001a. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(143): Could not remove or rename /home/username/data/pythoncall_test/conda_env/lib/python3.10/lib-dynload/.nfs0000000092c5517e0000001c. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(143): Could not remove or rename /home/username/data/pythoncall_test/conda_env/lib/python3.10/lib-dynload/.nfs0000000092c551580000001b. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(143): Could not remove or rename /home/username/data/pythoncall_test/conda_env/lib/python3.10/lib-dynload/.nfs0000000092c551880000001e. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(143): Could not remove or rename /home/username/data/pythoncall_test/conda_env/lib/python3.10/lib-dynload/.nfs0000000092c5518b0000001d. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(143): Could not remove or rename /home/username/data/pythoncall_test/conda_env/lib/python3.10/lib-dynload/.nfs0000000092c5517b00000019. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(143): Could not remove or rename /home/username/data/pythoncall_test/conda_env/lib/python3.10/lib-dynload/.nfs0000000092c5516600000018. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(143): Could not remove or rename /home/username/data/pythoncall_test/conda_env/lib/.nfs0000000094f7e6640000001f. Please remove this file manually (you may need to reboot to free file handles)
[ Info: Running `conda create --yes --no-default-packages --no-channel-priority --prefix /home/username/data/pythoncall_test/conda_env --channel defaults 'pip>=18' python-cdo=1.5.5 'python>=3.5,<4'` in root environment
Collecting package metadata (current_repodata.json): done
Solving environment: done
## Package Plan ##
environment location: /home/username/data/pythoncall_test/conda_env
added / updated specs:
- pip[version='>=18']
- python-cdo=1.5.5
- python[version='>=3.5,<4']
Is there any chance for some additional advice, pls?