Issue #135 resolved

Fatal Exception during Save while exporting Gerbers

Alex Life
created an issue
Traceback (most recent call last):
  File "rzn/ui/menus.py", line 197, in runplugin
  File "rzn/ui/designwidget.py", line 398, in confirmClose
  File "rzn/ui/designwidget.py", line 175, in save
  File "rzn/views.py", line 53, in save
  File "rzn/obj/project.py", line 121, in save
  File "rzn/vc/vcrepo.py", line 107, in commit
  File "/home/life/soft/razen/plugin/vc/hg/hgfile.py", line 95, in commit
    self._hgr(*args)
  File "/home/life/soft/razen/plugin/vc/hg/hgfile.py", line 173, in _hgr
    raise Exception("HG Error: %s" % out)
Exception: HG Error: abort: no username supplied (see "hg help config")

LOG FILE:

config.py(112):config_init - Config paths: /home/life/.razen, /home/life/soft/razen/conf
config.py(26):_parse_specific_json - Parsed /home/life/.razen/general.json
mainapp.py(93):run - 
--------------------------------------------------------------------------------
mainapp.py(94):run - Razen 0.9.5-r2004 starting
mainapp.py(95):run - PATH: /usr/local/bin:/usr/bin:/usr/games:/usr/lib64/qt4/bin:/home/life/bin
mainapp.py(96):run - PYTHONPATH: None
mainapp.py(97):run - CWD: /home/life/soft/razen
mainapp.py(98):run - Arguments: ./razen
mainapp.py(100):run - OS Linux 3.12.20-desktop-1.mga4 (x86_64): lin64
mainapp.py(101):run - Qt v4.8.6 (1.1.1)
support.py(29):set_basepath - Basepath: /home/life/soft/razen
support.py(30):set_basepath - Rootpath: /home/life/soft/razen
config.py(112):config_init - Config paths: /home/life/.razen, /home/life/soft/razen/conf
config.py(26):_parse_specific_json - Parsed /home/life/soft/razen/conf/general.json
config.py(26):_parse_specific_json - Parsed /home/life/.razen/general.json
mainapp.py(46):path_config - Library path: /home/life/soft/razen/libraries/
mainapp.py(50):path_config - Project path: /home/life/soft/razen/projects
config.py(26):_parse_specific_json - Parsed /home/life/soft/razen/conf/layers.json
plugin.py(33):load_plugin - Loaded plugin.script.dip
plugin.py(33):load_plugin - Loaded plugin.script.soic
plugin.py(33):load_plugin - Loaded plugin.script.smdrcl
plugin.py(33):load_plugin - Loaded plugin.script.header
plugin.py(33):load_plugin - Loaded plugin.script.sot
plugin.py(33):load_plugin - Loaded plugin.script.boardoutline
plugin.py(33):load_plugin - Loaded plugin.script.qfp
plugin.py(33):load_plugin - Loaded plugin.export.svg
plugin.py(33):load_plugin - Loaded plugin.export.gerber
plugin.py(33):load_plugin - Loaded plugin.export.bomcsv
plugin.py(33):load_plugin - Loaded plugin.import.svg
plugin.py(33):load_plugin - Loaded plugin.vc.hg
raw.py(40):_gethg - Found HG at /usr/bin/hg
hg.py(20):usable - HG v2.7.2
config.py(26):_parse_specific_json - Parsed /home/life/soft/razen/conf/keys.json
glwidget.py(71):initializeGL - GL_VENDOR: Intel Open Source Technology Center
glwidget.py(71):initializeGL - GL_VERSION: 3.0 Mesa 10.0.5
glwidget.py(71):initializeGL - GL_RENDERER: Mesa DRI Intel(R) Ivybridge Desktop 
extensions.py(23):getGLVersion - OpenGL Version: 3.0 Mesa 10.0.5
config.py(26):_parse_specific_json - Parsed /home/life/soft/razen/conf/tool.json
updater.py(37):run - Checking for updates
updater.py(45):run - Latest version: 0.9.5-r2004
project.py(124):load - Loading project '/home/life/soft/razen/projects/2connectors'
project.py(274):_loadFromJson - loadtime 0.1s
config.py(26):_parse_specific_json - Parsed /home/life/soft/razen/conf/plugin/gerber.json
mainwindow.py(191):logMessage - Gerber plugin execution complete
mainapp.py(26):unhandledExceptionDialog - Traceback (most recent call last):
  File "rzn/ui/menus.py", line 197, in runplugin
  File "rzn/ui/designwidget.py", line 398, in confirmClose
  File "rzn/ui/designwidget.py", line 175, in save
  File "rzn/views.py", line 53, in save
  File "rzn/obj/project.py", line 121, in save
  File "rzn/vc/vcrepo.py", line 107, in commit
  File "/home/life/soft/razen/plugin/vc/hg/hgfile.py", line 95, in commit
    self._hgr(*args)
  File "/home/life/soft/razen/plugin/vc/hg/hgfile.py", line 173, in _hgr
    raise Exception("HG Error: %s" % out)
Exception: HG Error: abort: no username supplied (see "hg help config")

Comments (8)

  1. Razen repo owner

    That's strange, it should give a warning about username sooner. Do you have a username set in the mercurial preferences tab?

  2. Razen repo owner

    Where is the 2connectors project from? Did you create it locally or clone it from somewhere else? Does projects/2connectors/.hg/hgrc exist, and contain a username setting?

  3. Razen repo owner

    Ah, I think I've found the issue - the preferences UI lets you leave the email field empty, but the mercurial code expects an email, and so isn't setting the hgrc correctly. I'll fix it in the next release, but in the meantime, setting the email field to anything (even a single character) should work around the issue (you may also need to resave the project).

  4. Alex Life reporter

    I made test project 2connectors by myself. There is no projects/2connectors/.hg/hgrc file at all.

    [life@localhost .hg]$ ls
    00changelog.i  branch  dirstate  last-message.txt  requires  store/
    
  5. Razen repo owner

    Could you test with an email set in preferences and see if that fixes the issue (either by creating a new project or by modifying and saving the 2connectors one)?

  6. Log in to comment