Giter VIP home page Giter VIP logo

Comments (6)

meibenjin avatar meibenjin commented on May 13, 2024 4

I am trying to run metaflow-tutorials on local mac.
after

pip install metaflow
metaflow
cd 00-helloworld 
python 00-helloworld/helloworld.py show

It shows the error

Metaflow could not determine your user name based on environment variables ($USERNAME etc.)

Did't I miss some step?
thanks

you can export USERNAME='your-name' to resolve this problem,see:

def get_username():

from metaflow.

tduffy000 avatar tduffy000 commented on May 13, 2024 2

@ponggung
They get resolved in the following order:

METAFLOW_USER
SUDO_USER
USERNAME
USER

So, as to @meibenjin 's point, try exporting something to any of them.

from metaflow.

ponggung avatar ponggung commented on May 13, 2024 1

@meibenjin @savingoyal
Thanks for your help~
export USERNAME='your-name' works for me.
I build app with docker, so some environmental variables are empty.

from metaflow.

dr3s avatar dr3s commented on May 13, 2024 1

I don't know if this is the same issue but I wondering why this occurs, if the $USERNAME is already exported. This is on OS X, so USERNAME should be set by the OS:

➜  metaflow-tutorials python 01-playlist/playlist.py show
Metaflow 2.0.0 executing PlayListFlow    Unknown user:
    Metaflow could not determine your user name based on environment variables ($USERNAME etc.)

➜  metaflow-tutorials echo $USERNAME                        
amarch

However when I export in the current shell, it resolves the issue. I'm not sure why the python env would not have the login env.

from metaflow.

savingoyal avatar savingoyal commented on May 13, 2024

@ponggung Yes, @meibenjin and @tduffy000 are correct with their recommendations. That should get you going.

from metaflow.

crk-codaio avatar crk-codaio commented on May 13, 2024

@ponggung Please close this issue once you get unblocked. Thanks in advance.

from metaflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.