Skip to content

Instantly share code, notes, and snippets.

@grahamc
Created June 10, 2019 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grahamc/8d1bc3e678168d892a270f19591dd984 to your computer and use it in GitHub Desktop.
Save grahamc/8d1bc3e678168d892a270f19591dd984 to your computer and use it in GitHub Desktop.
[grahamc@Petunia:~/projects/github.com/NixOS/nix]$ nix-shell -p python3
these paths will be fetched (0.05 MiB download, 0.28 MiB unpacked):
/nix/store/m57p0m5m6fz7j58g1bamsrxq5prsgpl2-bash-interactive-4.4-p23-dev
copying path '/nix/store/m57p0m5m6fz7j58g1bamsrxq5prsgpl2-bash-interactive-4.4-p23-dev' from 'https://cache.nixos.org'...
[nix-shell:~/projects/github.com/NixOS/nix]$ python3 -m http.server
Fatal Python error: initsite: Failed to import the site module
Traceback (most recent call last):
File "/nix/store/qpiaa6iwqqq7g471mq7bh1np5wz71pzf-python2.7-setuptools-40.2.0/lib/python2.7/site-packages/site.py", line 73, in <module>
__boot()
File "/nix/store/qpiaa6iwqqq7g471mq7bh1np5wz71pzf-python2.7-setuptools-40.2.0/lib/python2.7/site-packages/site.py", line 26, in __boot
import imp # Avoid import loop in Python 3
File "/nix/store/dwi186iqm6p3kfncfsl62fbfwfry1yci-python3-3.7.3/lib/python3.7/imp.py", line 27, in <module>
import tokenize
File "/nix/store/dwi186iqm6p3kfncfsl62fbfwfry1yci-python3-3.7.3/lib/python3.7/tokenize.py", line 33, in <module>
import re
File "/nix/store/dwi186iqm6p3kfncfsl62fbfwfry1yci-python3-3.7.3/lib/python3.7/re.py", line 143, in <module>
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment