csurfer / pyheat

pprofile + matplotlib = Python program profiled as an awesome heatmap!
MIT License
832 stars 46 forks source link

Installation from pip seems to be broken, tabs found in some of the files. #19

Open jameskhedley opened 2 years ago

jameskhedley commented 2 years ago
$ python3.6 -m pip install pyheat
Defaulting to user installation because normal site-packages is not writeable
Collecting pyheat
  Using cached PyHeat-0.2.tar.gz (66 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: pyheat
  Building wheel for pyheat (setup.py) ... done
  Created wheel for pyheat: filename=PyHeat-0.2-py3-none-any.whl size=6085 sha256=57f1673c93432b413832766cb67b8c56bc84870642eebd77343dd7d7dce54fe4
  Stored in directory: /home/james/.cache/pip/wheels/8f/9b/31/73da16b55b6b6e2f78c2d6a821be9c0ad41ce70fd2dd1e81ab
Successfully built pyheat
Installing collected packages: pyheat
Successfully installed pyheat-0.2
james:aoc$ python3.6 -m pyheat
Traceback (most recent call last):
  File "/usr/lib64/python3.6/runpy.py", line 183, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/usr/lib64/python3.6/runpy.py", line 142, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "/usr/lib64/python3.6/runpy.py", line 109, in _get_module_details
    __import__(pkg_name)
  File "/home/james/.local/lib/python3.6/site-packages/pyheat/__init__.py", line 1, in <module>
    from pyheat.heatmap import HeatMap
  File "/home/james/.local/lib/python3.6/site-packages/pyheat/heatmap.py", line 88
    glEnableClientState(GL_VERTEX_ARRAY)
                                       ^
TabError: inconsistent use of tabs and spaces in indentation

Also there are some old style print var (no brackets) statements in there.