r/learnpython • • May 26 '20

I made an online Python interpreter that doesn't suck

Most online python interpreters suck because they try to be complete IDEs with bloated designs and none of them work on mobile.

I spent the coronavirus lockdown time building a simple python interpreter that doesn't suck, has a simple design and works on mobile. It also has a nifty dark mode feature.

I would appreciate any feedback on the tool - in terms of UI/UX, security, packages, feature requests and I would be happy to answer any questions regarding how I built it.

https://www.programiz.com/python-programming/online-compiler/

527 Upvotes

147 comments sorted by

66

u/Diapolo10 I write code for a living -- https://github.com/Diapolo10 May 26 '20

It seems that the shell crashes if used as an interpreter and the code raises an error, which requires reloading the page. Python 3.8 support would also be nice.

Otherwise, well done!

52

u/EvenYourMumCanCode May 26 '20

That's not supposed to happen. I was pushing some updates late last night, might have broken something. I'll check.

Can you share the code that you used to break the shell?

29

u/EvenYourMumCanCode May 26 '20

Also, did you try fixing the code and pressing 'Run' again, a new python process is created every time you press it.

27

u/Diapolo10 I write code for a living -- https://github.com/Diapolo10 May 26 '20

Ah, no I did not. I was typing commands directly to the shell instead of using the editor view, which is apparently something you didn't intend. But you're right, by switching back to the editor and clicking Run it does reset the shell.

Basically, I had this sudden "bright" idea of testing what

num = 0
(num := num+1) + (num := num+1)

