Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #61932 > unrolled thread
| Started by | Mark <markyshizzle@gmail.com> |
|---|---|
| First post | 2013-12-14 20:51 -0800 |
| Last post | 2013-12-18 14:46 -0800 |
| Articles | 20 on this page of 28 — 11 participants |
Back to article view | Back to comp.lang.python
New to Python, Help to get script working? Mark <markyshizzle@gmail.com> - 2013-12-14 20:51 -0800
Re: New to Python, Help to get script working? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-15 05:03 +0000
Re: New to Python, Help to get script working? Chris Angelico <rosuav@gmail.com> - 2013-12-15 16:06 +1100
Re: New to Python, Help to get script working? Denis McMahon <denismfmcmahon@gmail.com> - 2013-12-15 15:25 +0000
Re: New to Python, Help to get script working? Mark <markyshizzle@gmail.com> - 2013-12-15 13:19 -0800
Re: New to Python, Help to get script working? Mark <markyshizzle@gmail.com> - 2013-12-15 13:31 -0800
Re: New to Python, Help to get script working? Chris Angelico <rosuav@gmail.com> - 2013-12-16 09:10 +1100
Re: New to Python, Help to get script working? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-16 01:37 +0000
Re: New to Python, Help to get script working? Chris Angelico <rosuav@gmail.com> - 2013-12-16 13:33 +1100
Re: New to Python, Help to get script working? Mark <markyshizzle@gmail.com> - 2013-12-15 23:09 -0800
Re: New to Python, Help to get script working? Mark <markyshizzle@gmail.com> - 2013-12-15 23:43 -0800
Re: New to Python, Help to get script working? Chris Angelico <rosuav@gmail.com> - 2013-12-16 18:47 +1100
Re: New to Python, Help to get script working? Mark <markyshizzle@gmail.com> - 2013-12-15 23:48 -0800
Re: New to Python, Help to get script working? Mark <markyshizzle@gmail.com> - 2013-12-15 23:52 -0800
Re: New to Python, Help to get script working? Mark <markyshizzle@gmail.com> - 2013-12-15 23:55 -0800
Re: New to Python, Help to get script working? Mark <markyshizzle@gmail.com> - 2013-12-16 00:02 -0800
Re: New to Python, Help to get script working? "Frank Millman" <frank@chagford.com> - 2013-12-16 10:38 +0200
Re: New to Python, Help to get script working? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-16 09:28 +0000
Re: New to Python, Help to get script working? Ned Batchelder <ned@nedbatchelder.com> - 2013-12-16 10:19 -0500
Re: New to Python, Help to get script working? Mark <markyshizzle@gmail.com> - 2013-12-16 12:25 -0800
Re: New to Python, Help to get script working? rusi <rustompmody@gmail.com> - 2013-12-16 17:05 -0800
Re: New to Python, Help to get script working? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-12-16 21:05 -0500
Re: New to Python, Help to get script working? Mark <markyshizzle@gmail.com> - 2013-12-17 03:05 -0800
Re: New to Python, Help to get script working? rusi <rustompmody@gmail.com> - 2013-12-17 09:13 -0800
Re: New to Python, Help to get script working? Chris Angelico <rosuav@gmail.com> - 2013-12-16 18:43 +1100
Re: New to Python, Help to get script working? Rick Johnson <rantingrickjohnson@gmail.com> - 2013-12-17 09:33 -0800
Re: New to Python, Help to get script working? Joel Goldstick <joel.goldstick@gmail.com> - 2013-12-17 12:40 -0500
Re: New to Python, Help to get script working? Mark <markyshizzle@gmail.com> - 2013-12-18 14:46 -0800
Page 1 of 2 [1] 2 Next page →
| From | Mark <markyshizzle@gmail.com> |
|---|---|
| Date | 2013-12-14 20:51 -0800 |
| Subject | New to Python, Help to get script working? |
| Message-ID | <61009939-dc9b-4ffe-84c0-a695b96d9a2d@googlegroups.com> |
Hey guys, I found this website that has a script in order to increase numbers to a live viewing stream. Being new to python, I keep running into problems trying to get it to work. The original site is here, as he talks about how it works. It is the top article. http://www.ericzhang.me/ I have successfully installed python 3.3 for windows, pip and livestreamer that is needed for it to work. They are in my scripts folder. I either do not understand the script or it no longer works. It is more than likely my error. I get errors on line 19 and cant get it to work at all. The included code is located here https://gist.github.com/Xeroday/6468146/raw/1b7fb468551a4ba5b73ea3c0b7bc47591c3a8c51/Twitch.py If anybody could provide some incite on how to get it to work, how the variables work, and such, I would be so grateful! Mark
[toc] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2013-12-15 05:03 +0000 |
| Message-ID | <52ad382d$0$29992$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #61932 |
On Sat, 14 Dec 2013 20:51:59 -0800, Mark wrote:
> Hey guys, I found this website that has a script in order to increase
> numbers to a live viewing stream. Being new to python, I keep running
> into problems trying to get it to work.
>
> The original site is here, as he talks about how it works. It is the top
> article.
>
> http://www.ericzhang.me/
>
> I have successfully installed python 3.3 for windows,
Great! But what version of Python is that script written for?
[...]
> I get errors on line 19 and cant get it to work at all.
Errors plural? Multiple errors on one line? That's unusual.
Please copy and paste (don't summarise or re-type from memory) the entire
traceback showing the full error you get. That is, copy and paste
*everything* from the first line
Traceback (most recent call last)
all the way to the end of the error message.
--
Steven
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-12-15 16:06 +1100 |
| Message-ID | <mailman.4137.1387084490.18130.python-list@python.org> |
| In reply to | #61932 |
On Sun, Dec 15, 2013 at 3:51 PM, Mark <markyshizzle@gmail.com> wrote: > I have successfully installed python 3.3 for windows, pip and livestreamer that is needed for it to work. What I'm seeing in that script suggests that it actually needs Python 2.7, not 3.3. The best approach would be to make it work with Python 3, but if you can't do that, try installing Python 2. But more generally, when you get errors, it helps *hugely* to copy and paste the error - don't just say "on line 19", and leave us to guess what error you're getting :) ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Denis McMahon <denismfmcmahon@gmail.com> |
|---|---|
| Date | 2013-12-15 15:25 +0000 |
| Message-ID | <l8khl3$uf5$2@dont-email.me> |
| In reply to | #61932 |
On Sat, 14 Dec 2013 20:51:59 -0800, Mark wrote: > I have successfully installed python 3.3 for windows, pip and > livestreamer that is needed for it to work. They are in my scripts > folder. I either do not understand the script or it no longer works. It > is more than likely my error. I get errors on line 19 and cant get it to > work at all. If you're getting the "not enough goats and chickens sacrificed error", sacrifice more goats and chickens. (Hint - it would help if you told us what the error was, and displayed at least the line the error occurs on and the preceding 10 lines or so) -- Denis McMahon, denismfmcmahon@gmail.com
[toc] | [prev] | [next] | [standalone]
| From | Mark <markyshizzle@gmail.com> |
|---|---|
| Date | 2013-12-15 13:19 -0800 |
| Message-ID | <5769f8c3-f09c-458a-92b6-c727bfe95656@googlegroups.com> |
| In reply to | #61932 |
Thanks for the replies, I was hoping that one of you guys could actually try it for me, as it might be easier to correct? In the meantime i will install 2.7 instead of 3.3 and give it a try. Once again, i have very little experience in this, which is why i am looking for help :) I am more worried about getting it to work then knowing whats wrong, but it could also be helpful haha Thanks Mark
[toc] | [prev] | [next] | [standalone]
| From | Mark <markyshizzle@gmail.com> |
|---|---|
| Date | 2013-12-15 13:31 -0800 |
| Message-ID | <bd321ee0-3966-4eb6-8fff-3b32e6848a86@googlegroups.com> |
| In reply to | #61965 |
On Sunday, December 15, 2013 4:19:47 PM UTC-5, Mark wrote: > Thanks for the replies, I was hoping that one of you guys could actually try it for me, as it might be easier to correct? In the meantime i will install 2.7 instead of 3.3 and give it a try. > > > > Once again, i have very little experience in this, which is why i am looking for help :) I am more worried about getting it to work then knowing whats wrong, but it could also be helpful haha > > > > Thanks > > > > Mark I originally get an indent error on line 19, i delete the indent and i get ***'return outside function (Twitch.py, line 19) Thats where i am at. This is on version 2.7 If anybody could correct this for me or provide some incite. i would be very grateful. If any of you would be available for some sort of chat to fix it, I would also love to do something like that. Thanks again Mark
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-12-16 09:10 +1100 |
| Message-ID | <mailman.4153.1387145428.18130.python-list@python.org> |
| In reply to | #61966 |
On Mon, Dec 16, 2013 at 8:31 AM, Mark <markyshizzle@gmail.com> wrote: > I originally get an indent error on line 19, i delete the indent and i get > > ***'return outside function (Twitch.py, line 19) Good point, someone's made a mistake in that file. What you need to do is match the "output = ..." line and the "return ..." line underneath it. For consistency with the rest of the file, indent the "output" line to match the other. That should make it work. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2013-12-16 01:37 +0000 |
| Message-ID | <52ae596b$0$29976$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #61966 |
On Sun, 15 Dec 2013 13:31:10 -0800, Mark wrote: > I originally get an indent error on line 19, i delete the indent and i > get > > ***'return outside function (Twitch.py, line 19) > > Thats where i am at. This is on version 2.7 Remember the bit where we asked you to copy and paste the entire error message, starting from the Traceback line? This is *important*, please do not ignore it. If you're going to ask for help from experts, pay attention to what the experts tell you. At this point, I recommend you download the script again, since you've been making modifications to it and have probably introduced your own errors. Better to start again with a fresh copy in a known good state, rather than one that you've been making arbitrary changes to: Step 1: replace the modified version of the script with a known good copy. Step 2: try running that script using the correct version of Python. Step 3: if it fails in some way, copy and paste the entire traceback. It may be that you're using it wrongly. -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-12-16 13:33 +1100 |
| Message-ID | <mailman.4163.1387161201.18130.python-list@python.org> |
| In reply to | #61978 |
On Mon, Dec 16, 2013 at 12:37 PM, Steven D'Aprano <steve+comp.lang.python@pearwood.info> wrote: > Step 1: replace the modified version of the script with a known good copy. > Actually, this might be where the problem is, unfortunately. Not the OP's fault at all. I went and looked at the post linked to, and it has buggy indentation. (Quite possibly indicates that the author has two-space tabs, and didn't notice a bug slipping in. I dunno.) Along the way, though, I learned that the script in question is entirely for generating fake twitch.tv viewers so as to get your stream highlighted fraudulently, so I'm rather less inclined to help. Got a legitimate use for this, or are you just trying to cheat your way to fame? ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Mark <markyshizzle@gmail.com> |
|---|---|
| Date | 2013-12-15 23:09 -0800 |
| Message-ID | <fe57dbb8-f8be-4787-a6d6-e7c723b47670@googlegroups.com> |
| In reply to | #61982 |
On Sunday, December 15, 2013 9:33:17 PM UTC-5, Chris Angelico wrote:
> On Mon, Dec 16, 2013 at 12:37 PM, Steven D'Aprano
>
> <steve+comp.lang.python@pearwood.info> wrote:
>
> > Step 1: replace the modified version of the script with a known good copy.
>
> >
>
>
>
> Actually, this might be where the problem is, unfortunately. Not the
>
> OP's fault at all. I went and looked at the post linked to, and it has
>
> buggy indentation. (Quite possibly indicates that the author has
>
> two-space tabs, and didn't notice a bug slipping in. I dunno.)
>
>
>
> Along the way, though, I learned that the script in question is
>
> entirely for generating fake twitch.tv viewers so as to get your
>
> stream highlighted fraudulently, so I'm rather less inclined to help.
>
> Got a legitimate use for this, or are you just trying to cheat your
>
> way to fame?
>
>
>
> ChrisA
Thanks for the reply, the answer is yes and no, i already have about 2400 followers and half mil views, i just wanted to see if i could get it to work.
So after taking everybody's advice, fixed the indentation as mentioned by the expert above. :) After, this is what i came up with
Traceback (most recent call last):
File "C:\Python27\Scripts\Twitch.py", line 9, in <module>
numberOfViewers = int(sys.argv[1])
IndexError: list index out of range
Is this where i would plug in the variables to make it work? I'm not quite sure about how you would plug in those numbers
>>>
[toc] | [prev] | [next] | [standalone]
| From | Mark <markyshizzle@gmail.com> |
|---|---|
| Date | 2013-12-15 23:43 -0800 |
| Message-ID | <714fc5b8-6c85-4de3-8c0a-1a43d791f139@googlegroups.com> |
| In reply to | #62013 |
On Monday, December 16, 2013 2:09:38 AM UTC-5, Mark wrote:
> On Sunday, December 15, 2013 9:33:17 PM UTC-5, Chris Angelico wrote:
>
> > On Mon, Dec 16, 2013 at 12:37 PM, Steven D'Aprano
>
> >
>
> > <steve+comp.lang.python@pearwood.info> wrote:
>
> >
>
> > > Step 1: replace the modified version of the script with a known good copy.
>
> >
>
> > >
>
> >
>
> >
>
> >
>
> > Actually, this might be where the problem is, unfortunately. Not the
>
> >
>
> > OP's fault at all. I went and looked at the post linked to, and it has
>
> >
>
> > buggy indentation. (Quite possibly indicates that the author has
>
> >
>
> > two-space tabs, and didn't notice a bug slipping in. I dunno.)
>
> >
>
> >
>
> >
>
> > Along the way, though, I learned that the script in question is
>
> >
>
> > entirely for generating fake twitch.tv viewers so as to get your
>
> >
>
> > stream highlighted fraudulently, so I'm rather less inclined to help.
>
> >
>
> > Got a legitimate use for this, or are you just trying to cheat your
>
> >
>
> > way to fame?
>
> >
>
> >
>
> >
>
> > ChrisA
>
>
>
> Thanks for the reply, the answer is yes and no, i already have about 2400 followers and half mil views, i just wanted to see if i could get it to work.
>
>
>
> So after taking everybody's advice, fixed the indentation as mentioned by the expert above. :) After, this is what i came up with
>
>
>
> Traceback (most recent call last):
>
> File "C:\Python27\Scripts\Twitch.py", line 9, in <module>
>
> numberOfViewers = int(sys.argv[1])
>
> IndexError: list index out of range
>
>
>
> Is this where i would plug in the variables to make it work? I'm not quite sure about how you would plug in those numbers
>
> >>>
okay so i kinda get it now, running it in cmd, i use the following command -
python twitch.py 10 10. I am running it within the scripts directory.
I get the following error in cmd:
Syntax Error: invalid syntax
>>>python twitch.py 10 10
File "<stdin> line 1
python twitch.py 10 10
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-12-16 18:47 +1100 |
| Message-ID | <mailman.4185.1387180023.18130.python-list@python.org> |
| In reply to | #62014 |
On Mon, Dec 16, 2013 at 6:43 PM, Mark <markyshizzle@gmail.com> wrote: > Syntax Error: invalid syntax >>>>python twitch.py 10 10 > File "<stdin> line 1 > python twitch.py 10 10 You're trying to run that from the interactive Python prompt. Run it from the system - exit Python and run just this script. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Mark <markyshizzle@gmail.com> |
|---|---|
| Date | 2013-12-15 23:48 -0800 |
| Message-ID | <34827ea0-7bec-41a8-baf9-587e2503fff8@googlegroups.com> |
| In reply to | #62014 |
On Monday, December 16, 2013 2:43:45 AM UTC-5, Mark wrote: > On Monday, December 16, 2013 2:09:38 AM UTC-5, Mark wrote: > > > On Sunday, December 15, 2013 9:33:17 PM UTC-5, Chris Angelico wrote: > > > > > > > On Mon, Dec 16, 2013 at 12:37 PM, Steven D'Aprano > > > > > > > > > > > > > > <steve+comp.lang.python@pearwood.info> wrote: > > > > > > > > > > > > > > > Step 1: replace the modified version of the script with a known good copy. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Actually, this might be where the problem is, unfortunately. Not the > > > > > > > > > > > > > > OP's fault at all. I went and looked at the post linked to, and it has > > > > > > > > > > > > > > buggy indentation. (Quite possibly indicates that the author has > > > > > > > > > > > > > > two-space tabs, and didn't notice a bug slipping in. I dunno.) > > > > > > > > > > > > > > > > > > > > > > > > > > > > Along the way, though, I learned that the script in question is > > > > > > > > > > > > > > entirely for generating fake twitch.tv viewers so as to get your > > > > > > > > > > > > > > stream highlighted fraudulently, so I'm rather less inclined to help. > > > > > > > > > > > > > > Got a legitimate use for this, or are you just trying to cheat your > > > > > > > > > > > > > > way to fame? > > > > > > > > > > > > > > > > > > > > > > > > > > > > ChrisA > > > > > > > > > > > > Thanks for the reply, the answer is yes and no, i already have about 2400 followers and half mil views, i just wanted to see if i could get it to work. > > > > > > > > > > > > So after taking everybody's advice, fixed the indentation as mentioned by the expert above. :) After, this is what i came up with > > > > > > > > > > > > Traceback (most recent call last): > > > > > > File "C:\Python27\Scripts\Twitch.py", line 9, in <module> > > > > > > numberOfViewers = int(sys.argv[1]) > > > > > > IndexError: list index out of range > > > > > > > > > > > > Is this where i would plug in the variables to make it work? I'm not quite sure about how you would plug in those numbers > > > > > > >>> > > > > okay so i kinda get it now, running it in cmd, i use the following command - > > python twitch.py 10 10. I am running it within the scripts directory. > > > > I get the following error in cmd: > > > > Syntax Error: invalid syntax > > >>>python twitch.py 10 10 > > File "<stdin> line 1 > > python twitch.py 10 10 is there a more effecient way of doing this? I just hold shift and right click to run cmd from the folder, File is located in C:\Python27\Scripts
[toc] | [prev] | [next] | [standalone]
| From | Mark <markyshizzle@gmail.com> |
|---|---|
| Date | 2013-12-15 23:52 -0800 |
| Message-ID | <e4781412-f77a-49b0-8399-c870bd9388be@googlegroups.com> |
| In reply to | #62017 |
On Monday, December 16, 2013 2:48:56 AM UTC-5, Mark wrote: > On Monday, December 16, 2013 2:43:45 AM UTC-5, Mark wrote: > > > On Monday, December 16, 2013 2:09:38 AM UTC-5, Mark wrote: > > > > > > > On Sunday, December 15, 2013 9:33:17 PM UTC-5, Chris Angelico wrote: > > > > > > > > > > > > > > > On Mon, Dec 16, 2013 at 12:37 PM, Steven D'Aprano > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > <steve+comp.lang.python@pearwood.info> wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Step 1: replace the modified version of the script with a known good copy. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Actually, this might be where the problem is, unfortunately. Not the > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > OP's fault at all. I went and looked at the post linked to, and it has > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > buggy indentation. (Quite possibly indicates that the author has > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > two-space tabs, and didn't notice a bug slipping in. I dunno.) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Along the way, though, I learned that the script in question is > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > entirely for generating fake twitch.tv viewers so as to get your > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > stream highlighted fraudulently, so I'm rather less inclined to help. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Got a legitimate use for this, or are you just trying to cheat your > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > way to fame? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ChrisA > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks for the reply, the answer is yes and no, i already have about 2400 followers and half mil views, i just wanted to see if i could get it to work. > > > > > > > > > > > > > > > > > > > > > > > > > > > > So after taking everybody's advice, fixed the indentation as mentioned by the expert above. :) After, this is what i came up with > > > > > > > > > > > > > > > > > > > > > > > > > > > > Traceback (most recent call last): > > > > > > > > > > > > > > File "C:\Python27\Scripts\Twitch.py", line 9, in <module> > > > > > > > > > > > > > > numberOfViewers = int(sys.argv[1]) > > > > > > > > > > > > > > IndexError: list index out of range > > > > > > > > > > > > > > > > > > > > > > > > > > > > Is this where i would plug in the variables to make it work? I'm not quite sure about how you would plug in those numbers > > > > > > > > > > > > > > >>> > > > > > > > > > > > > okay so i kinda get it now, running it in cmd, i use the following command - > > > > > > python twitch.py 10 10. I am running it within the scripts directory. > > > > > > > > > > > > I get the following error in cmd: > > > > > > > > > > > > Syntax Error: invalid syntax > > > > > > >>>python twitch.py 10 10 > > > > > > File "<stdin> line 1 > > > > > > python twitch.py 10 10 > > > > is there a more effecient way of doing this? I just hold shift and right click to run cmd from the folder, > > > > File is located in C:\Python27\Scripts It was my understanding that you need to meet the arguments by running the in cmd with the numbers after? I am sorry to show my true noobyness and really appreciate the help.
[toc] | [prev] | [next] | [standalone]
| From | Mark <markyshizzle@gmail.com> |
|---|---|
| Date | 2013-12-15 23:55 -0800 |
| Message-ID | <179cce6f-06e5-4cfa-a746-be6ff006a058@googlegroups.com> |
| In reply to | #62018 |
On Monday, December 16, 2013 2:52:05 AM UTC-5, Mark wrote: > On Monday, December 16, 2013 2:48:56 AM UTC-5, Mark wrote: > > > On Monday, December 16, 2013 2:43:45 AM UTC-5, Mark wrote: > > > > > > > On Monday, December 16, 2013 2:09:38 AM UTC-5, Mark wrote: > > > > > > > > > > > > > > > On Sunday, December 15, 2013 9:33:17 PM UTC-5, Chris Angelico wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Mon, Dec 16, 2013 at 12:37 PM, Steven D'Aprano > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > <steve+comp.lang.python@pearwood.info> wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Step 1: replace the modified version of the script with a known good copy. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Actually, this might be where the problem is, unfortunately. Not the > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > OP's fault at all. I went and looked at the post linked to, and it has > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > buggy indentation. (Quite possibly indicates that the author has > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > two-space tabs, and didn't notice a bug slipping in. I dunno.) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Along the way, though, I learned that the script in question is > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > entirely for generating fake twitch.tv viewers so as to get your > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > stream highlighted fraudulently, so I'm rather less inclined to help. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Got a legitimate use for this, or are you just trying to cheat your > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > way to fame? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ChrisA > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks for the reply, the answer is yes and no, i already have about 2400 followers and half mil views, i just wanted to see if i could get it to work. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > So after taking everybody's advice, fixed the indentation as mentioned by the expert above. :) After, this is what i came up with > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Traceback (most recent call last): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > File "C:\Python27\Scripts\Twitch.py", line 9, in <module> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > numberOfViewers = int(sys.argv[1]) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > IndexError: list index out of range > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Is this where i would plug in the variables to make it work? I'm not quite sure about how you would plug in those numbers > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > okay so i kinda get it now, running it in cmd, i use the following command - > > > > > > > > > > > > > > python twitch.py 10 10. I am running it within the scripts directory. > > > > > > > > > > > > > > > > > > > > > > > > > > > > I get the following error in cmd: > > > > > > > > > > > > > > > > > > > > > > > > > > > > Syntax Error: invalid syntax > > > > > > > > > > > > > > >>>python twitch.py 10 10 > > > > > > > > > > > > > > File "<stdin> line 1 > > > > > > > > > > > > > > python twitch.py 10 10 > > > > > > > > > > > > is there a more effecient way of doing this? I just hold shift and right click to run cmd from the folder, > > > > > > > > > > > > File is located in C:\Python27\Scripts > > > > It was my understanding that you need to meet the arguments by running the in cmd with the numbers after? I am sorry to show my true noobyness and really appreciate the help. Here is a link to the actual file, maybe you can look at it and see if it looks good? Should i change anything else in the file to make it work theoretically or is it all done when you run it? http://www.mediafire.com/view/3m10s9rwvatxd96/twitch.py
[toc] | [prev] | [next] | [standalone]
| From | Mark <markyshizzle@gmail.com> |
|---|---|
| Date | 2013-12-16 00:02 -0800 |
| Message-ID | <4c2822b4-d95c-4735-af12-55ac5ff2fa6e@googlegroups.com> |
| In reply to | #62019 |
On Monday, December 16, 2013 2:55:23 AM UTC-5, Mark wrote: > On Monday, December 16, 2013 2:52:05 AM UTC-5, Mark wrote: > > > On Monday, December 16, 2013 2:48:56 AM UTC-5, Mark wrote: > > > > > > > On Monday, December 16, 2013 2:43:45 AM UTC-5, Mark wrote: > > > > > > > > > > > > > > > On Monday, December 16, 2013 2:09:38 AM UTC-5, Mark wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Sunday, December 15, 2013 9:33:17 PM UTC-5, Chris Angelico wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Mon, Dec 16, 2013 at 12:37 PM, Steven D'Aprano > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > <steve+comp.lang.python@pearwood.info> wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Step 1: replace the modified version of the script with a known good copy. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Actually, this might be where the problem is, unfortunately. Not the > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > OP's fault at all. I went and looked at the post linked to, and it has > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > buggy indentation. (Quite possibly indicates that the author has > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > two-space tabs, and didn't notice a bug slipping in. I dunno.) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Along the way, though, I learned that the script in question is > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > entirely for generating fake twitch.tv viewers so as to get your > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > stream highlighted fraudulently, so I'm rather less inclined to help. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Got a legitimate use for this, or are you just trying to cheat your > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > way to fame? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ChrisA > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks for the reply, the answer is yes and no, i already have about 2400 followers and half mil views, i just wanted to see if i could get it to work. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > So after taking everybody's advice, fixed the indentation as mentioned by the expert above. :) After, this is what i came up with > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Traceback (most recent call last): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > File "C:\Python27\Scripts\Twitch.py", line 9, in <module> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > numberOfViewers = int(sys.argv[1]) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > IndexError: list index out of range > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Is this where i would plug in the variables to make it work? I'm not quite sure about how you would plug in those numbers > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > okay so i kinda get it now, running it in cmd, i use the following command - > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > python twitch.py 10 10. I am running it within the scripts directory. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I get the following error in cmd: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Syntax Error: invalid syntax > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >>>python twitch.py 10 10 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > File "<stdin> line 1 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > python twitch.py 10 10 > > > > > > > > > > > > > > > > > > > > > > > > > > > > is there a more effecient way of doing this? I just hold shift and right click to run cmd from the folder, > > > > > > > > > > > > > > > > > > > > > > > > > > > > File is located in C:\Python27\Scripts > > > > > > > > > > > > It was my understanding that you need to meet the arguments by running the in cmd with the numbers after? I am sorry to show my true noobyness and really appreciate the help. > > > > Here is a link to the actual file, maybe you can look at it and see if it looks good? Should i change anything else in the file to make it work theoretically or is it all done when you run it? > > > > http://www.mediafire.com/view/3m10s9rwvatxd96/twitch.py If i just try to double click the script, i get an index error, i can barely see the window it disappears so fast, but thats what I see.
[toc] | [prev] | [next] | [standalone]
| From | "Frank Millman" <frank@chagford.com> |
|---|---|
| Date | 2013-12-16 10:38 +0200 |
| Message-ID | <mailman.4187.1387183145.18130.python-list@python.org> |
| In reply to | #62020 |
"Mark" <markyshizzle@gmail.com> wrote in message news:4c2822b4-d95c-4735-af12-55ac5ff2fa6e@googlegroups.com... > On Monday, December 16, 2013 2:55:23 AM UTC-5, Mark wrote: > > If i just try to double click the script, i get an index error, i can > barely see the window it disappears so fast, but thats what I see. I haven't really been following this thread, but I assume you are on Windows. If so, you can open a Command Prompt from All Programs/Accessories, 'cd' to the folder containing your script, and type in the script name. It will start, crash, and display the error, but the window will stay open, so you will be able to read the full traceback. Normally the traceback provides enough clues that you can figure out for yourself what the problem is. But if you still cannot solve it, copy/paste the entire traceback and send it here. The chances are that someone can help. BTW, did you notice that I removed the bulk of your original message, and left behind just enough to provide a context for your question and for my reply? This is good etiquette, and others will appreciate your doing the same. Frank Millman
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2013-12-16 09:28 +0000 |
| Message-ID | <mailman.4190.1387186112.18130.python-list@python.org> |
| In reply to | #62020 |
On 16/12/2013 08:02, Mark wrote: The record for double spaced google crap, congratulations. Mind you, it's a great new game this, Spot the Text, much better than I Spy!!! > On Monday, December 16, 2013 2:55:23 AM UTC-5, Mark wrote: >> On Monday, December 16, 2013 2:52:05 AM UTC-5, Mark wrote: >> >>> On Monday, December 16, 2013 2:48:56 AM UTC-5, Mark wrote: >> >>> >> >>>> On Monday, December 16, 2013 2:43:45 AM UTC-5, Mark wrote: >> >>> >> >>>> >> >>> >> >>>>> On Monday, December 16, 2013 2:09:38 AM UTC-5, Mark wrote: >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> On Sunday, December 15, 2013 9:33:17 PM UTC-5, Chris Angelico wrote: >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> On Mon, Dec 16, 2013 at 12:37 PM, Steven D'Aprano >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> <steve+comp.lang.python@pearwood.info> wrote: >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>>> Step 1: replace the modified version of the script with a known good copy. >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> Actually, this might be where the problem is, unfortunately. Not the >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> OP's fault at all. I went and looked at the post linked to, and it has >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> buggy indentation. (Quite possibly indicates that the author has >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> two-space tabs, and didn't notice a bug slipping in. I dunno.) >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> Along the way, though, I learned that the script in question is >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> entirely for generating fake twitch.tv viewers so as to get your >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> stream highlighted fraudulently, so I'm rather less inclined to help. >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> Got a legitimate use for this, or are you just trying to cheat your >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> way to fame? >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> ChrisA >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> Thanks for the reply, the answer is yes and no, i already have about 2400 followers and half mil views, i just wanted to see if i could get it to work. >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> So after taking everybody's advice, fixed the indentation as mentioned by the expert above. :) After, this is what i came up with >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> Traceback (most recent call last): >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> File "C:\Python27\Scripts\Twitch.py", line 9, in <module> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> numberOfViewers = int(sys.argv[1]) >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> IndexError: list index out of range >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> Is this where i would plug in the variables to make it work? I'm not quite sure about how you would plug in those numbers >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>> okay so i kinda get it now, running it in cmd, i use the following command - >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>> python twitch.py 10 10. I am running it within the scripts directory. >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>> I get the following error in cmd: >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>> Syntax Error: invalid syntax >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>>> python twitch.py 10 10 >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>> File "<stdin> line 1 >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>> python twitch.py 10 10 >> >>> >> >>>> >> >>> >> >>>> >> >>> >> >>>> >> >>> >> >>>> is there a more effecient way of doing this? I just hold shift and right click to run cmd from the folder, >> >>> >> >>>> >> >>> >> >>>> >> >>> >> >>>> >> >>> >> >>>> File is located in C:\Python27\Scripts >> >>> >> >>> >> >>> >> >>> It was my understanding that you need to meet the arguments by running the in cmd with the numbers after? I am sorry to show my true noobyness and really appreciate the help. >> >> >> >> Here is a link to the actual file, maybe you can look at it and see if it looks good? Should i change anything else in the file to make it work theoretically or is it all done when you run it? >> >> >> >> http://www.mediafire.com/view/3m10s9rwvatxd96/twitch.py > > If i just try to double click the script, i get an index error, i can barely see the window it disappears so fast, but thats what I see. > -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
[toc] | [prev] | [next] | [standalone]
| From | Ned Batchelder <ned@nedbatchelder.com> |
|---|---|
| Date | 2013-12-16 10:19 -0500 |
| Message-ID | <mailman.4218.1387207196.18130.python-list@python.org> |
| In reply to | #62020 |
On 12/16/13 3:02 AM, Mark wrote: > > If i just try to double click the script, i get an index error, i can barely see the window it disappears so fast, but thats what I see. > If you're going to participate in this forum, you'll get better help from people if you use the medium well. 1) Sending 4 message in a row, within 15 minutes, each replying to the other, is not a good way to use a forum like this. Get your thoughts in order and send one message. 2) While I am normally quite tolerant of the double-spacing Google Groups insists on, your messages are taking it to absurd extremes. Take a look at your last message: https://mail.python.org/pipermail/python-list/2013-December/662678.html True, it's kind of beautiful in an abstract way, and is an interesting demonstration of certain binary behaviors, but it is not a good way to participate here. Of course, the messages you post are your choice, but you should consider the effect they have on the people you are hoping to get help from. -- Ned Batchelder, http://nedbatchelder.com
[toc] | [prev] | [next] | [standalone]
| From | Mark <markyshizzle@gmail.com> |
|---|---|
| Date | 2013-12-16 12:25 -0800 |
| Message-ID | <c375ef20-11c9-4688-9d38-5e6476af1fb4@googlegroups.com> |
| In reply to | #62069 |
I am sorry if the way I posted messages was incorrect. Like I said, I am new to google groups and python quite a bit but i am trying to do things correctly by you guys. The errors that I am getting were not necessarily posting traceback messages. In those messages I posted my last bit of confusion, how to properly run the program while meeting the arguments. Thanks Frank for giving me a little hint at that. Now in that directory in cmd, i type in python twitch.py 10 10. When i do this I get "thread error" posting infinitely down my stream. So it looks like the program is actually running now, just some im possibly missing? Once again I do have pip and livestreamer installed and the exact py file i have is located here: http://www.mediafire.com/view/3m10s9rwvatxd96/twitch.py Once again thanks for help, Mark
[toc] | [prev] | [next] | [standalone]
Page 1 of 2 [1] 2 Next page →
Back to top | Article view | comp.lang.python
csiph-web