Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #86815 > unrolled thread

[Python 3.4.3, pip 6.0.8 ] Error installing Sphinx (on markupsafe install)

Started byMario Figueiredo <marfig@gmail.com>
First post2015-03-03 06:55 +0100
Last post2015-03-03 21:39 +0100
Articles 3 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  [Python 3.4.3, pip 6.0.8 ] Error installing Sphinx (on markupsafe install) Mario Figueiredo <marfig@gmail.com> - 2015-03-03 06:55 +0100
    Re: [Python 3.4.3, pip 6.0.8 ] Error installing Sphinx (on markupsafe install) Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-03-03 07:15 +0000
      Re: [Python 3.4.3, pip 6.0.8 ] Error installing Sphinx (on markupsafe install) Mario Figueiredo <marfig@gmail.com> - 2015-03-03 21:39 +0100

#86815 — [Python 3.4.3, pip 6.0.8 ] Error installing Sphinx (on markupsafe install)

FromMario Figueiredo <marfig@gmail.com>
Date2015-03-03 06:55 +0100
Subject[Python 3.4.3, pip 6.0.8 ] Error installing Sphinx (on markupsafe install)
Message-ID<sriafa9imbv9nete4ragca05kvuhctv8d2@4ax.com>
Anyone else having problems installing Sphinx as of late? It installed
perfectly fine for me under windows just a few weeks ago. But
currently I get an error when trying to install it:

I'm including the full error output.

$ pip install -U sphinx --no-cache-dir

Collecting sphinx
  Downloading Sphinx-1.2.3-py3-none-any.whl (1.2MB)
    100% |################################| 1.2MB 225kB/s
Collecting Pygments>=1.2 (from sphinx)
  Downloading Pygments-2.0.2-py3-none-any.whl (672kB)
    100% |################################| 675kB 197kB/s
Collecting Jinja2>=2.3 (from sphinx)
  Downloading Jinja2-2.7.3.tar.gz (378kB)
    100% |################################| 380kB 117kB/s
Requirement already up-to-date: docutils>=0.10 in
c:\python34\lib\site-packages (from sphinx)
Collecting markupsafe (from Jinja2>=2.3->sphinx)
  Downloading MarkupSafe-0.23.tar.gz
Installing collected packages: markupsafe, Jinja2, Pygments, sphinx
  Running setup.py install for markupsafe
    building 'markupsafe._speedups' extension
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File
"C:\Users\Mario\AppData\Local\Temp\pip-build-ahunetv5\markupsafe\setup.py",
line 120, in <module>
        try_building_extension()
      File
"C:\Users\Mario\AppData\Local\Temp\pip-build-ahunetv5\markupsafe\setup.py",
line 99, in try_building_extension
        run_setup(True)
      File
"C:\Users\Mario\AppData\Local\Temp\pip-build-ahunetv5\markupsafe\setup.py",
line 93, in run_setup
        ext_modules=ext_modules,
      File "C:\Python34\lib\distutils\core.py", line 148, in setup
        dist.run_commands()
      File "C:\Python34\lib\distutils\dist.py", line 955, in
run_commands
        self.run_command(cmd)
      File "C:\Python34\lib\distutils\dist.py", line 974, in
run_command
        cmd_obj.run()
      File
"C:\Python34\lib\site-packages\setuptools\command\install.py", line
61, in run
        return orig.install.run(self)
      File "C:\Python34\lib\distutils\command\install.py", line 539,
in run
        self.run_command('build')
      File "C:\Python34\lib\distutils\cmd.py", line 313, in
run_command
        self.distribution.run_command(command)
      File "C:\Python34\lib\distutils\dist.py", line 974, in
run_command
        cmd_obj.run()
      File "C:\Python34\lib\distutils\command\build.py", line 126, in
run
        self.run_command(cmd_name)
      File "C:\Python34\lib\distutils\cmd.py", line 313, in
run_command
        self.distribution.run_command(command)
      File "C:\Python34\lib\distutils\dist.py", line 974, in
run_command
        cmd_obj.run()
      File
"C:\Users\Mario\AppData\Local\Temp\pip-build-ahunetv5\markupsafe\setup.py",
line 41, in run
        build_ext.run(self)
      File "C:\Python34\lib\distutils\command\build_ext.py", line 339,
in run
        self.build_extensions()
      File "C:\Python34\lib\distutils\command\build_ext.py", line 448,
in build_extensions
        self.build_extension(ext)
      File