would do, but since I didn't have a 3.8 installation at hand (phone has 3.7, and I was at work) I wanted to see how yours would respond. But since your interpreter seems to use 3.7 or earlier it obviously didn't work (and probably wouldn't anyway, but I was curious).

32

u/EvenYourMumCanCode May 26 '20

Your code now works since the Python version is now 3.8.2

9

u/kylemaster38 May 26 '20

Kudos to being a caring dev

29

u/EvenYourMumCanCode May 26 '20

Upgrading the python version to 3.8, update should go live in 15 minutes if all goes well.

11

u/Infreezy May 26 '20

Hey I am curious ive never seen this syntax used in python what does your code do

6

u/[deleted] May 26 '20

I'm not sure why it would never not just equal 0

5

u/[deleted] May 26 '20

Oop I thought he was using multiplication nm

2

u/sweettuse May 26 '20

even when using * the answer would still be 2

5

u/Diapolo10 I write code for a living -- https://github.com/Diapolo10 May 26 '20

Actually, the answer with addition is 3. The walrus operators are evaluated first.

num = 0
(num := num+1) + (num := num+1)

(1) + (2)
3

-1

u/sweettuse May 26 '20

read my comment again. i was talking about `*`, i.e. multiplication, not addition.

→ More replies (0)

2

u/yaxriifgyn May 26 '20

Python 3.8 and 3.9b1 both reply with 3.

1

u/sweettuse May 26 '20

read my comment again. i was talking about `*`, i.e. multiplication, not addition.

1

u/[deleted] May 27 '20

I thought it was the multiplication assignment operator not where the addition symbol is. I.e num =0, num *: = 0

1

u/[deleted] May 27 '20

num*=

3

u/Diapolo10 I write code for a living -- https://github.com/Diapolo10 May 26 '20

Basically, :=, also known as the walrus operator, is a new operator added in 3.8. It works like regular assignment but is also an expression that return the value on the left after the operation, so you can combine assignment and actually using the value.

In my example, I wanted to see how Python would handle multiple assignments in one line, because in C++ something similiar is undefined behaviour:

int foo{};
std::cout << ++foo + ++foo;

Python actually seems to handle this just fine.

3

u/[deleted] May 26 '20

This is why I truly enjoy Python world: "I'm too lazy to type out two lines, so please change the language to give me a new operator with zero new functionality". Lulz.

Python is the computer science equivalent of the car that Homer Simpson designed.

5

u/billysback May 26 '20

Hi simply writing import os crashes the shell for me

3

u/snake_Camel_Case May 26 '20

Being able to import os seems like it might be a security bug. Ideally, it would give a specialized error

2

u/EvenYourMumCanCode May 27 '20

While I work on allowing the os module in a secure fashion, I have put a more user friendly error message.

1

u/snake_Camel_Case May 27 '20

Man, this project is just fantastic. I totally agree that there was a need for this and it’s so clean and feature-rich

2

u/EvenYourMumCanCode May 27 '20

Thank you. This thread made it a much better project than it was yesterday.

4

u/billysback May 26 '20

Yeah, an error was what I was expecting.

1

u/EvenYourMumCanCode May 27 '20

I have put a more friendly error message.

23

u/KnowledgeFire11 May 26 '20

I used programiz.com many times, I especially like it's section under which they explain all the functions of Python. Is this website yours?

49

u/EvenYourMumCanCode May 26 '20

Yes, I run it with a tiny team based in Kathmandu, Nepal.

16

u/KnowledgeFire11 May 26 '20

Really appreciate it. I really like your app on Python learnt a lot from it! Thanks for the amazing work!

1

u/SanjivGautamOfficial May 26 '20

You are from Kathmandu Nepal?

0

u/[deleted] May 26 '20

[deleted]

5

u/EvenYourMumCanCode May 26 '20

Cheers to a lifetime of learning!

Unfortunately, we don't have internships open right now, our jobs page is https://programiz.com/careers in case you want to apply later when we are hiring interns again.

19

u/veera_sivarajan May 26 '20

How do I get started with building such an interpreter?

14

u/MarsupialMole May 26 '20

I can get help on modules like sys but I can't import it - the import never returns

21

u/EvenYourMumCanCode May 26 '20

Yes, many people were using the sys module to run malicious code that would bring down the system so I banned it's use.

I will put out a more helpful error message that explains this and see if there is a way to allow the sys module while maintaining security.

7

u/MarsupialMole May 26 '20

I figured it might be something like that. Did you consider removing it from the available modules? I have no idea what's involved in the detail of that.

8

u/EvenYourMumCanCode May 26 '20

Can be done. I have designed it to be fully configurable and it's not even limited to Python.

There's a C compiler that uses the same codebase at https://www.programiz.com/c-programming/online-compiler

9

u/MarsupialMole May 26 '20

So you might want to change the user from root. So far I've been able to use the platform module and the getpass module to get the user and operating system and explore the filesystem using glob, and run shell commands by running exec on the subprocess source and messing around with check_call.

12

u/EvenYourMumCanCode May 26 '20

Deploying the server to use non-root user in 5 minutes.

9

u/EvenYourMumCanCode May 26 '20

Deployed, should be rolled out across my Kubernetes cluster in some time.

27

u/Dutchy_ May 26 '20

I suggest you take it offline until you improve the security.

I was able to import os in spite of your protections and see all your python processes running in the same container, running as the user root. Running the same code on repl.it gives me a single process running as non-root.

I'll send you the code in a message.

-25

u/Probono_Bonobo May 26 '20

I really loathe responses like this.

There are bound to be security holes any time you evaluate untrusted code. Does that mean you shouldn't do it until you patch all possible security holes? No, it just means you shouldn't run the process on a server you care about. If it crashes, figure out why, and then fix it.

15

u/EvenYourMumCanCode May 26 '20

Yeah, these are just transitory docker containers running the code so taking down the system doesn't make sense.

But the original comment and the code that was sent to me in my inbox were extremely helpful. I have already pushed the fix to run the commands through non-root user and working now to upgrade to 3.8 and also fix all the security holes.

1

u/searchingfortao danielquinn May 26 '20

You may want to consider locking down network capabilities as well, otherwise creative people might be able to use your site as a vector to attack others.

18

u/Dutchy_ May 26 '20

My tone could have been a bit nicer, but it was all in good faith and we had a good conversation about it in private :)

6

u/Username_RANDINT def get_random_int(): return "RANDINT" # TODO May 26 '20

You need to add importlib to the blacklisted modules. I was able to import all banned modules.

Also the interactive interpreter could use some extra work. Arrow up for history is a must have.

5

