View Issue Details

IDProjectCategoryView StatusLast Update
0004316Slicer4Core: Building (CMake, Superbuild)public2016-12-09 09:46
ReporterdzenanzAssigned Tojcfr 
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
PlatformVisual Studio 2013 x64OSWindowsOS Version7 x64
Product VersionSlicer 4.6.1 
Target VersionFixed in Version 
Summary0004316: ImportError: No module named git
Description

Building Slicer causes this. Normally, this does not result in build errors. When Visual Studio is started using Slicer.exe --VisualStudio (so debugging is enabled), this results in build error.

SlicerProjectTemplate is also affected by this (that's how I noticed this). This bug has been around for a while, verified with 4.6.0 and master.

Additional Information

VS started using Slicer launcher:
363>------ Build started: Project: SlicerWizard-doc, Configuration: Release x64 ------
363> Traceback (most recent call last):
363> File "C:\Libs\Anaconda\Scripts\sphinx-build-script.py", line 3, in <module>
363> from sphinx import main
363> ImportError: No module named sphinx
363>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" exited with code 1.

VS started normally:
11>------ Build started: Project: SlicerWizard-doc, Configuration: Release x64 ------
11> Running Sphinx v1.3.1
11>CUSTOMBUILD : warning : unknown config value 'wikidoc_version' in override, ignoring
11> loading pickled environment... not yet created
11>CUSTOMBUILD : warning : 'default' html theme has been renamed to 'classic'. Please change your html_theme setting either to the new 'alabaster' default theme, or to 'classic' to keep using the old default.
11> loading intersphinx inventory from http://docs.python.org/2.7/objects.inv...
11> loading intersphinx inventory from http://jacquev6.github.io/PyGithub/v1/objects.inv...
11>CUSTOMBUILD : warning : intersphinx inventory 'http://jacquev6.github.io/PyGithub/v1/objects.inv' not fetchable due to <class 'urllib2.HTTPError'>: HTTP Error 404: Not Found
11> building [mo]: targets for 0 po files that are out of date
11> building [html]: targets for 2 source files that are out of date
11> updating environment: 2 added, 0 changed, 0 removed
11> reading sources... [ 50%] SlicerWizard
11> reading sources... [100%] index
11>
11> C:\Dev\Slicer\Utilities\Scripts\SlicerWizard\doc\SlicerWizard.rst:41: WARNING: autodoc: failed to import module u'SlicerWizard.GithubHelper'; the following exception was raised:
11> Traceback (most recent call last):
11> File "C:\Libs\Anaconda\lib\site-packages\Sphinx-1.3.1-py2.7.egg\sphinx\ext\autodoc.py", line 385, in import_object
11> import(self.modname)
11> File "C:\Dev\Slicer\Utilities\Scripts\SlicerWizard\GithubHelper.py", line 3, in <module>
11> import git
11> ImportError: No module named git
11> C:\Dev\Slicer\Utilities\Scripts\SlicerWizard\Utilities.py:docstring of SlicerWizard.Utilities.SourceTreeDirectory:19: WARNING: Bullet list ends without a blank line; unexpected unindent.
11> looking for now-outdated files... none found
11> pickling environment... done
11> checking consistency... done
11> preparing documents... done
11> writing output... [ 50%] SlicerWizard
11> writing output... [100%] index
11>
11> generating indices... genindex py-modindex
11> highlighting module code... [ 12%] SlicerWizard.ExtensionDescription
11> highlighting module code... [ 25%] SlicerWizard.TemplateManager
11> highlighting module code... [ 37%] SlicerWizard.Utilities
11> highlighting module code... [ 50%] SlicerWizard.Subversion
11> highlighting module code... [ 62%] SlicerWizard.CMakeParser
11> highlighting module code... [ 75%] SlicerWizard.WizardHelpFormatter
11> highlighting module code... [ 87%] SlicerWizard.ExtensionProject
11> highlighting module code... [100%] SlicerWizard.ExtensionWizard
11>
11> writing additional pages... search
11> copying static files... done
11> copying extra files... done
11> dumping search index in English (code: en) ... done
11> dumping object inventory... done
11> build succeeded, 5 warnings.

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2016-12-09 09:46 dzenanz New Issue
2016-12-09 09:46 dzenanz Status new => assigned
2016-12-09 09:46 dzenanz Assigned To => jcfr