question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

remote execution with local python package

See original GitHub issue

Hi,

demo project clearml demo server runs

I have a project with local package involving source compilation that need to be install via pip. The requirements.txt specifies the local package as: ./local_package

I’d like to run clearml-agent on such project but the package detection stage seems to only report the name of the local package and not the location as it would do for packages installed from a git repository.

So when I try to execute such a task with clearml-agent, the installation fails:

ERROR: Could not find a version that satisfies the requirement my_local_package==0.0.0 (from -r /tmp/cached-reqsj92bjyak.txt (line 4)) (from versions: none)
ERROR: No matching distribution found for my_local_package==0.0.0 (from -r /tmp/cached-reqsj92bjyak.txt (line 4))

clearml_agent: ERROR: Could not install task requirements!

I can still edit on the webui the install packages to add ./local_package but this is cumbersome. Moreover, after exectution, the install packages field stores an absolute path for this local package which can break replication on another worker.

A solution would be to move local_package on a git repository and install it through pip install git+... but my team is not willing to do it for their own reasons.

What do you think ?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bmartinncommented, Apr 13, 2021

Just updating here that an RC is out 😃

pip install clearml==-0.17.6rc1
1reaction
bmartinncommented, Mar 16, 2021

This task is now likely to fail (or run with a wrong version) if we try to run it on another worker as the path for my_local_package is probably not valid.

You have a very good point, this is definitely a bug. I’m updating here once the clearml-agent fixes this issue (basically updating back should replace back the local package link)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python Tutorial: ssh remote run of a local file - 2020
In summary, we have list of commands to be executed remotely and get the output file with log. Shell script remote run. Here...
Read more >
Run local python script on remote server - Stack Overflow
On my local machine, I run the script with a cmd-line parameter 'deploy', which triggers the remote execution. Without such a parameter, the...
Read more >
remoto - PyPI
A very simplistic remote-command-executor using connections to hosts (ssh, local, containers, and several others are supported) and Python in the remote end ...
Read more >
Remote Python Development in Visual Studio Code
Another common setup Python developers have is that their development environment is running on a remote machine, often because the remote ...
Read more >
RPyC - Transparent, Symmetric Distributed Computing — RPyC
RPyC (pronounced as are-pie-see), or Remote Python Call, is a transparent python library for symmetrical remote procedure calls, clustering and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found