Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • thg thg
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 838
    • Issues 838
    • List
    • Boards
    • Service Desk
    • Milestones
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • mercurial
  • TortoiseHg
  • thgthg
  • Issues
  • #4837

Closed
Open
Created Jun 16, 2017 by Bitbucket Importer@bitbucket_importerOwner

"Bad file descriptor" exception by a error message from extension on starting up

Created originally on Bitbucket by gotoh (Shun-ichi Goto)

On executing Tortoisehg from command line, exception dialog appears. The expection traceback is here: (using TortoiseHg 4.2.1 on Windows 7 / 64)

#!python
** Mercurial version (4.2.1).  TortoiseHg version (4.2.1)
** Command: 
** CWD: C:\job\laser\NIDEC\src-tosok
** Encoding: cp932
** Extensions loaded: patchbomb, uiswitch, record, evolve, hgflow, histedit, hgignore, strip, mq, eol, share, localmsg, convert, convertex, shelve, purge, extdiff, rebase, hggit, hgsubversion, textfull, textfull.encoding
** Python version: 2.7.10 (default, May 23 2015, 09:44:00) [MSC v.1500 64 bit (AMD64)]
** Windows version: sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1')
** Processor architecture: x64
** Qt-4.8.7 PyQt-4.11.4 QScintilla-2.9
Traceback (most recent call last):
  File "tortoisehg\hgqt\run.pyo", line 48, in dispatch
  File "tortoisehg\hgqt\run.pyo", line 242, in _runcatch
  File "tortoisehg\hgqt\run.pyo", line 310, in runcommand
  File "tortoisehg\util\hglib.pyo", line 323, in loadextensions
  File "mercurial\extensions.pyo", line 180, in loadall
  File "mercurial\ui.pyo", line 1235, in warn
  File "mercurial\ui.pyo", line 802, in write_err
  File "mercurial\ui.pyo", line 816, in _write_err
StdioError: [Errno 9] Bad file descriptor

This issue is caused by error message of extension like this:

> thg
*** failed to import extension diff_highlight from c:\develop\hg\diff-highlight\src\diff_highlight.py: No module named highlights.pprint

Without using such a extension, thg can start workling.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking