Jovian.commit() not working

When I run jovian.commit(), I get the following error.

[jovian] Attempting to save notebook…
[jovian] Updating notebook “shinokada/venn-diagram2” on https://jovian.ml/
[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?

Hi @shinokada, we are looking into the issue.

Meanwhile, can you try passing environment=None as argument in commit: jovian.commit(environment=None)

Thanks.
jovian.commit(environment=None) works without any warnings.

Hello, I tried to install jovian from kaggle but I am getting this error:

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f27fe37fe10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’)’: /simple/jovian/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f27fe4c5f10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’)’: /simple/jovian/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f27fe4c5b50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’)’: /simple/jovian/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f27fe4c59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’)’: /simple/jovian/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f27fe4c5650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’)’: /simple/jovian/
ERROR: Could not find a version that satisfies the requirement jovian (from versions: none)
ERROR: No matching distribution found for jovian

Problem solved, I forgot to activate internet on the kernel.

Any news on this?
I still get an error without environment=None.