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.

exception running basic pyensembl install command

See original GitHub issue

Hello

I’m just getting started using pyensembl and I’m unable to run the initial install command: pyensembl install --release 87 --species human

Any advice etc. on getting this working much appreciated, more details below.

I get the following output / stacktrace:

2018-06-27 11:44:32,747 - pyensembl.shell - INFO - Running 'install' for EnsemblRelease(release=87, species='homo_sapiens')
2018-06-27 11:44:32,748 - pyensembl.download_cache - INFO - Fetching /Users/davelahr/pyensembl/pyensembl/GRCh38/ensembl87/Homo_sapiens.GRCh38.87.gtf.gz from URL ftp://ftp.ensembl.org/pub/release-87/gtf/homo_sapiens/Homo_sapiens.GRCh38.87.gtf.gz
Traceback (most recent call last):
  File "/Users/davelahr/miniconda2/envs/pyensembl/bin/pyensembl", line 11, in <module>
    sys.exit(run())
  File "/Users/davelahr/miniconda2/envs/pyensembl/lib/python3.6/site-packages/pyensembl/shell.py", line 169, in run
    genome.download(overwrite=args.overwrite)
  File "/Users/davelahr/miniconda2/envs/pyensembl/lib/python3.6/site-packages/pyensembl/genome.py", line 235, in download
    self._set_local_paths(download_if_missing=True, overwrite=overwrite)
  File "/Users/davelahr/miniconda2/envs/pyensembl/lib/python3.6/site-packages/pyensembl/genome.py", line 216, in _set_local_paths
    overwrite=overwrite)
  File "/Users/davelahr/miniconda2/envs/pyensembl/lib/python3.6/site-packages/pyensembl/genome.py", line 180, in _get_gtf_path
    overwrite=overwrite)
  File "/Users/davelahr/miniconda2/envs/pyensembl/lib/python3.6/site-packages/pyensembl/genome.py", line 173, in _get_cached_path
    overwrite=overwrite)
  File "/Users/davelahr/miniconda2/envs/pyensembl/lib/python3.6/site-packages/pyensembl/download_cache.py", line 295, in local_path_or_install_error
    overwrite=overwrite)
  File "/Users/davelahr/miniconda2/envs/pyensembl/lib/python3.6/site-packages/pyensembl/download_cache.py", line 270, in download_or_copy_if_necessary
    overwrite)
  File "/Users/davelahr/miniconda2/envs/pyensembl/lib/python3.6/site-packages/pyensembl/download_cache.py", line 218, in _download_if_necessary
    download_url=url)
TypeError: _download() got an unexpected keyword argument 'filename'

My setup:

  1. created an environment using miniconda with pip
    • python version 3.6.5
  2. pip install pyensembl - version 1.2.6
    • final line of output: Successfully installed appdirs-1.4.3 chardet-3.0.4 datacache-1.0.0 gtfparse-1.0.7 idna-2.7 memoized-property-1.0.3 mock-2.0.0 numpy-1.14.5 pandas-0.23.1 pbr-4.0.4 progressbar33-2.4 pyensembl-1.2.6 python-dateutil-2.7.3 pytz-2018.4 requests-2.19.1 serializable-0.1.1 simplejson-3.15.0 six-1.11.0 tinytimer-0.0.0 typechecks-0.1.0 urllib3-1.23

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
samleenzcommented, Jul 31, 2018

Ah, didn’t notice that - apologies! If you do end up adding pyensembl to conda that would be very appreciated but if not i can make the pip version work.

0reactions
iskandrcommented, Jul 30, 2018

Hey @samleenz – we currently only auto-submit new PyEnsembl version to PyPI so the conda versions are likely being maintained by someone else (e.g. https://anaconda.org/edurand/pyensembl). I can look into adding support for conda.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pyensembl package — pyensembl 0.8.10 documentation
Construct a SQL query and run against the sqlite3 database, filtered both by the feature type and a user-provided column/value.
Read more >
pyensembl - PyPI
PyEnsembl is a Python interface to Ensembl reference genome metadata such as ... Before using PyEnsembl, run the following command to download and...
Read more >
pyensembl Documentation - Read the Docs
pyensembl.common.memoize(fn). Simple reset-able memoization decorator for functions and methods, assumes that all arguments to the function.
Read more >
Directory - 133b252 - the Software Heritage archive
Treeomics 1.7.1 2017-02-23: Integrated python packages pyensembl and ... You will see where an exception is thrown if you test your installation with ......
Read more >
Quick start — AGFusion 0.1 documentation - PythonHosted.org
First you need to install pyensembl (and the other dependencies listed at the ... For basic usage of AGFusion from the command line...
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