enthought / enstaller

Default Repo description from terraform module
Other
0 stars 0 forks source link

enstaller/egginst crash (version 4.8.0.dev1-a34d367) #8

Open riehle opened 9 years ago

riehle commented 9 years ago

I'm running a development version of enstaller due to previous problems. I'm running on a windows7 platform.

It appears that the code in egginst responsible for calculating the updating the estimated time remaining is getting a div-by-zero - the number of steps for the update are not nonzero.

C:\Windows\System32>enpkg --update-all C:\Python27\lib\site-packages\enstaller\vendor\keyring\core.py:166: UserWarning: Module argparse was already imported from C:\Python27\lib\argparse.pyc, but c:\ python27\lib\site-packages is being added to sys.path pkg_resources = import('pkg_resources') /eggs/win-64/index.json [Fetching index] 1.05 MB [......................................................] The following updates and their dependencies will be installed Name installed available "============================================================" libxslt 1.1.28-1 1.1.28-2 ets 4.4.2-1 4.4.3-1 encore 0.5.1-3 0.5.1-4 chaco 4.4.1-3 4.5.0-1 libxslt-1.1.28-2.egg [fetching] 540 KB [......................................................] libxslt-1.1.28-1.egg [removing egg] 1.65 MB [......................................................] libxslt-1.1.28-2.egg [installing egg] 1.65 MB [......................................................] encore-0.5.1-4.egg [fetching] 250 KB [......................................................] chaco-4.5.0-1.egg [fetching] 1.02 MB [......................................................] ets-4.4.3-1.egg [fetching] 10 KB [......................................................] ets-4.4.2-1.egg [removing egg] 22 KB [......................................................] chaco-4.4.1-3.egg [removing egg]

Traceback (most recent call last): File "C:\Python27\Scripts\enpkg-script.py", line 10, in sys.exit(main_noexc()) File "C:\Python27\lib\site-packages\enstaller\main.py", line 631, in mainnoexc main(argv) File "C:\Python27\lib\site-packages\enstaller\main.py", line 622, in main pat) File "C:\Python27\lib\site-packages\enstaller\main.py", line 316, in dispatch commands_with_enpkg update_all(enpkg, config, args) File "C:\Python27\lib\site-packages\enstaller\cli\commands.py", line 155, in update_all install_req(enpkg, config, update['current']['name'], args) File "C:\Python27\lib\site-packages\enstaller\cli\utils.py", line 157, in install_req enpkg.execute(actions) File "C:\Python27\lib\site-packages\enstaller\enpkg.py", line 332, in execute action.execute() File "C:\Python27\lib\site-packages\enstaller\enpkg.py", line 189, in execute self.progress_update(n) File "C:\Python27\lib\site-packages\enstaller\enpkg.py", line 165, in progress_update self._progress.update(step) File "C:\Python27\lib\site-packages\egginst\console\ui.py", line 220, in update self.make_step(n_steps) File "C:\Python27\lib\site-packages\egginst\console\ui.py", line 213, in make_step self.avg = self.avg[-6:] + [-(self.start - time.time()) / (self.pos)] ZeroDivisionError: float division by zero

C:\Windows\System32>enpkg --update-all C:\Python27\lib\site-packages\enstaller\vendor\keyring\core.py:166: UserWarning: Module argparse was already imported from C:\Python27\lib\argparse.pyc, but c:\ python27\lib\site-packages is being added to sys.path pkg_resources = import('pkg_resources') /eggs/win-64/index.json [Fetching index] 1.05 MB [......................................................] The following updates and their dependencies will be installed Name installed available "============================================================" encore 0.5.1-3 0.5.1-4 chaco 4.4.1-3 4.5.0-1 encore-0.5.1-3.egg [removing egg] 921 KB [......................................................] encore-0.5.1-4.egg [installing egg] 921 KB [......................................................] chaco-4.4.1-3.egg [removing egg] 3.51 MB [......................................................] chaco-4.5.0-1.egg [installing egg] 3.60 MB [......................................................]

C:\Windows\System32>enpkg --version C:\Python27\lib\site-packages\enstaller\vendor\keyring\core.py:166: UserWarning: Module argparse was already imported from C:\Python27\lib\argparse.pyc, but c:\ python27\lib\site-packages is being added to sys.path pkg_resources = import('pkg_resources') enstaller version: 4.8.0.dev1-a34d367