When I run jovian.commit()
, I get the following error.
[jovian] Attempting to save notebook…
[jovian] Updating notebook “shinokada/venn-diagram2” on https://jovian.ai/
[jovian] Uploading notebook…
[jovian] Capturing environment…
TypeError Traceback (most recent call last)
in
----> 1 jovian.commit()~/.pyenv/versions/3.8.2/envs/py382/lib/python3.8/site-packages/jovian/utils/commit.py in commit(message, files, outputs, environment, privacy, filename, project, new_project, git_commit, git_message, **kwargs)
175
176 # Attach environment, files and outputs
–> 177 _capture_environment(environment, slug, version)
178 _attach_files(files, slug, version, exclude_files=filename)
179 _attach_files(outputs, slug, version, output=True)~/.pyenv/versions/3.8.2/envs/py382/lib/python3.8/site-packages/jovian/utils/commit.py in _capture_environment(environment, gist_slug, version)
366 # Capture conda environment
367 try:
–> 368 upload_conda_env(gist_slug, version)
369 captured = True
370 except CondaError as e:~/.pyenv/versions/3.8.2/envs/py382/lib/python3.8/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~/.pyenv/versions/3.8.2/envs/py382/lib/python3.8/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 == ‘’:~/.pyenv/versions/3.8.2/envs/py382/lib/python3.8/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)~/.pyenv/versions/3.8.2/lib/python3.8/os.py in popen(cmd, mode, buffering)
974 def popen(cmd, mode=“r”, buffering=-1):
975 if not isinstance(cmd, str):
–> 976 raise TypeError(“invalid cmd type (%s, expected string)” % type(cmd))
977 if mode not in (“r”, “w”):
978 raise ValueError(“invalid mode %r” % mode)TypeError: invalid cmd type (<class ‘NoneType’>, expected string)
How can I fix this?