Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conda package: no version file #76

Open
stefanches7 opened this issue Jul 3, 2020 · 4 comments
Open

Conda package: no version file #76

stefanches7 opened this issue Jul 3, 2020 · 4 comments
Assignees

Comments

@stefanches7
Copy link

See error report below:

(shorah) [dvoretsk@ouga03 REGION_1]$ shorah
Traceback (most recent call last):
  File "/opt/modules/i12g/anaconda/envs/shorah/lib/python3.6/site-packages/shorah/cli.py", line 50, in <module>
    __version__ = get_distribution('shorah').version
  File "/opt/modules/i12g/anaconda/envs/shorah/lib/python3.6/site-packages/pkg_resources/__init__.py", line 481, in get_distribution
    dist = get_provider(dist)
  File "/opt/modules/i12g/anaconda/envs/shorah/lib/python3.6/site-packages/pkg_resources/__init__.py", line 357, in get_provider
    return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
  File "/opt/modules/i12g/anaconda/envs/shorah/lib/python3.6/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/opt/modules/i12g/anaconda/envs/shorah/lib/python3.6/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'shorah' distribution was not found and is required by the application

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/modules/i12g/anaconda/envs/shorah/bin/shorah", line 11, in <module>
    from shorah.cli import main
  File "/opt/modules/i12g/anaconda/envs/shorah/lib/python3.6/site-packages/shorah/cli.py", line 53, in <module>
    with open(os.path.join(base_dir, '.version'), 'r') as version_file:
FileNotFoundError: [Errno 2] No such file or directory: '/opt/modules/i12g/anaconda/envs/shorah/.version'
(shorah) [dvoretsk@ouga03 REGION_1]$ shorah
Traceback (most recent call last):
  File "/opt/modules/i12g/anaconda/envs/shorah/lib/python3.6/site-packages/shorah/cli.py", line 50, in <module>
    __version__ = get_distribution('shorah').version
  File "/opt/modules/i12g/anaconda/envs/shorah/lib/python3.6/site-packages/pkg_resources/__init__.py", line 481, in get_distribution
    dist = get_provider(dist)
  File "/opt/modules/i12g/anaconda/envs/shorah/lib/python3.6/site-packages/pkg_resources/__init__.py", line 357, in get_provider
    return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
  File "/opt/modules/i12g/anaconda/envs/shorah/lib/python3.6/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/opt/modules/i12g/anaconda/envs/shorah/lib/python3.6/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'shorah' distribution was not found and is required by the application

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/modules/i12g/anaconda/envs/shorah/bin/shorah", line 11, in <module>
    from shorah.cli import main
  File "/opt/modules/i12g/anaconda/envs/shorah/lib/python3.6/site-packages/shorah/cli.py", line 53, in <module>
    with open(os.path.join(base_dir, '.version'), 'r') as version_file:
FileNotFoundError: [Errno 2] No such file or directory: '/opt/modules/i12g/anaconda/envs/shorah/.version'
(shorah) [dvoretsk@ouga03 REGION_1]$ conda install shorah
Collecting package metadata (current_repodata.json): done
Solving environment: done

# All requested packages already installed.
@DrYak
Copy link
Member

DrYak commented Jul 3, 2020

Hello, this is a duplicate of issue #72
It seem to have been fixed in PR #71
I am waiting for my colleagues' code review and we'll release version 1.99.1 on Bioconda.

(I am currently testing the 1.99.1 bioconda package with the recipe in this branch )

@DrYak
Copy link
Member

DrYak commented Jul 3, 2020

BTW: until the package is ready, the work-around is: do not call your environment 'shorah'

@DrYak
Copy link
Member

DrYak commented Jul 22, 2020

The new 1.99.1 package has been merged into bioconda.
It should be appearing on bioconda soon.

Could you give it a try in the coming days ?

@DrYak
Copy link
Member

DrYak commented Jul 30, 2020

We have updated 1.99.1 to 1.99.2 (change of API usage into HTSlib to fix a crash introduced by version 1.10.2, see #77).

Did you get to test the newer version? Did it fix your problems?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants