Comments (6)
I am trying to run metaflow-tutorials on local mac.
afterpip 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:
Line 136 in 5c047cf
from metaflow.
@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.
@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.
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.
@ponggung Yes, @meibenjin and @tduffy000 are correct with their recommendations. That should get you going.
from metaflow.
@ponggung Please close this issue once you get unblocked. Thanks in advance.
from metaflow.
Related Issues (20)
- Question: Access hash of a card while being populated HOT 2
- Conda environment being treated as disabled, and not appending environment to PATH.
- Metaflow crashes on AWS Batch if folder called `metaflow` is present in the working directory HOT 5
- Cardview on WSL error HOT 2
- S3 access denied even if I have full access to S3
- Certain flows failing on Argo Workflows =>3.5.0 HOT 1
- Metaflow job completion or exit handlers?
- run.finished not set when using AWS Step Functions and there's an error
- setting METAFLOW_OTEL_ENDPOINT when running in ECS fargate, not Kubernetes HOT 1
- add __repr__ methods to Parameter
- create contributing guide
- "Service token file does not exist" error when deploying flow to Argo from CI HOT 1
- argo-workflows create --only-json doesn't export the cron workflow configuration
- Using `tags` as a Parameter name breaks flow. HOT 1
- Add option to batch decorator to increase ephemeralStorage on Fargate
- `--package-suffixes` omits dotfiles HOT 1
- Is it possible to run metaflow steps in custom docker containers on local?
- Opentelemetry configuration not carrying over to Batch
- Add a priority class option for the kubernetes flow decorator HOT 1
- Reduce the number of reserved parameter names
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metaflow.