valohai / docs

:blue_book: Valohai ecosystem documentation
https://docs.valohai.com/
0 stars 2 forks source link

Feedback on Upload output data #193

Open marcelo-borghetti opened 2 years ago

marcelo-borghetti commented 2 years ago

Page: tutorials/learning-paths/fundamentals/3-outputs.html

Feedback: Hello, I am trying to run the exact same code on web interface with vh exec run train-model --adhoc but it fails. The log message points the error as "ModuleNotFoundError: No module named 'valohai'". Locally it is working perfectly. If I remove valohai references from the scripts, it runs on web interface too.

ruksi commented 2 years ago

This would indicate that pip package valohai-utils is not installed according to step.command instructions specified by valohai.yaml

Which repository are you using? If it's public, I could take a look or otherwise you could include (a possibly stripped) valohai.yaml containing the step you are using.

Most probable causes are:

  1. there is no pip install -r requirements.txt in the step.command section of the valohai.yaml
  2. there is no valohai-utils specified in the said requirements.txt
  3. this both are assuming that valohai-utils isn't already part of the Docker image you are using, which is usually the case

For example, our public TensorFlow example lists these at:

marcelo-borghetti commented 2 years ago

Hello,

Thank you very much for the reply. I am not using any repo; I just followed the instructions here: https://docs.valohai.com/tutorials/learning-paths/fundamentals/3-outputs/ Note that, I created an account on Valohai and I can run the models from the previous tutorials successfully. The script is identical to the script on the page.

But this is the error I get for this tutorial: 14:42:47 WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7faee03a7978>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/valohai-utils/ 14:42:47 ERROR: Could not find a version that satisfies the requirement valohai-utils (from versions: none) 14:42:47 ERROR: No matching distribution found for valohai-utils 14:42:48 Traceback (most recent call last): 14:42:48 File "train.py", line 3, in 14:42:48 import valohai 14:42:48 ModuleNotFoundError: No module named 'valohai'

Attached found valohai.yaml and requirements.txt Upload output data - Valohai documentationhttps://docs.valohai.com/tutorials/learning-paths/fundamentals/3-outputs/ Valohai Fundamentals learning path - Uploading data from your Valohai execution docs.valohai.com 

Best regards,

[cid:1b35c0ca-ba0e-44b1-b228-233d13136236]​


Marcelo Borghetti Data Scientist - Engineering Team SYNGENTA DIGITAL BRASIL Rua dos Inconfidentes 911, 11º e 20º andar - BH/MG


From: Ruksi Laine @.> Sent: Tuesday, February 1, 2022 1:15 PM To: valohai/docs @.> Cc: Borghetti Marcelo BRBH @.>; Author @.> Subject: Re: [valohai/docs] Feedback on Upload output data (Issue #193)

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.


This would indicate that pip package valohai-utils is not installed according to step.command instructions specified by valohai.yaml

Which repository are you using? If it's public, I could take a look or otherwise you could include (a possibly stripped) valohai.yaml containing the step you are using.

Most probable causes are:

  1. there is no pip install -r requirements.txt in the step.command section of the valohai.yaml
  2. there is no valohai-utils specified in the said requirements.txt
  3. this both are assuming that valohai-utils isn't already part of the Docker image you are using, which is usually the case

For example, our public TensorFlow example lists these at:

— Reply to this email directly, view it on GitHubhttps://github.com/valohai/docs/issues/193#issuecomment-1027018813, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEGCWIU7UW7UFHQFWT2U7D3UZABL5ANCNFSM5NJMGVUA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>

This message may contain confidential information. If you are not the designated recipient, please notify the sender immediately, and delete the original and any copies. Any use of the message by you is prohibited.

valohai-utils==0.1.11

ruksi commented 2 years ago

ah, yes, I think I got it, possibly

if you've created an account without the help of our customer success team, your account won't be able to connect to the Internet (reason being crypto miners, we forbid network access on new accounts until they are flagged safe)

the fastest way to reach them would be to open a chat on the Valohai website (bottom right)