Skip to content

Instantly share code, notes, and snippets.

@sdorminey
Last active January 5, 2019 04:22
Show Gist options
  • Save sdorminey/c4adde9f004fa2b07c089658684ff9f1 to your computer and use it in GitHub Desktop.
Save sdorminey/c4adde9f004fa2b07c089658684ff9f1 to your computer and use it in GitHub Desktop.
Pydbgp download failure
{ stdenv
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "komodo-pydbgp";
version = "10.2.2.89895";
src = fetchPypi {
pname = "komodo-pydbgp";
inherit version;
sha256 = "907cfe724f39c943e2a9f9b72ba615d40df90c5ddf82c73c40a4d02504bb5e52";
format = "wheel";
python = "py3";
};
}

Working URL

https://files.pythonhosted.org/packages/a4/2c/d83dc4d7a197bc963aeb0a7e6e9165cc9c68ebb6c29c7c5b63d3efc4a69b/komodo_pydbgp-10.2.2.89895-py3-none-any.whl

Broken URL

https://files.pythonhosted.org/packages/py3/k/komodo-pydbgp/komodo-pydbgp-10.2.2.89895-py3-none-any.whl

Nix-repl session:

nix-repl> :l nix-repl> p = callPackage ./pydbgp.nix { inherit (python36Packages) buildPythonPackage fetchPypi; } nix-repl> :b p

builder for '/nix/store/wdl5z9flmkarwr1rciph0l71rksyzcna-komodo-pydbgp-10.2.2.89895-py3-none-any.whl.drv' failed with exit code 1; last 7 log lines:

trying https://files.pythonhosted.org/packages/py3/k/komodo-pydbgp/komodo-pydbgp-10.2.2.89895-py3-none-any.whl % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (22) The requested URL returned error: 404 error: cannot download komodo-pydbgp-10.2.2.89895-py3-none-any.whl from any mirror cannot build derivation '/nix/store/vbgzbiw0y9pvqhc7dswq409d0vfy8cqx-python3.6-komodo-pydbgp-10.2.2.89895.drv': 1 dependencies couldn't be built [0 built (1 failed), 0.0 MiB DL] error: build of '/nix/store/vbgzbiw0y9pvqhc7dswq409d0vfy8cqx-python3.6-komodo-pydbgp-10.2.2.89895.drv' failed

Successful PIP session

[nix-shell:~/scratch/pip]$ pip install --root . -v komodo-pydbgp Created temporary directory: /run/user/1001/pip-ephem-wheel-cache-nidgorbt Created temporary directory: /run/user/1001/pip-req-tracker-kh8hvtgs Created requirements tracker '/run/user/1001/pip-req-tracker-kh8hvtgs' Created temporary directory: /run/user/1001/pip-install-nsw28b1s Collecting komodo-pydbgp 1 location(s) to search for versions of komodo-pydbgp:

*** Error compiling '/run/user/1001/pip-install-nsw28b1s/komodo-pydbgp/dbgp/listcmd.py'... File "/run/user/1001/pip-install-nsw28b1s/komodo-pydbgp/dbgp/listcmd.py", line 313 except TypeError, ex: ^ SyntaxError: invalid syntax

*** Error compiling '/run/user/1001/pip-install-nsw28b1s/komodo-pydbgp/dbgp/server.py'... File "/run/user/1001/pip-install-nsw28b1s/komodo-pydbgp/dbgp/server.py", line 184 except Exception, ex: ^ SyntaxError: invalid syntax

*** Error compiling '/run/user/1001/pip-install-nsw28b1s/komodo-pydbgp/dbgp/serverBase.py'... File "/run/user/1001/pip-install-nsw28b1s/komodo-pydbgp/dbgp/serverBase.py", line 67 except Exception, e: ^ SyntaxError: invalid syntax

Creating /home/mabel/scratch/pip/nix/store/vp7mwr3wx0a8a6bg7ifg9iq1wk6n0w6j-python3-3.6.8/bin changing mode of ./nix/store/vp7mwr3wx0a8a6bg7ifg9iq1wk6n0w6j-python3-3.6.8/bin/dbgp to 755 changing mode of ./nix/store/vp7mwr3wx0a8a6bg7ifg9iq1wk6n0w6j-python3-3.6.8/bin/dbgpClient to 755 changing mode of ./nix/store/vp7mwr3wx0a8a6bg7ifg9iq1wk6n0w6j-python3-3.6.8/bin/dbgpproxy to 755 changing mode of ./nix/store/vp7mwr3wx0a8a6bg7ifg9iq1wk6n0w6j-python3-3.6.8/bin/py3_dbgp to 755 changing mode of ./nix/store/vp7mwr3wx0a8a6bg7ifg9iq1wk6n0w6j-python3-3.6.8/bin/pydbgp to 755 The scripts dbgp, dbgpClient, dbgpproxy, py3_dbgp and pydbgp are installed in './nix/store/vp7mwr3wx0a8a6bg7ifg9iq1wk6n0w6j-python3-3.6.8/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Successfully installed komodo-pydbgp-10.2.2.89895 Cleaning up... Removed build tracker '/run/user/1001/pip-req-tracker-kh8hvtgs'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment