Script 'scripts/collapse_isoforms_by_sam.py' not found in metadata
See original GitHub issueHi, 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:
- Created 3 years ago
- Comments:14 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It seems to work if I omit PYTHONPATH below export PYTHONPATH=~/cDNA_Cupcake/sequence/:$PYTHONPATH export PYTHONPATH=~/cDNA_Cupcake/:$PYTHONPATH
Hi @moschmi , Oh yeeah that is the reason why. You probably should be doing this instead:
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.