"C:\Users\Mario\AppData\Local\Temp\pip-build-ahunetv5\markupsafe\setup.py",
line 47, in build_extension
        build_ext.build_extension(self, ext)
      File "C:\Python34\lib\distutils\command\build_ext.py", line 503,
in build_extension
        depends=ext.depends)
      File "C:\Python34\lib\distutils\msvc9compiler.py", line 460, in
compile
        self.initialize()
      File "C:\Python34\lib\distutils\msvc9compiler.py", line 371, in
initialize
        vc_env = query_vcvarsall(VERSION, plat_spec)
      File
"C:\Python34\lib\site-packages\setuptools\msvc9_support.py", line 52,
in query_vcvarsall
        return unpatched['query_vcvarsall'](version, *args, **kwargs)
      File "C:\Python34\lib\distutils\msvc9compiler.py", line 287, in
query_vcvarsall
        raise ValueError(str(list(result.keys())))
    ValueError: []
    Complete output from command C:\Python34\python.exe -c "import
setuptools,
tokenize;__file__='C:\\Users\\Mario\\AppData\\Local\\Temp\\pip-build-ah
unetv5\\markupsafe\\setup.py';exec(compile(getattr(tokenize, 'open',
open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
install --recor
d
C:\Users\Mario\AppData\Local\Temp\pip-apsyryv5-record\install-record.txt
--single-version-externally-managed --compile:
    running install

    running build

    running build_py

    creating build

    creating build\lib.win32-3.4

    creating build\lib.win32-3.4\markupsafe

    copying markupsafe\tests.py -> build\lib.win32-3.4\markupsafe

    copying markupsafe\_compat.py -> build\lib.win32-3.4\markupsafe

    copying markupsafe\_constants.py -> build\lib.win32-3.4\markupsafe

    copying markupsafe\_native.py -> build\lib.win32-3.4\markupsafe

    copying markupsafe\__init__.py -> build\lib.win32-3.4\markupsafe

    running egg_info

    writing MarkupSafe.egg-info\PKG-INFO

    writing top-level names to MarkupSafe.egg-info\top_level.txt

    writing dependency_links to
MarkupSafe.egg-info\dependency_links.txt

    warning: manifest_maker: standard file '-c' not found



    reading manifest file 'MarkupSafe.egg-info\SOURCES.txt'

    reading manifest template 'MANIFEST.in'

    writing manifest file 'MarkupSafe.egg-info\SOURCES.txt'

    copying markupsafe\_speedups.c -> build\lib.win32-3.4\markupsafe

    running build_ext

    building 'markupsafe._speedups' extension

    Traceback (most recent call last):

      File "<string>", line 1, in <module>

      File
"C:\Users\Mario\AppData\Local\Temp\pip-build-ahunetv5\markupsafe\setup.py",
line 120, in <module>

        try_building_extension()

      File
"C:\Users\Mario\AppData\Local\Temp\pip-build-ahunetv5\markupsafe\setup.py",
line 99, in try_building_extension

        run_setup(True)

      File
"C:\Users\Mario\AppData\Local\Temp\pip-build-ahunetv5\markupsafe\setup.py",
line 93, in run_setup

        ext_modules=ext_modules,

      File "C:\Python34\lib\distutils\core.py", line 148, in setup

        dist.run_commands()

      File "C:\Python34\lib\distutils\dist.py", line 955, in
run_commands

        self.run_command(cmd)

      File "C:\Python34\lib\distutils\dist.py", line 974, in
run_command

        cmd_obj.run()

      File
"C:\Python34\lib\site-packages\setuptools\command\install.py", line
61, in run

        return orig.install.run(self)

      File "C:\Python34\lib\distutils\command\install.py", line 539,
in run

        self.run_command('build')

      File "C:\Python34\lib\distutils\cmd.py", line 313, in
run_command

        self.distribution.run_command(command)

      File "C:\Python34\lib\distutils\dist.py", line 974, in
run_command

        cmd_obj.run()

      File "C:\Python34\lib\distutils\command\build.py", line 126, in
run

        self.run_command(cmd_name)

      File "C:\Python34\lib\distutils\cmd.py", line 313, in
run_command

        self.distribution.run_command(command)

      File "C:\Python34\lib\distutils\dist.py", line 974, in
run_command

        cmd_obj.run()

      File
"C:\Users\Mario\AppData\Local\Temp\pip-build-ahunetv5\markupsafe\setup.py",
line 41, in run

        build_ext.run(self)

      File "C:\Python34\lib\distutils\command\build_ext.py", line 339,
