Learn practical skills, build real-world projects, and advance your career
Updated 4 years ago
import jovian
jovian.commit()
[jovian] Attempting to save notebook..
[jovian] Please enter your API key ( from https://jovian.ml/ ):
API KEY: ········
[jovian] Uploading notebook..
[jovian] Capturing environment..
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-1-97223f28e913> in <module>
1 import jovian
----> 2 jovian.commit()
c:\users\ayush\appdata\local\programs\python\python38\lib\site-packages\jovian\utils\commit.py in commit(message, files, outputs, environment, privacy, filename, project, new_project, git_commit, git_message, **kwargs)
157
158 # Attach environment, files and outputs
--> 159 _capture_environment(environment, slug, version)
160 _attach_files(files, slug, version, exclude_files=filename)
161 _attach_files(outputs, slug, version, output=True)
c:\users\ayush\appdata\local\programs\python\python38\lib\site-packages\jovian\utils\commit.py in _capture_environment(environment, gist_slug, version)
347 # Capture conda environment
348 try:
--> 349 upload_conda_env(gist_slug, version)
350 captured = True
351 except CondaError as e:
c:\users\ayush\appdata\local\programs\python\python38\lib\site-packages\jovian\utils\environment.py in upload_conda_env(gist_slug, version)
50 """Read and save the current Anaconda environment to server"""
51 # Export environment to YML string
---> 52 env_str = read_conda_env(get_conda_env_name())
53
54 # Upload environment.yml
c:\users\ayush\appdata\local\programs\python\python38\lib\site-packages\jovian\utils\environment.py in read_conda_env(name)
39 if name is None:
40 name = get_conda_env_name()
---> 41 command = get_conda_bin() + ' env export -n ' + name + " --no-builds"
42 env_str = os.popen(command).read()
43 if env_str == '':
c:\users\ayush\appdata\local\programs\python\python38\lib\site-packages\jovian\utils\environment.py in get_conda_bin()
20 # Update binary and execute again
21 conda_bin = conda_exe
---> 22 if os.popen(conda_bin).read().strip() == '':
23 raise CondaError(CONDA_NOT_FOUND)
24 logging.info('Anaconda binary: ' + conda_bin)
c:\users\ayush\appdata\local\programs\python\python38\lib\os.py in popen(cmd, mode, buffering)
972 def popen(cmd, mode="r", buffering=-1):
973 if not isinstance(cmd, str):
--> 974 raise TypeError("invalid cmd type (%s, expected string)" % type(cmd))
975 if mode not in ("r", "w"):
976 raise ValueError("invalid mode %r" % mode)
TypeError: invalid cmd type (<class 'NoneType'>, expected string)
a=5
fg=78
a
5
jovian.commit()
[jovian] Attempting to save notebook..
[jovian] Updating notebook "ab06ayush/untitled5" on https://jovian.ml/
[jovian] Uploading notebook..
[jovian] Capturing environment..
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-3-7f2017c1a3df> in <module>
----> 1 jovian.commit()
c:\users\ayush\appdata\local\programs\python\python38\lib\site-packages\jovian\utils\commit.py in commit(message, files, outputs, environment, privacy, filename, project, new_project, git_commit, git_message, **kwargs)
157
158 # Attach environment, files and outputs
--> 159 _capture_environment(environment, slug, version)
160 _attach_files(files, slug, version, exclude_files=filename)
161 _attach_files(outputs, slug, version, output=True)
c:\users\ayush\appdata\local\programs\python\python38\lib\site-packages\jovian\utils\commit.py in _capture_environment(environment, gist_slug, version)
347 # Capture conda environment
348 try:
--> 349 upload_conda_env(gist_slug, version)
350 captured = True
351 except CondaError as e:
c:\users\ayush\appdata\local\programs\python\python38\lib\site-packages\jovian\utils\environment.py in upload_conda_env(gist_slug, version)
50 """Read and save the current Anaconda environment to server"""
51 # Export environment to YML string
---> 52 env_str = read_conda_env(get_conda_env_name())
53
54 # Upload environment.yml
c:\users\ayush\appdata\local\programs\python\python38\lib\site-packages\jovian\utils\environment.py in read_conda_env(name)
39 if name is None:
40 name = get_conda_env_name()
---> 41 command = get_conda_bin() + ' env export -n ' + name + " --no-builds"
42 env_str = os.popen(command).read()
43 if env_str == '':
c:\users\ayush\appdata\local\programs\python\python38\lib\site-packages\jovian\utils\environment.py in get_conda_bin()
20 # Update binary and execute again
21 conda_bin = conda_exe
---> 22 if os.popen(conda_bin).read().strip() == '':
23 raise CondaError(CONDA_NOT_FOUND)
24 logging.info('Anaconda binary: ' + conda_bin)
c:\users\ayush\appdata\local\programs\python\python38\lib\os.py in popen(cmd, mode, buffering)
972 def popen(cmd, mode="r", buffering=-1):
973 if not isinstance(cmd, str):
--> 974 raise TypeError("invalid cmd type (%s, expected string)" % type(cmd))
975 if mode not in ("r", "w"):
976 raise ValueError("invalid mode %r" % mode)
TypeError: invalid cmd type (<class 'NoneType'>, expected string)
hj=0
hj
0