question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fails to install Spyder4.0.0rc2 on Windows due to ujson dependency

See original GitHub issue

Problem Description

First of all, this is a dependency issue so it may be not solved by the Spyder-team but I thought that you may want to know about it.

Spyder 4.0.0rc2 actually fails to install (via pip) on Windows if MSVC compiler is not installed. This is related to the fact that some dependencies depend on ujson package, which require MSVC 14 as shown in the log below.

So the dependency tree goes like that: rc2 requires python-language-server 0.31.0, which requires ujson and python-jsonrpc-server 0.3.0, which requires ujson too:

spyder 4.0.0rc2
    python-language-server 0.31.0
        ujson (since python-language-server 0.31.0, previous 0.30.0)
        python-jsonrpc-server 0.3.0
            ujson (since python-jsonrpc-server 0.3.0, previous 0.2.0)

This is working with rc1 when pre-installing first python-jsonrpc-server v0.2.0, then python-language-server 0.30.0.

What steps reproduce the problem?

  1. Install release candidate 2 on W10 pip install --pre spyder

Error

[...]
  Running setup.py install for ujson ... error
[...]
    Warning: 'classifiers' should be a list, got type 'filter'
    running install
    running build
    running build_ext
    building 'ujson' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
    ----------------------------------------

Versions

  • Spyder version: -
  • Python version: 3.7.5
  • Qt version: -
  • PyQt version: -
  • Operating System name/version: Windows 10, AMD64

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ccordoba12commented, Nov 22, 2019

Therefore, I hope spyder doesn’t become incompatible to standard python distributions when it integrates further with Anaconda

It won’t. We just plan to add more functionality based on conda (like environment management).

You have a large winpython fanbase out there!

Ok, thanks for letting us know about it! We didn’t know, so we’re leaned towards Anaconda.


In any case, this is an easy to fix error and @dalthviz already created two PRs for it.

1reaction
ccordoba12commented, Nov 19, 2019

On a second thought, we’re going to address this because members of our team are also suffering from it. Sorry if I sounded harsh before.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ujson Package Installation Error in Python - Stack Overflow
When I try to install ujson package in python 3.6 on Windows 10, (which is needed for binance-python library installation) I got this...
Read more >
Installation Guide — Spyder 4 documentation
Spyder is relatively easy to install on Windows, Linux and macOS. Just make sure to read and follow these instructions with care. If...
Read more >
Spyder v4.0.0 release notes (2019-12-06) | LibHunt
This action creates a separate window that only contains the ... Issue 10763 - Fails to install Spyder4.0.0rc2 on Windows due to ujson...
Read more >
CHANGELOG.md · albert_yl/Spyder - Gitee.com
Spyder (前身是 Pydee) 是一个强大的交互式 Python 语言开发环境,提供高级的代码编辑、交互测试、调试等特性,支持包括 Windows、Linux 和 OS X.
Read more >
Installation — Spyder 3 documentation
Spyder is quite easy to install on Windows, Linux and MacOS X. Just the read the following ... Install Spyder and its dependencies...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found