Skimulator-Windows 10上的python错误消息-load_entry_point

时间:2018-12-12 20:34:23

标签: python-3.x windows error-handling anaconda

我正在python上运行名为codeWindows 10 skimulator,以模拟Arctic ice drift and sea/wave velocities的2025年卫星任务。它是使用Anaconda navigator安装的python 3NumpyScipyNetCDF4环境。有人可以帮助解决第一行错误消息吗?:

File "C:\Users\pclink\Anaconda3\Scripts\skimulator-script.py", line 11, in <module>
load_entry_point('skimulator==1.0', 'console_scripts', 'skimulator')()

甚至是整个错误消息?

skimulator-script.py代码如下所示。

Anaconda提示符中的错误消息:

(base) C:\Users\pclink\Anaconda3\Scripts>skimulator C:\Users\pclink\skimulator\example\params_2017v2_23W.py
Traceback (most recent call last):
  File "C:\Users\pclink\Anaconda3\Scripts\skimulator-script.py", line 11, in <module>
    load_entry_point('skimulator==1.0', 'console_scripts', 'skimulator')()
  File "C:\Users\pclink\Anaconda3\lib\site-packages\pkg_resources\__init__.py", line 484, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "C:\Users\pclink\Anaconda3\lib\site-packages\pkg_resources\__init__.py", line 2707, in load_entry_point
    return ep.load()
  File "C:\Users\pclink\Anaconda3\lib\site-packages\pkg_resources\__init__.py", line 2325, in load
    return self.resolve()
  File "C:\Users\pclink\Anaconda3\lib\site-packages\pkg_resources\__init__.py", line 2331, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
  File "C:\Users\pclink\Anaconda3\lib\site-packages\skimulator-1.0-py3.7.egg\skimulator\__init__.py", line 62, in <module>
  File "C:\Users\pclink\Anaconda3\lib\site-packages\pkg_resources\__init__.py", line 1140, in resource_filename
    self, resource_name
  File "C:\Users\pclink\Anaconda3\lib\site-packages\pkg_resources\__init__.py", line 1647, in get_resource_filename
    return self._extract_resource(manager, zip_path)
  File "C:\Users\pclink\Anaconda3\lib\site-packages\pkg_resources\__init__.py", line 1668, in _extract_resource
    timestamp, size = self._get_date_and_size(self.zipinfo[zip_path])
KeyError: 'skimulator\\share\\VERSION.txt'

skimulator-script.py:

#!C:\Users\pclink\Anaconda3\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'skimulator==1.0','console_scripts','skimulator'
__requires__ = 'skimulator==1.0'
import re
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
    sys.exit(
        load_entry_point('skimulator==1.0', 'console_scripts', 'skimulator')()
    )

0 个答案:

没有答案