tinygrad/gpuctypes

package installation from source error

pkraison opened this issue · 3 comments

I cloned the repository and tried installing on my Ubuntu 20.04 with Python 3.7.13. It gave the error regarding the python version requirement.

I got the point, It needs python 3.8+ because of the syntex (colon assignment operator, type hint). I noticed that with python 3.8.10 it gives error regarding 'Optional' type hint. I switched to python 3.9 and both the tests passed (cuda and opencl). Following is my system info,

  • Ubuntu 20.04
  • Python 3.9.18
  • cuda 11.4

It might be good idea to add this requirement(use with python 3.9+)

geohot commented

The types and walrus should only be the tests, shouldn't affect the package

yes, tried without it and it worked. thanks!