u/EvenYourMumCanCode May 26 '20

Arrow up for history is doable but will take time, I had to make some design choices to make the mobile experience seamless, and one of them was using a plain text editor instead of a full-fledged terminal like xterm.js to show the terminal.

1

u/Ulysses6 May 26 '20

Even the simplest message that this is not possible would be super helpful.

2

u/EvenYourMumCanCode May 27 '20

Working on it. Ever since this post rose to the top of r/learnpython, lots of people are trying to run malicious code so I've been busy keeping everything running.

Will put out a helpful message as soon as I get the time.

2

u/EvenYourMumCanCode May 27 '20

I have put in a simple message that explains that the module doesn't work instead of the interpreter just crashing. Hope that helps.

2

u/ojii May 26 '20

Also print(__import__("os").system("uname")) works and probably shouldn't. locking down python by banning modules is quite hard in Python (if it's possible at all).

2

u/RoamingFox May 26 '20

Hate to break it to you, but you can still get to sys.

import importlib
print(importlib.import_module('sys').copyright)

7

u/Allanon001 May 26 '20

You plan support for tkinter? That's the main reason I use repl.it as my online interpreter.

10

u/EvenYourMumCanCode May 26 '20

Yes, support for tkinter is planned, but our goal is to keep the UI as simple as possible.

Maybe I will play around with a possible implementation since it's so popular.

Gotta hand it to Repl.it for their amazing support for everything that you can throw at it.

6

u/Nekose May 26 '20

Very cool!

Did note if you put yourself in an infinite loop you cannot return to the editor after running. Luckily the page forces a reload but you end up losing your work.

IE: while True: print(“stuck”)

5

u/EvenYourMumCanCode May 26 '20

Yeah, the page freezes if you try an infinite loop.

I will check on stack overflow if there is some way to detect infinite loops during compilation time and maybe show a popup to the user with a warning.

2

u/darthminimall May 26 '20

Just add a ctrl-c button.

1

u/EvenYourMumCanCode May 27 '20

Copy to clipboard and sharing functionality is top of the pile on our roadmap. Expect those features soon!

2

u/darthminimall May 27 '20

Context my dude. Keyboard interrupt, not copy.

2

u/EvenYourMumCanCode May 27 '20

Oh haha, yeah Ctrl-C is totally doable. I will add that to our product backlog.

10

u/[deleted] May 26 '20

[removed] — view removed comment

7

u/meatatfeast May 26 '20

How crazy would 2020 be if OP accidentally solved the halting problem while working on this project?

3

u/EvenYourMumCanCode May 26 '20

Judging by how crazy 2020 has been, you never know ;)

6

u/acharyarupak391 May 26 '20

dude from my country is out here making an interpreter and shit, while I can't even write a clean code lol. hats off to you

8

u/EvenYourMumCanCode May 26 '20

It's not an interpreter per se, just a sandbox for running python programs.

Every master was once a novice.

5

u/acharyarupak391 May 26 '20

you basically assign a system(in the cloud) for every instance running for a client right? so how do you prevent someone(some clients) from messing up the system in the cloud, because python does allow users to modify various system settings right?

6

u/EvenYourMumCanCode May 26 '20

Yes, I have used Kubernetes to keep lots of docker containers running and there is something called an ingress loadbalancer that distributes the load across all these containers or 'pods' as they are called in the Kubernetes world.

I am actually writing a blogpost that explains all these details. Will share it here when it's live.

As for messing up the system, it's okay if one of the containers gets messed up, there is something called liveness probe and readiness probe that keeps pinging every server and restarts it if there seems to be a problem. The blogpost should be out next week.

1

u/EvenYourMumCanCode Jun 02 '20

As promised, the blogpost is out. This took ages to write!

https://www.programiz.com/blog/online-python-compiler-engineering/

3

u/acharyarupak391 May 26 '20

thanks, i'll check out the blog

2

u/exographicskip May 26 '20

!RemindMe 7 days

1

u/RemindMeBot May 26 '20

I will be messaging you in 7 days on 2020-06-02 11:25:46 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.


InfoCustomYour RemindersFeedback

2

u/Frag187 May 26 '20

!RemindMe 7 days

6

u/Fir3He4rt May 26 '20

Are you running that site? It is pretty cool. I have been using it since a long time.

6

u/EvenYourMumCanCode May 26 '20

Yes, we'll complete a decade next year :)

4

u/OnlySeesLastSentence May 26 '20

Does it support guis? I bought a membership with Trinket.io recently because I saw it works with GUIs, but of course when I tried it with my program, it crashed.

Oh, and when I tried my other program that didn't require a GUI, it crashed because it didn't understand what "import geopy" means and as far as I'm aware, you can't just download a geopy.py anywhere, so I guess my question is... Does your program support imports?

That said, even if the answer is no to both, thanks for providing an option to at least run text code without imports. It's still a pretty neat thing.

4

u/EvenYourMumCanCode May 26 '20

It doesn't support GUIs yet, but I know it's possible. I'll keep geopy.py in my list of 'integrations to explore' for now.

Reading all the comments has got me thinking of leaving this compiler as it is for simple programs and building other versions of it with add-ons that don't really need to work on mobile phones.

4

u/OnlySeesLastSentence May 26 '20

Cool. Don't worry about geopy specifically. It was just a throw away example. I guess what I meant is "is there a way to support pip install". I think I have to teach myself virtual envs first either way. That probably is how I'm supposed to get around that issue with most compilers.

3

u/EvenYourMumCanCode May 26 '20

Got it. 'pip install' is technically possible. If there are any non-GUI libraries you would want to be able to use, let me know and I will add those to the server configuration.

For GUIs, I will look into how different libraries output images, html pages and the lot, there must be a method to the madness.

4

u/OnlySeesLastSentence May 26 '20

