[dscng-dev] import_dsc_dat_files.py assertion error

Thomas Dupas thomas at dupas.be
Thu Jun 14 12:21:40 CEST 2012


Hi,

I'm using the latest git version, where the import_dsc_dat_files.py errors out on the very last moment.
At first sight it can't handle the 99.9% done / 0.1% remaining to 100% done / 0% remaining transition

"# DSCng - importing original DSC .dat files

* Importing into database 'dsc'
* Logging into 'dscng_import-2012-06-14_112109.log'

#################### 0:23:19, 3.29 s/dir, 1052 kB/s, 99.9%, ~0:00:01 to goTraceback (most recent call last):
  File "import_dsc_dat_files.py", line 1547, in <module>
    main()
  File "import_dsc_dat_files.py", line 1544, in main
    show_progress=True, stat_out_stream=stat_out_stream)
  File "import_dsc_dat_files.py", line 1447, in import_dirs
    log_to_progressbar(format_percent_bar(done_part) + " " + \
  File "import_dsc_dat_files.py", line 1479, in format_percent_bar
    assert 0 <= percent <= 1
AssertionError"

When querying some tables in the database I can already see some data, but I can't output anything useful in the webinterface.
I only see the list of servers in the left column

Br,

Thomas Dupas


More information about the dscng-dev mailing list