isaacg1 / pyth

Pyth, an extremely concise language. Try it here:
https://pyth.herokuapp.com/
MIT License
263 stars 57 forks source link

Online interpreter does not work #259

Closed nim-ka closed 5 months ago

nim-ka commented 5 years ago

Try h"hi". It errors:

Traceback (most recent call last):
  File "pyth.py", line 771, in <module>
  File "<string>", line 3, in <module>
  File "/app/macros.py", line 726, in head
  File "/app/macros.py", line 30, in is_seq
  File "/app/.heroku/python/lib/python3.7/collections/__init__.py", line 48, in __getattr__
ImportError: __import__ not found
nim-ka commented 5 years ago

http://pyth.herokuapp.com/?code=h%22hi%22&debug=0

haselkern commented 5 years ago

Yup, can confirm. The simple example yU3 from the documentation throws a similar error:

Traceback (most recent call last):
  File "pyth.py", line 771, in <module>
  File "<string>", line 3, in <module>
  File "/app/macros.py", line 1178, in subsets
  File "/app/macros.py", line 34, in is_col
  File "/app/.heroku/python/lib/python3.7/collections/__init__.py", line 48, in __getattr__
ImportError: __import__ not found
jakobkogler commented 5 years ago

Yeah, the problem is confirmed. I already made a fix for it, however @isaacg1 needs to accept and deploy it.

Maltysen commented 5 years ago

It turns out that i really can't live without Pyth in my daily life (I can't count how many times I've tried to run some script before getting stopped by this bug in the last couple of weeks), so i've uploaded @jakobkogler's fix to http://pythtemp.herokuapp.com/. This is a strictly temporary measure until @isaacg1 accepts the PR.

GolfingSuccess commented 5 years ago

@Maltysen Hey, I can also confirm the issue! Thanks for the temporary solution. (July 1)

GolfingSuccess commented 5 years ago

So, it looks like the issue isn't currently present, although no change has been made yet.

jakobkogler commented 5 years ago

No, still broken.

GolfingSuccess commented 5 years ago

Not for me...

jakobkogler commented 5 years ago

The error doesn't occur for every code. Try one of the examples mentioned above. Those still don't work.

GolfingSuccess commented 5 years ago

Something has improved for now, since it did occur for e.g. z, but it doesn't anymore.

akleemans commented 10 months ago

Working online interpreter: https://pyth-docker.azurewebsites.net/

As neither the original interpreter nor the (temporary) version by Maltysen work anymore I decided to host a version myself. I created a docker image (see forked Repo https://github.com/akleemans/pyth-docker) with updated dependencies (based on Python 3.11) if anybody wants to run it by themselves.

Maltysen commented 10 months ago

@akleemans tysm!

isaacg1 commented 9 months ago

@akleemans Thanks for getting it running!