The only things I can think of off the top of my head are pygame (it's super useful, though I imagine it would need a GUI for most things. I used it initially for a text based game that takes input from my piano) and Black.

Although... Black might not work since it runs off the operating system and doesn't touch python at all. In case you might not have used it, you basically open a command prompt and after you pip install it, you do like

Black sourcecode.py

and then it formats your code to look pretty and stuff.

Other than those, I can't really think of any useful modules that lots of people would use.

2

u/amasad May 26 '20

Hey there, have you tried Repl.it? It supports GUI Trinket, PyGame, all that. You can get started with PyGame here: https://repl.it/languages/pygame

Also here is geopy running on repl.it https://repl.it/@amasad/geopy-test

2

u/OnlySeesLastSentence May 26 '20

I had, and it was very close to being a great site aside for a major problem - it seems to zoom in very hard and then freeze. Here's my program that I'd put on it (I totally forgot that I had uploaded to there until now haha)-

repl.it/@MOABdali/ExtremeHangMan#main.py

It messes up once the actual game begins. It works fine directly on my computer though

1

u/amasad May 27 '20

That's strange. Could you be so kind as to reduce this to a simple repro case I can get to our engineers? I can also talk to the PySimpleGUI crew who are really helpful.

1

u/OnlySeesLastSentence May 28 '20 edited May 28 '20

Sure thing; here's two simple windows. The first one I tried making too long but I failed, but then I realized it can be used as a control to see what it should look like. The second one breaks the GUI and the ok button just flat out disappears. I think if you can do some sort of scaling to where it zooms instead of cutting out, it might solve the issue. A side note: I noticed that Mike from simplegui mentions on his page that writing a gui that is too big will cause stuff to break, so looks like it's a common issue. The windows show up perfectly on my PC's python interpreter.

https://repl.it/@moabdali/MagentaCompatibleRoot#main.py

Oh and a work around of sorts: I saw that using simpleguiweb fixes it, but it doesn't look as nice as a terminal in my opinion because it "top left" justifies everything.

A small (maybe huge?) request - when you talk to the engineers, can you ask them if there's an option to make the output full screen? I made a neat app I want them to use at my work on a phone, but unfortunately it's a little too small and I don't think they'd want to manually set the zoom every time the program reconnects. A simple "fullscreen" button would be so awesome.

(The work program if you're curious; I'm still updating it, so the code is ugly and incomplete

https://repl.it/@moabdali/ClickList#main.py

)

OH! And an important bug fix: if you type in 5 using the numpad for inputs, a weird symbol appears. I put in a fix to catch it, but it's still very strange. I thought maybe it was just the website not recognizing my keyboard for some reason, but the same issue happened at work, so I think it's a REPL issue (I don't think it's simplegui's fault because I haven't seen that before until now. It's like the bottom right corner of a square. It doesn't always happen it seems, but if you run my click list program and type five on the numpad it will usually show that instead of 5. A normal 5 button on the left half of the keyboard works just fine.)

4

u/darthminimall May 26 '20

Allowing arbitrary code execution on your server is risky business. I'm curious what safeguards you've put in place to prevent malicious actors from doing their thing.

2

u/EvenYourMumCanCode May 27 '20

A full blogpost on that is in the works. I'll post it here by next week.

3

u/bearassbobcat May 26 '20

hotkeys for running the script would be nice (maybe they were there and I missed them)

for example CTRL+Enter runs the script on similar websites. Maybe make CTRL+Enter toggle between the script and run views. I think SHIFT+Enter is easier to hit but CTRL seems to be a convention that I've noticed

3

u/EvenYourMumCanCode May 26 '20

Working on this...

2

u/bearassbobcat May 26 '20

good to hear.

great work by the way. thanks for sharing.

3

u/EvenYourMumCanCode May 26 '20

I've just added keyboard shortcuts - Ctrl+Enter and Cmd+Enter will execute the code now.

3

u/CompSciSelfLearning May 26 '20

I found this to be pretty unusable on mobile on Chrome and Firefox.

Both:

The ... Menu is in the way at the end of each line. The run button is in the way at the bottom of the input area.

Firefox:

The ... Menu doesn't seem to work. The options become visible but don't respond.

2

u/EvenYourMumCanCode May 26 '20

I haven't checked it on Firefox yet. Will see if it's an issue with the text editor I have used or my implementation.

2

u/EvenYourMumCanCode May 26 '20

I decided to get rid of the ... menu, it adds more problems than it solves. But that will have to wait till tomorrow.

1

u/EvenYourMumCanCode May 27 '20

I've removed the annoying ... menu. Thank you for this feedback

3

u/FlandoCalrissian May 26 '20

When I'm running code from within the tutorials, I'd like the option of opening the interpreter, with the code already input, in another tab. As is, it always runs in the same tab and then I have to click the browser's back button and figure out where I was in the article. Typically I could just ctrl-left-click the mouse on the "Run Code" button, but it won't allow that.

3

u/EvenYourMumCanCode May 26 '20

I'll enable Ctrl+leftclick, I think it is an important little shortcut that I myself use a lot and should have worked. Thank you for pointing it out!

3

u/FlandoCalrissian May 26 '20

Thanks.

2

u/EvenYourMumCanCode May 26 '20

This fix will be live in few minutes.

3

u/baubleglue May 26 '20

freezes after

import sys, os

Most online python interpreters suck

Pls example of one https://repl.it/languages/python3.

That is a bit cheap way to promote your project.

1

u/EvenYourMumCanCode May 26 '20

I have disabled these modules since the project is aimed for beginners who want to learn beginner concepts.

As for my comment about python interpreters, I still feel nobody really built a seamless mobile experience and I built something that I feel is better than the existing solutions for beginners and shared it in a subreddit where such beginners come to learn Python. I don't see anything wrong with that.

3

u/AngryGoose May 26 '20

I love it. There interface is so clean and simple and it just works.

3

u/EvenYourMumCanCode May 27 '20

Thank you for not being an angry goose for a change.

2

u/bigmaguro May 26 '20

The readability of text in dark mode could be better. Especially comments aren't well visible.

1

u/EvenYourMumCanCode May 26 '20

Let me try a few other darkmode themes and see if they are better.

2

u/[deleted] May 26 '20

Will there be other ways to notify you for bugs or feature requests other than commenting here? Or should we just dm you on reddit?

1

u/EvenYourMumCanCode May 26 '20

There is a link to the feedback form on the top right of the compiler interface.

DM or commenting here is also fine.

2

u/RoamingFox May 26 '20

You may want to improve your sandboxing...

This really shouldn't work:

import importlib
print(importlib.import_module('os').system('ps'))

1

u/EvenYourMumCanCode May 26 '20

I'll fix this at the os level. The comments and the personal feedback messages people have sent me has made it clear that string based blacklisting isn't going to work.

There is nothing but the compiler running on these VMs and I have auto-restart enabled when certain resource limits are exceeded so any malicious code shouldn't bring the system down.

Looking into gVisor by Google and other options.

2

u/RoamingFox May 26 '20

Much safer to go with some sort of OS level containerization.

The concern with string-based blacklisting is that if you can find a way around it (eg. importing os) and your OS happens to have a shell escalation vuln... congrats you're paying for someone else's crypto-mining operation now.

Containerization at least means if they can break the python sandbox they just find themselves inside of another sandbox that is much harder to break since it's implemented at the kernel level.

1

u/EvenYourMumCanCode May 26 '20

True, I have put network policies to disallow egress traffic from the containers so Bitcoin mining isn't a huge concern.

But someone running a script that continuously runs os level code that forks unlimited processes and hogs all resources is a potential issue that has come up before and I will have to fix eventually.

2

u/Tubiey May 26 '20

can i use any module with it / what are its limits

2

u/EvenYourMumCanCode May 26 '20

Most common inbuilt modules are supported.

Modules like tkinter that output a GUI aren't supported. If there is any module that you feel should be included, feel free to tell me and I will include it.

2

u/jeremiahkonkle May 26 '20

Cool project. Are you compiling code in the browser, or is this sending python code to a back end that compiles (using cpython?) and runs it and then returns the result to the browser?

1

u/EvenYourMumCanCode May 27 '20

Second one, sending to a backend.

2

u/reJectedeuw May 26 '20

Install numpy, pandas and requests and I’ll be using it every day

1

u/EvenYourMumCanCode May 27 '20

I hear you. I'll try my best.

1

u/EvenYourMumCanCode May 27 '20

I've added support for numpy and pandas. Requests I am not sure yet. Will see how I can include it without compromising security.

2

u/bumpkinspicefatte May 26 '20

I use repl.it a lot, as I’m a big fan of those kinds of IDEs that live in your browser.

Yours is not bad, I’ll continue to try and use it whenever I can and report any issues I come across with it.

1

u/EvenYourMumCanCode May 27 '20

I'm a big fan of repl.it too, but the sheer number of usecases they support makes their boot time a bit slow, so I felt the need for a snappier version for beginners.

2

u/OnionAnt May 27 '20

Really cool interpreter!

My only suggestions are some small dumb details but these are the requests:

-I couldn’t figure out how to avoid an indentation error when writing more than one line in the shell so automatic indentation or being able to use tab for the shell would be useful

-it would be nice if the editor could automatically un-indent after a return line as nothing would be realistically written afterwards

-it might have been intentional but there isn’t an automatic closing for curly braces

1

u/EvenYourMumCanCode May 27 '20

Thanks for sharing these suggestions. Little things but can greatly enhance the user experience.

I will add these to our product backlog.

3

u/ghostshelltaken May 26 '20

Man I have been using this since last 7 months, this bags question. How did you make it now!?

3

u/EvenYourMumCanCode May 26 '20

An earlier version was live for a few months, but that kept on going down.

I completely rewrote it this time around with lots of checks and balances to keep it running.

2

u/ghostshelltaken May 26 '20

Oh cool, Thank you. BTW this has been so helpful for me. Thank you very much

6

u/Waypoint_Design May 26 '20

You had me at Dark mode

2

u/Ran4 May 26 '20

The text window doesn't follow standard settings. It's super annoying, and near unusable thus.

For example, if I press ctrl+f it starts searching, but I've configured my OS to let ctrl+f move the character forward (I use alt+f for searching).

4

u/EvenYourMumCanCode May 26 '20

I will check if there is any setting in aceEditor (the text editor we use) to make it revert to standard settings.

Ctrl + f to move the cursor forward sounds like a strange setting to have. Is there any advantage to that setting?

5

u/deathlock00 May 26 '20

I'm really impressed, it's fast and it works well on mobile, Thank you!

3

u/Dibash12345 May 26 '20

This site always ranks in google whenever i search some programming problems. It's good to see a website created by team of Nepal which have large audience. Kudos to you brother and your team

2

u/mrasadnoman May 26 '20

Well done.

2

u/Sydmier May 26 '20

Very cool. Used on mobile, and bookmarked page for later use ;)

2

u/prshh May 27 '20

I've been using programiz for a long time. Kudos for building this online compiler; it just added fire to the already existing gem that you have.

1

u/Armindade_ Dec 19 '21

Thank you for all the work you put into making this!

1

u/[deleted] Feb 14 '22

C:\Users\smiles\AppData\Local\Programs\Python\Python310> python ozipdecrypt.py Firmware.ozip

ozipdecrypt 1.31 (c) B.Kerler 2017-2021

"There is no item named 'oppo_metadata' in the archive"

Detected mode 2....

Finding key... Firmware.ozip

Found correct AES key: 1CA21E12271435AE331B81BBA7C14612

Extracting... Firmware.ozip

Traceback (most recent call last):

File "C:\Users\smiles\AppData\Local\Programs\Python\Python310\ozipdecrypt.py", line 258, in main

if zo.extract('oppo_metadata', outpath):

File "C:\Users\smiles\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 1617, in extract

return self._extract_member(member, path, pwd)

File "C:\Users\smiles\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 1656, in _extract_member

member = self.getinfo(member)

File "C:\Users\smiles\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 1430, in getinfo

raise KeyError(

KeyError: "There is no item named 'oppo_metadata' in the archive"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "C:\Users\smiles\AppData\Local\Programs\Python\Python310\ozipdecrypt.py", line 317, in <module>

sys.exit(main(args.filename))

File "C:\Users\smiles\AppData\Local\Programs\Python\Python310\ozipdecrypt.py", line 265, in main

return mode2(filename)

File "C:\Users\smiles\AppData\Local\Programs\Python\Python310\ozipdecrypt.py", line 208, in mode2

os.remove(os.path.join(temp,"out"))

PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\smiles\\AppData\\Local\\Programs\\Python\\Python310\\temp\\out'

What have i Done

0

u/amasad May 26 '20

I don't know about that. Repl.it is both simple and much more powerful than this. You can import packages, do graphics, do git, and works on mobile really well :https://repl.it/languages/python3

0

u/[deleted] May 26 '20

[deleted]

15

u/EvenYourMumCanCode May 26 '20

Repl.it is great. I use it myself.

I made a simpler version that loads faster and is easier on the eyes for beginners.

5

u/nospoon99 May 26 '20

I didn't know about repl.it, looks really good - thanks!

3

u/lazerflipper May 26 '20

I used this for most of my undergrad CS program. It’s hella nice. Best online IDE for any language I’ve found. The integrated GIT environment is nice and so is the built in bash shell. It’s actually pretty solid and I’ve never had a major issue with it even tho it’ll crash every once in a while when dealing with deleting/renaming files.

2

u/Miner_ChAI May 26 '20

I use repl.it only as a free hosting

2

u/econaxis May 27 '20

Hmm...I’m considering this. The specs actually seem really strong and if I leave the tab open, I can run my work queues. Never seen it documented tho.

Is there a way to leave the replit running? Or is this even within TOS?

2

u/Miner_ChAI May 27 '20

Yeah, that’s possible. If you run a website, it will host it for an hour after the last query. So, you can add a fake website and use uptimerobot to check it every 5 mins, so repl.it will automatically run it if it’s stopped and you’ll get a notification about downtime. I made a discord bot a year ago and put it on repl.it... It’s still working

0

u/[deleted] May 26 '20

[deleted]

7

u/EvenYourMumCanCode May 26 '20

That's not in our current roadmap. I think Repl.it does a great job at these advanced features.

We want to stick to people who are figuring out for loops and object oriented programming for now, but with time we might have a pygame implementation as well.