shorah icon indicating copy to clipboard operation
shorah copied to clipboard

Conda package: no version file

Open stefanches7 opened this issue 4 years ago • 4 comments

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.

stefanches7 avatar Jul 03 '20 14:07 stefanches7