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.

Script 'scripts/collapse_isoforms_by_sam.py' not found in metadata

See original GitHub issue

Hi, I am trying to install cupcake from the git repo and I am doing it in the following way:

conda create --name cupcake python=3.7 anaconda
conda activate cupcake
pip install bcbio-gff pysam sklearn biopython bx-python
git clone https://github.com/Magdoll/cDNA_Cupcake.git
cd cDNA_Cupcake.git
python setup.py build
python setup.py install
> which collapse_isoforms_by_sam.py
~/.conda/envs/cupcake/bin/collapse_isoforms_by_sam.py
> collapse_isoforms_by_sam.py --help
Traceback (most recent call last):
  File "/home/user/jmontenegro/.conda/envs/cupcake/bin/collapse_isoforms_by_sam.py", line 4, in <module>
    __import__('pkg_resources').run_script('cupcake==15.1.0', 'collapse_isoforms_by_sam.py')
  File "/home/user/jmontenegro/.conda/envs/cupcake/lib/python3.7/site-packages/pkg_resources/__init__.py", line 665, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/home/user/jmontenegro/.conda/envs/cupcake/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1453, in run_script
    .format(**locals()),
pkg_resources.ResolutionError: Script 'scripts/collapse_isoforms_by_sam.py' not found in metadata at '/proj/jmontenegro/software/cDNA_Cupcake/cupcake.egg-info'

I found that installation formula after playing with several different combinations of installation commands. This formula is the only one that does not produce any errors and yet I get this error after installing the cupcake git repo.

Any suggestions how to get around this issue would be more than welcome.

Regards,

Juan D. Montenegro

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
moschmicommented, Dec 5, 2020

It seems to work if I omit PYTHONPATH below export PYTHONPATH=~/cDNA_Cupcake/sequence/:$PYTHONPATH export PYTHONPATH=~/cDNA_Cupcake/:$PYTHONPATH

0reactions
Magdollcommented, Dec 7, 2020

Hi @moschmi , Oh yeeah that is the reason why. You probably should be doing this instead:

export PATH=$PATH:<path_to_cDNA_Cupcake>/sequence

You want to make sure $PATH comes first. Also, it is <path_to_cDNA_Cupcake>/sequence that contains the scripts you may want to call directly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues - GitHub
ResolutionError : Script 'scripts/aws' not found in metadata at '/home/user/.local/lib/python2.7/site-packages/awscli-1.18.39.dist-info' #5121.
Read more >
python setup.py install does not work with latest setuptools
When looking to the path /home/travis/build/igmhub/picca/py/picca.egg-info/ indeed there are no scripts folder. Our python setup is the ...
Read more >
impacket / Script not found in metadata - Exploits - Hack The Box
Any ideas how to get this impacket working on Kali? Getting error: pkg_resources.ResolutionError: Script 'scripts/psexec.py' not found in ...
Read more >
Change metadata of my map using a custom script to...
Hello everybody, I got a question about updating metadata in ArcGIS pro using a custom script tool (arcpy metadata module).
Read more >
Does Metadata for ArcGIS Python script tools in custom ...
If I open the tool in ArcToolbox window and highlight a parameter, I still get a description message of 'No description available'. So,...
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