Try an interactive version of this dialog: Sign up at solve.it.com, click Upload, and pass this URL.
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
Cell In[1], line 2
1 import plash_cli as pc
----> 2 pc.login()
File /usr/local/lib/python3.12/site-packages/fastcore/script.py:116, in call_parse.<locals>._f(*args, **kwargs)
113 @wraps(func)
114 def _f(*args, **kwargs):
115 mod = inspect.getmodule(inspect.currentframe().f_back)
--> 116 if not mod: return func(*args, **kwargs)
117 if not SCRIPT_INFO.func and mod.__name__=="__main__": SCRIPT_INFO.func = func.__name__
118 if len(sys.argv)>1 and sys.argv[1]=='': sys.argv.pop(1)
File /usr/local/lib/python3.12/site-packages/plash_cli/cli.py:104, in login(token, show)
102 cookies = _poll_cookies(paircode)
103 if cookies:
--> 104 PLASH_CONFIG_HOME.write_text(json.dumps(cookies))
105 print(f"Authentication successful! Config saved to {PLASH_CONFIG_HOME}")
106 else: print("Authentication timed out.")
File /usr/local/lib/python3.12/pathlib.py:1047, in Path.write_text(self, data, encoding, errors, newline)
1044 raise TypeError('data must be str, not %s' %
1045 data.__class__.__name__)
1046 encoding = io.text_encoding(encoding)
-> 1047 with self.open(mode='w', encoding=encoding, errors=errors, newline=newline) as f:
1048 return f.write(data)
File /usr/local/lib/python3.12/pathlib.py:1013, in Path.open(self, mode, buffering, encoding, errors, newline)
1011 if "b" not in mode:
1012 encoding = io.text_encoding(encoding)
-> 1013 return io.open(self, mode, buffering, encoding, errors, newline)
FileNotFoundError: [Errno 2] No such file or directory: '/app/data/.config/plash_config.json'
Opening browser for authentication:
https://accounts.google.com/o/oauth2/v2/auth?response_type=code&client_id=128300535078-gfb1q8nju62ogq446594btu2ngukq4sl.apps.googleusercontent.com&redirect_uri=https%3A%2F%2Fpla.sh%2Fcli_redirect&scope=openid+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile&state=B6RIwKZEjoOtvQNnEn_JHg
Opening browser for authentication:
https://accounts.google.com/o/oauth2/v2/auth?response_type=code&client_id=128300535078-gfb1q8nju62ogq446594btu2ngukq4sl.apps.googleusercontent.com&redirect_uri=https%3A%2F%2Fpla.sh%2Fcli_redirect&scope=openid+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile&state=hR6NckC2ideX8mZe6TCiPQ
Authentication successful! Config saved to /app/data/.config/plash_config.json