[Nix-dev] Python & installation &
Marc Weber
marco-oweber at gmx.de
Sat Apr 23 12:14:55 CEST 2016
Those are my results
- python27.buildEnv worked
- nixos wiki: still contained the myEnv solution on the python page. I
guess that should be replaced by buildEnv for "my use case".
I tried fixing the article but can no longer login.
Trying to reset password yields "Error sending mail: Unknown error in PHP's mail() function."
manual:
SOLUTION 1:
https://github.com/proger/python2nix
pip installed, PYTHONPATH set, error failed to load / import "log".
=> README should be updated about how to install it?
SOLUTION 2:
https://github.com/garbas/pypi2nix
=> fails on matplotlib (png dependencies or such), thus some
additional hint in the README about how to provide them would be nice.
I can guess, but I don't like guessing.
Then it looks very promising.
SOLUTION 3:
offlinehacker-pypi2nix/pypi2nix
%pypi2nix requirements.json out
these derivations will be built:
/nix/store/5lbb4vnbyxp9f9wcx1ifq910c8xklb8c-pypi2nix-requests-py27.drv
building path(s) ‘/nix/store/f0zakhamn9c0pyqnp7mvwl81bw0hhip1-pypi2nix-requests-py27’
--2016-04-23 10:08:45-- https://raw.github.com/buildout/buildout/master/bootstrap/bootstrap.py
Resolving raw.github.com (raw.github.com)... 185.31.17.133
Connecting to raw.github.com (raw.github.com)|185.31.17.133|:443... connected.
ERROR: cannot verify raw.github.com's certificate, issued by 'CN=DigiCert SHA2 High Assurance Server CA,OU=www.digicert.com,O=DigiCert Inc,C=US':
Unable to locally verify the issuer's authority.
To connect to raw.github.com insecurely, use `--no-check-certificate'.
builder for ‘/nix/store/5lbb4vnbyxp9f9wcx1ifq910c8xklb8c-pypi2nix-requests-py27.drv’ failed with exit code 5
error: build of ‘/nix/store/5lbb4vnbyxp9f9wcx1ifq910c8xklb8c-pypi2nix-requests-py27.drv’ failed
Traceback (most recent call last):
File "/nix/store/pw96jxliw0f1nsr91jl71c0mmk5j98gk-python2.7-pypi2nix-1.0_04a68d8577acbceb88bdf51b1231a9dbdead7003/bin/.pypi2nix-wrapped", line 12, in <module>
sys.exit(main())
File "/nix/store/pw96jxliw0f1nsr91jl71c0mmk5j98gk-python2.7-pypi2nix-1.0_04a68d8577acbceb88bdf51b1231a9dbdead7003/lib/python2.7/site-packages/pypi2nix/cli.py", line 143, in main
tmp = run_buildout(eggsdir, config)
File "/nix/store/pw96jxliw0f1nsr91jl71c0mmk5j98gk-python2.7-pypi2nix-1.0_04a68d8577acbceb88bdf51b1231a9dbdead7003/lib/python2.7/site-packages/pypi2nix/buildout.py", line 248, in run_buildout
return buildout.run(eggsdir)
File "/nix/store/pw96jxliw0f1nsr91jl71c0mmk5j98gk-python2.7-pypi2nix-1.0_04a68d8577acbceb88bdf51b1231a9dbdead7003/lib/python2.7/site-packages/pypi2nix/buildout.py", line 104, in run
cwd=buildout_dir, shell=True
File "/home/anton_lvov/.nix-profile/lib/python2.7/subprocess.py", line 573, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['/run/current-system/sw/bin/nix-build']' returned non-zero exit status 100
%cat requirements.json
[
"requests",
"unidecode",
"pysqlite",
"pandas",
"matplotlib",
"scipy",
"scrapy",
"mpl_toolkits",
"statsmodels",
"BeautifulSoup4"
]
Marc Weber
More information about the nix-dev
mailing list