NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.08k stars 14.13k forks source link

nixpkgs spyder - ERROR: Could not find a version that satisfies the requirement parso==0.7.0 (from spyder==4.1.4) (from versions: none) #99455

Open InLaw opened 4 years ago

InLaw commented 4 years ago

Describe the bug A clear and concise description of what the bug is.

/build/spyder-4.1.4/dist /build/spyder-4.1.4
Processing ./spyder-4.1.4-py3-none-any.whl
Requirement already satisfied: python-language-server[all]<1.0.0,>=0.34.0 in /nix/store/h2rprwgrqdglxzw4fadhb3rv0p21lpyq-python3.8-python-language-server-0.34.1/lib/python3.8/site-packages (from spyder==4.1.4) (0.34.1)
Requirement already satisfied: diff-match-patch>=20181111 in /nix/store/sbd22vvkhxz14dh90hxz171fwwk562zb-python3.8-diff-match-patch-20200713/lib/python3.8/site-packages (from spyder==4.1.4) (20200713)
Requirement already satisfied: pyxdg>=0.26; platform_system == "Linux" in /nix/store/cmkq3ph00p3dpxqhcr9110nl1zb61v3b-python3.8-pyxdg-0.26/lib/python3.8/site-packages (from spyder==4.1.4) (0.26)
Requirement already satisfied: sphinx>=0.6.6 in /nix/store/w9y09f8kph76l1jw6vnqsafkphzir310-python3.8-sphinx-3.0.3/lib/python3.8/site-packages (from spyder==4.1.4) (3.0.3)
Requirement already satisfied: pygments>=2.0 in /nix/store/k7nfysq91j7fflkk99jfp1nbibl22lza-python3.8-Pygments-2.6.1/lib/python3.8/site-packages (from spyder==4.1.4) (2.6.1)
Requirement already satisfied: pickleshare>=0.4 in /nix/store/2qrgb7l8jc288dsx779iw7kb47x54dmd-python3.8-pickleshare-0.7.5/lib/python3.8/site-packages (from spyder==4.1.4) (0.7.5)
Requirement already satisfied: qtawesome>=0.5.7 in /nix/store/kmgxcib5jqxi1bxgxnq6i17zbhfv8sxq-python3.8-QtAwesome-0.7.2/lib/python3.8/site-packages (from spyder==4.1.4) (0.7.2)
Requirement already satisfied: chardet>=2.0.0 in /nix/store/b89babrahxcn4r320viqhjvp07sa339l-python3.8-chardet-3.0.4/lib/python3.8/site-packages (from spyder==4.1.4) (3.0.4)
Requirement already satisfied: pylint>=1.0 in /nix/store/dfvlfqsar1xxr38fzxjm237g8c6bbdq8-python3.8-pylint-2.5.3/lib/python3.8/site-packages (from spyder==4.1.4) (2.5.3)
Requirement already satisfied: cloudpickle>=0.5.0 in /nix/store/1f9sslkqv5lyi08ysb19ba0zp3dkv9n0-python3.8-cloudpickle-1.5.0/lib/python3.8/site-packages (from spyder==4.1.4) (1.5.0)
Requirement already satisfied: qtconsole>=4.6.0 in /nix/store/ab4iisn29ihdqfzrkqg0lxy5cclin079-python3.8-qtconsole-4.7.6/lib/python3.8/site-packages (from spyder==4.1.4) (4.7.6)
Requirement already satisfied: atomicwrites>=1.2.0 in /nix/store/i8jna32iahdf0nss291q9g9c6lvaljfx-python3.8-atomicwrites-1.4.0/lib/python3.8/site-packages (from spyder==4.1.4) (1.4.0)
Requirement already satisfied: pyqt5; python_version >= "3" in /nix/store/bzqj563g50wws2f4jg8aspjpqvqrwd2a-python3.8-PyQt5-5.14.2/lib/python3.8/site-packages (from spyder==4.1.4) (5.14.2)
Requirement already satisfied: numpydoc>=0.6.0 in /nix/store/5kqr1aqw89bwwrv5sja6ip14i6jbjlni-python3.8-numpydoc-1.1.0/lib/python3.8/site-packages (from spyder==4.1.4) (1.1.0)
Requirement already satisfied: pexpect>=4.4.0 in /nix/store/hvxf589a3msrdvdii8x02b4scb3a3v6g-python3.8-pexpect-4.8.0/lib/python3.8/site-packages (from spyder==4.1.4) (4.8.0)
Requirement already satisfied: watchdog in /nix/store/kzyg18c3j7kjbi3sbshd957m710djfg3-python3.8-watchdog-0.10.3/lib/python3.8/site-packages (from spyder==4.1.4) (0.10.3)
ERROR: Could not find a version that satisfies the requirement parso==0.7.0 (from spyder==4.1.4) (from versions: none)
ERROR: No matching distribution found for parso==0.7.0 (from spyder==4.1.4)
builder for '/nix/store/rl5zli8wikd3wy6mrak2s3kif734pd6p-python3.8-spyder-4.1.4.drv' failed with exit code 1
error: build of '/nix/store/rl5zli8wikd3wy6mrak2s3kif734pd6p-python3.8-spyder-4.1.4.drv' failed

the version parso==0.7.0 does not exist in nixpkgs/20.09/20.03

To Reproduce

nix-env -iA nixpkgs.spyder

Expected behavior

should install spyder

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Notify maintainers

@gebner

Metadata Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"x86_64-linux"`
 - host os: `Linux 5.8.9, NixOS, 20.03.2652.076c67fdea6 (Markhor)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.6`
 - channels(ae): `"OsUnstable-21.03pre243854.2a14d21224f, NxUnstable-21.03pre243968.2a35f664394, home-manager-20.03, nixos-20.03.3002.773ef5ae783"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
gebner commented 4 years ago

Works just fine here, both on master and the 20.09 channel:

nix build -f channel:nixos-20.09 spyder

Your channels (in the nix-info output) look pretty non-standard. Are you hosting them yourself? Anyhow, please update the channels, they are two weeks out-of-date.

InLaw commented 4 years ago

FYI: the channels are standard (only the naming is adjusted to unstables) [nixpkgs is not clear naming compared to nixos-unstable]


how would you integrate kite into spyder (like the second popup is suggesting)?


when opening spyder3, it shows

kf5.kservice.services: The desktop entry file "/run/current-system/sw/share/applications/qemu.desktop" has Type= "Application" but no Exec line
kf5.kservice.sycoca: Invalid Service :  "/run/current-system/sw/share/applications/qemu.desktop"

in the app it pops up

You have missing dependencies!

# Mandatory:
jedi =0.17.1 : 0.17.2 (NOK)
parso =0.7.0 : 0.8.0 (NOK)

Please install them to avoid this message.

Note: Spyder could work without some of these dependencies, however to have a smooth experience when using Spyder we strongly recommend you to install all the listed missing dependencies.

Failing to install these dependencies might result in bugs. Please be sure that any found bugs are not the direct result of missing dependencies, prior to reporting a new issue.

202010-03_1500_46__

gebner commented 4 years ago

Ah, the popup shouldn't be there (and it has nothing to do with kite). We shouldn't have overridden the parso and jedi versions in #98407.

InLaw commented 4 years ago

thanks for the info

i didn't relate the error and kite but I would be interested if you already integrated kite in spyder?

InLaw commented 4 years ago
[nix-shell:~/share_VM]$ python 
bash: /nix/store/bs03sg8b0gq2zr4v252hh9psp780qj5q-python3-3.8.5/bin/python: Argument list too long
bash: /nix/store/kn11223r7pi8fh9pvwj2y7kbc2wncc3h-direnv-2.21.2-bin/bin/direnv: Argument list too long

it comes when I mix pkgs channels

nixPkgs_spyder = import (builtins.fetchGit {
      name = "nixpkgs-unstable_spyder";

      url = "https://github.com/nixos/nixpkgs-channels.git";
      ref = "refs/heads/nixpkgs-unstable";
      rev = "502845c3e31ef3de0e424f3fcb09217df2ce6df6"; #  "date": "2020-09-26T09:12:52+02:00",
  }) { config= { allowUnfree = true;  };  };

nixPkgs_spyder-spyder

and it crashes


all other pkgs are from

mach-nix = import (builtins.fetchGit {
    url = "https://github.com/DavHau/mach-nix/";
    ref = "refs/tags/2.4.1";
  });
  nixPkgs = import mach-nix.nixpkgs.path {config= { allowUnfree = true; permittedInsecurePackages = [ "openssl-1.0.2u" ]; }; };
stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info