Error when importing scvelo in notebook
See original GitHub issueHi,
I’m getting the following error when trying to initially import scvelo through import scvelo as scv
(currently running scvelo 0.1.16, scanpy 1.4, numpy 1.15.4).
Any help would be greatly appreciated, thanks!
TypeError Traceback (most recent call last) <ipython-input-2-ef020c64ed26> in <module> ----> 1 import scvelo as scv 2 import scanpy as sc 3 scv.logging.print_versions()
~\Anaconda3\lib\site-packages\scvelo_init_.py in <module> 1 “”“scvelo - stochastic single cell RNA velocity”“” 2 ----> 3 from .get_version import get_version 4 version = get_version(file) 5 del get_version
~\Anaconda3\lib\site-packages\scvelo\get_version.py in <module> 143 144 –> 145 version = get_version(file) 146 147
~\Anaconda3\lib\site-packages\scvelo\get_version.py in get_version(package) 137 return str( 138 get_version_from_dirname(name, parent) –> 139 or get_version_from_git(parent) 140 or get_version_from_metadata(name, parent) 141 or “0.0.0”
~\Anaconda3\lib\site-packages\scvelo\get_version.py in get_version_from_git(parent) 55 try: 56 p = run([“git”, “rev-parse”, “–show-toplevel”], —> 57 cwd=parent, stdout=PIPE, stderr=PIPE, encoding=“utf-8”, check=True) 58 except (OSError, CalledProcessError): 59 return None
~\Anaconda3\lib\subprocess.py in run(input, timeout, check, *popenargs, **kwargs) 401 kwargs[‘stdin’] = PIPE 402 –> 403 with Popen(*popenargs, **kwargs) as process: 404 try: 405 stdout, stderr = process.communicate(input, timeout=timeout)
~\Anaconda3\lib\subprocess.py in init(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors) 705 c2pread, c2pwrite, 706 errread, errwrite, –> 707 restore_signals, start_new_session) 708 except: 709 # Cleanup if the child failed starting.
~\Anaconda3\lib\subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, unused_restore_signals, unused_start_new_session) 988 env, 989 cwd, –> 990 startupinfo) 991 finally: 992 # Child is launched. Close the parent’s copy of those pipe
TypeError: CreateProcess() argument 8 must be str or None, not WindowsPath
Issue Analytics
- State:
- Created 5 years ago
- Comments:51 (26 by maintainers)
Top GitHub Comments
Perfect, thanks for that, upgrading to
0.1.18
fixed it and can now runrank_velocity_genes
.Not sure, why filtering fixes this; prob related to
anndata
. Just releasedv0.1.18
(withrank_velocity_genes
being stable).