in run

        self.build_extensions()

      File "C:\Python34\lib\distutils\command\build_ext.py", line 448,
in build_extensions

        self.build_extension(ext)

      File
"C:\Users\Mario\AppData\Local\Temp\pip-build-ahunetv5\markupsafe\setup.py",
line 47, in build_extension

        build_ext.build_extension(self, ext)

      File "C:\Python34\lib\distutils\command\build_ext.py", line 503,
in build_extension

        depends=ext.depends)

      File "C:\Python34\lib\distutils\msvc9compiler.py", line 460, in
compile

        self.initialize()

      File "C:\Python34\lib\distutils\msvc9compiler.py", line 371, in
initialize

        vc_env = query_vcvarsall(VERSION, plat_spec)

      File
"C:\Python34\lib\site-packages\setuptools\msvc9_support.py", line 52,
in query_vcvarsall

        return unpatched['query_vcvarsall'](version, *args, **kwargs)

      File "C:\Python34\lib\distutils\msvc9compiler.py", line 287, in
query_vcvarsall

        raise ValueError(str(list(result.keys())))

    ValueError: []

    ----------------------------------------
    Command "C:\Python34\python.exe -c "import setuptools,
tokenize;__file__='C:\\Users\\Mario\\AppData\\Local\\Temp\\pip-build-ahunetv5\\markupsafe\\
setup.py';exec(compile(getattr(tokenize, 'open',
open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
install --record C:\Users\Mario\App
Data\Local\Temp\pip-apsyryv5-record\install-record.txt
--single-version-externally-managed --compile" failed with error code
1 in C:\Users\Mario\AppDa
ta\Local\Temp\pip-build-ahunetv5\markupsafe

[toc] | [next] | [standalone]


#86824

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2015-03-03 07:15 +0000
Message-ID<mailman.6.1425366940.21433.python-list@python.org>
In reply to#86815
On 03/03/2015 05:55, Mario Figueiredo wrote:
> Anyone else having problems installing Sphinx as of late? It installed
> perfectly fine for me under windows just a few weeks ago. But
> currently I get an error when trying to install it:
>
> I'm including the full error output.
>
> $ pip install -U sphinx --no-cache-dir
>
>    Running setup.py install for markupsafe
>      building 'markupsafe._speedups' extension
>        File "C:\Python34\lib\distutils\command\build_ext.py", line 339,
> in run
>          self.build_extensions()
>        File "C:\Python34\lib\distutils\command\build_ext.py", line 448,
> in build_extensions
>          self.build_extension(ext)
>        File
> "C:\Users\Mario\AppData\Local\Temp\pip-build-ahunetv5\markupsafe\setup.py",
> line 47, in build_extension
>          build_ext.build_extension(self, ext)
>        File "C:\Python34\lib\distutils\command\build_ext.py", line 503,
> in build_extension
>          depends=ext.depends)
>        File "C:\Python34\lib\distutils\msvc9compiler.py", line 460, in
> compile
>          self.initialize()
>        File "C:\Python34\lib\distutils\msvc9compiler.py", line 371, in
> initialize
>          vc_env = query_vcvarsall(VERSION, plat_spec)
>        File
> "C:\Python34\lib\site-packages\setuptools\msvc9_support.py", line 52,
> in query_vcvarsall
>          return unpatched['query_vcvarsall'](version, *args, **kwargs)
>        File "C:\Python34\lib\distutils\msvc9compiler.py", line 287, in
> query_vcvarsall
>          raise ValueError(str(list(result.keys())))
>      ValueError: []

The problem is actually with the installation of the markupsafe 
dependancy.  Further the output above tells me that you've not got 
Visual Studio 2010 installed.  Simplest solution is to grab it from here 
http://www.lfd.uci.edu/~gohlke/pythonlibs/#markupsafe

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

[toc] | [prev] | [next] | [standalone]


#86864

FromMario Figueiredo <marfig@gmail.com>
Date2015-03-03 21:39 +0100
Message-ID<9i6cfah662ocnthshbadl9k45677l8a352@4ax.com>
In reply to#86824
On Tue, 03 Mar 2015 07:15:19 +0000, Mark Lawrence
<breamoreboy@yahoo.co.uk> wrote:

>Further the output above tells me that you've not got 
>Visual Studio 2010 installed.

I do. It's my principal development suite. But you put me in the right
track.

I took a closer look at the error messages and also noticed the
references to vcvars. I was installing it from a shell where vcvars
are enabled. I tried to install sphinx from a fresh clean shell and it
went smoothly this time.

Thanks.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web