brunocalza/buffer-pool-manager

Couldn't run with Python 3

Opened this issue · 0 comments

xofbd commented

Hello! I stumbled upon your blog, perhaps when I was googling about buffer pool management. Anyways, I thought your blog post was pretty informative and helpful. I really liked the animation you had and I was exicted to see you posted the repo link where one can try it out for themselves.

After cloning the repo, I tried to launch the web app but couldn't. I realized the problem was caused by a difference between Python 2 and 3. In Python 3, SimpleHTTPSever is now http.server. I decided to fork your repo and make the fix so I can run it. You can see it here. Another solution would be to have a shell script that tries to first run it with Python 2 and if it can't try Python 3. That'll make it work for both Python 2 and 3. I also changed up the Makefile so everything can be built and run with make all.

If you are accepting pull requests, that's great! If not, that's fine too. Either way, I wanted to raise the issue in case others encounter the same problem as me. Once again, thanks for the great blog post and buffer pool management app.