1. TortoiseHg
  2. TortoiseHg
  3. thg
  4. Issues
Issue #39 resolved

workbench_rc woes

Mads Kiilerich
created an issue

I had some issues with workbench_rc - thg failed in tortoisehg/hgqt/init.py with ImportError: No module named workbench_rc

Installing pyqt4 development stuff "resolves" the problem at runtime by somehow creating the missing file when running from source.

I don't know what a root cause or primary solution could be, but some wild shots:

  • whatever generates workbench_rc.py doesn't fail hard enough when it fails, leaving no indication what the real problem is and why it was removed in 43160a7deebd
  • it is apparently not generated by setup.py - it should, especially when creating a system package where users can't generate the file in the right location at runtime
  • the development packages should not be a runtime dependency - qt is huge enough as it is ;-)

Comments (2)

  1. Steve Borho

    pyqt-dev will be necessary to run the package from source, I don't expect that to change any time soon. We need pyuic and pyrrc to cook interface and resource files.

    It would be helpful if we gave better indication of the requirement, though.

    setup.py will build the intermediate files with --build_qt. The thg script itself will build the files if they need building.. assuming pyqt-dev is present.

  2. Log in to comment