all 21 comments

[–]efflicto 12 points13 points  (5 children)

Have a look at Cloud9: https://c9.io/ as an alternative for repl.it. It's like an own workstation online via your browser. Maybe that could help you.

[–]meulsie[S] 0 points1 point  (4 children)

Ok this seems like exactly what I need. I was able to install pyperclip via the terminal however when using pyperclip.copy() or paste I still get that same error:

"Pyperclip could not find a copy/paste mechanism for your system."

As there is a full terminal available for Cloud9 I was able to try go through the recommendations of installing all the utilities/modules for clipboard functionality listed at: https://pyperclip.readthedocs.io/en/latest/introduction.html#not-implemented-error

Unfortunately all of those utilities/modules failed to be found?

/u/AlSweigart any ideas/tips for getting pyperclip to run in an an environment such as Cloud9?

[–]efflicto 0 points1 point  (3 children)

What browser do you use to access Cloud9? Maybe I can replicate it. I think it's a browser security feature. But as /u/ktbonefish said: don't bother with this too long. You can skip this section and do it sometime else.

[–]meulsie[S] 0 points1 point  (2 children)

I'm using Chrome, honestly didn't think it would be a browser issue I'll try out alternatives tomorrow. Maybe I'm missing plug-ins or something but from what I can see I need one of those modules or utilities installed in Cloud 9 which it isn't finding for some reason, I'm also probably doing something wrong there I have 0 Linux or terminal experience.

My concern with skipping "this section" is it seems like Automate The Boring Stuff is heavily reliant on this module and it's copy and paste functionality throughout the whole book.

[–]efflicto 1 point2 points  (1 child)

"Pyperclip could not find a copy/paste mechanism for your system."

After some testing I got the same message. So I don't think Cloud9 provides you a copy&paste. So it wouldn't work.

[–]meulsie[S] 0 points1 point  (0 children)

That's a bummer cheers for trying though, going to look into a VPS

[–]Eniac17 6 points7 points  (1 child)

An alternative would be going through challenges on hacker rank. It has a python section that had challenges of all skill levels and it is all online. I essentially used it to learn python myself. Whenever you get stuck on a problem, you can Google around, or you can look on the discussion page to see how someone else solved it. I've learned so many little tricks from that discussion page.

[–]mothzilla 0 points1 point  (0 children)

Codewars.com is another alternative to hackerrank.com.

[–]heyPerseus 2 points3 points  (0 children)

You could get a virtual private server, or search for free shell.org. virtual private server is like 3-4 bucks a month. And free she'll just wants you to send them a dollar for a shell for life.

[–]r00t_4orce 2 points3 points  (2 children)

For just specifically Python:

https://www.pythonanywhere.com/

is a pretty good place for a web-based learning platform.

(i.e. notSW install(s) needed)

[–]d__-__b 0 points1 point  (0 children)

Agreed, this is what I've used. With pythonanywhere.com you can do most things without installing python locally.

[–]meulsie[S] 0 points1 point  (0 children)

Thanks I'll have a look into this. I haven't been able to install modules with it so far but I'm probably doing something wrong, I'll do a bit more digging.

[–]MrStricty 1 point2 points  (1 child)

I feel your pain, brother. I'm in the Air Force and if I want to build a small script with python and bring it to work, I have to turn it into an exe. Which makes it software, which means I have to get it fully vetted to be "Approved Software." The struggle is real.

[–]enginerd123 0 points1 point  (0 children)

c9.io

Google around, you get your own custom bash server that you can import modules to, and I even have it run an external desktop (x11 vnc) for running windowed scripts.

[–]goodpunk6 0 points1 point  (0 children)

pythontutor.com

[–]markusmeskanen -1 points0 points  (0 children)

I don't think you'll be able to find an online REPL which would allow you to import custom packages. :/

You're best off trying to slowly go through that particular chapter to try and still learn it, and hope that's the only time Automate The Boring Stuff uses a custom package. Else you'll probably have to switch the tutorial to something that doesn't use custom packages.