question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when importing scvelo in notebook

See original GitHub issue

Hi, 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:closed
  • Created 5 years ago
  • Comments:51 (26 by maintainers)

github_iconTop GitHub Comments

1reaction
PattFcommented, Jun 5, 2019

Perfect, thanks for that, upgrading to 0.1.18 fixed it and can now run rank_velocity_genes.

0reactions
VolkerBergencommented, Jun 5, 2019

Not sure, why filtering fixes this; prob related to anndata. Just released v0.1.18 (with rank_velocity_genes being stable).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation — scVelo 0.2.6.dev4+g5725727.d20221208 ...
If you get the error Not a directory: 'xdg-settings' , use jupyter notebook --no-browser instead and open the url manually (or use this...
Read more >
scVelo documentation
If you get the error Not a directory: 'xdg-settings', use jupyter notebook --no-browser instead and open the url manually (or use this bugfix)....
Read more >
Trajectory Analysis using 10x Genomics Single Cell Gene ...
scVelo is a scalable toolkit that leverages splicing kinetics for RNA velocity analysis. Here is a Jupyter notebook file that you can download ......
Read more >
Recently Active 'scanpy' Questions
I run the cellrank workflow and always found this error. Here is my code for Cellrank: import scvelo as scv import scanpy as...
Read more >
scVelo: RNA velocity of single cell generalized through ...
It avoids errors in the velocity estimates by solving the full ... pl >>> import scvelo as scv >>> scv.settings.set_figure_params('scvelo', ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found