Skip to content

Conda package: no version file #76

@stefanches7

Description

@stefanches7

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions