Results 1 to 10 of 10

Thread: Python immediately closes when I try using it (Windows 10)

  1. #1
    butternut's Avatar
    Joined
    Aug 2016
    Posts
    0
    Userbars
    0
    Thanks
    3
    Thanked
    4/4
    DL/UL
    27/0
    Mentioned
    Never
    Time Online
    2d 18h 26m
    Avg. Time Online
    1m

    Python immediately closes when I try using it (Windows 10)

    I've ran it on a different computer, i dont know if it was me that did something wrong or if it's windows 10. Haha

  2. #2
    Accelerator's Avatar
    Joined
    Jul 2013
    Posts
    4,995
    Userbars
    26
    Thanks
    1,986
    Thanked
    3,789/1,696
    DL/UL
    178/0
    Mentioned
    744 times
    Time Online
    335d 1h 18m
    Avg. Time Online
    2h 3m
    Quote Originally Posted by butternut View Post
    I've ran it on a different computer, i dont know if it was me that did something wrong or if it's windows 10. Haha
    It's not the OS/Win10, you're probably just double clicking the python script...
    If you don't want it to automatically close and be able to troubleshoot it hit WinKey+R -> cmd -> Enter
    And then drag and drop the python script (.py file) to the cmd (command prompt) window.
    you might need to change the directory to the path the script's in.
    Last edited by Accelerator; 09-01-2017 at 05:21 PM. Reason: Whoops, LMAO.

    (you need an account to see links)
    (you need an account to see links)
    (you need an account to see links)
    (you need an account to see links)

    "Date et dabitur vobis"
    「Let's fight 恐れはない」


    "A quantum supercomputer calculating for a thousand years could not even approach the number of f��ks I do not give"

    「君が望むモノは何?」

  3. #3
    Saiyan Race
    j03's Avatar
    Joined
    Dec 2011
    Posts
    13,722
    Userbars
    166
    Thanks
    5,907
    Thanked
    33,078/6,609
    DL/UL
    23/36
    Mentioned
    3,867 times
    Time Online
    563d 5h 38m
    Avg. Time Online
    3h 13m
    Try re-installing Python.


    Sent from my iPhone using Tapatalk
    (you need an account to see links)
    (you need an account to see links)(you need an account to see links)

    ------------------------
    [02/24/2013] Stealth CORE is made into the first standalone Neopets auto-player.
    ------------------------


  4. #4
    butternut's Avatar
    Joined
    Aug 2016
    Posts
    0
    Userbars
    0
    Thanks
    3
    Thanked
    4/4
    DL/UL
    27/0
    Mentioned
    Never
    Time Online
    2d 18h 26m
    Avg. Time Online
    1m
    I'll just erase everything and try reinstalling it first, then i'll update you guys. Thanks!

    ---------- Post added at 05:10 PM ---------- Previous post was at 04:14 PM ----------

    C:\Users\User>C:\Users\User\Desktop\Programs\NeoQu ester\client.py
    Traceback (most recent call last):
    File "C:\Users\User\Desktop\Programs\NeoQuester\client. py", line 22, in <module>
    accFile = open("account.txt", 'r')
    IOError: [Errno 2] No such file or directory: 'account.txt'



    Im lost haha

    I reinstalled and it continued to shut out and then this is what I see when I drop the file in CMD

  5. #5
    Accelerator's Avatar
    Joined
    Jul 2013
    Posts
    4,995
    Userbars
    26
    Thanks
    1,986
    Thanked
    3,789/1,696
    DL/UL
    178/0
    Mentioned
    744 times
    Time Online
    335d 1h 18m
    Avg. Time Online
    2h 3m
    Quote Originally Posted by butternut View Post
    I'll just erase everything and try reinstalling it first, then i'll update you guys. Thanks!

    ---------- Post added at 05:10 PM ---------- Previous post was at 04:14 PM ----------

    C:\Users\User>C:\Users\User\Desktop\Programs\NeoQu ester\client.py
    Traceback (most recent call last):
    File "C:\Users\User\Desktop\Programs\NeoQuester\client. py", line 22, in <module>
    accFile = open("account.txt", 'r')
    IOError: [Errno 2] No such file or directory: 'account.txt'



    Im lost haha

    I reinstalled and it continued to shut out and then this is what I see when I drop the file in CMD
    Try entering this command first
    Code:
    cd "C:\Users\User\Desktop\Programs\NeoQu ester"
    Then just type:
    Code:
    client.py
    and hit enter

    (you need an account to see links)
    (you need an account to see links)
    (you need an account to see links)
    (you need an account to see links)

    "Date et dabitur vobis"
    「Let's fight 恐れはない」


    "A quantum supercomputer calculating for a thousand years could not even approach the number of f��ks I do not give"

    「君が望むモノは何?」

  6. #6
    butternut's Avatar
    Joined
    Aug 2016
    Posts
    0
    Userbars
    0
    Thanks
    3
    Thanked
    4/4
    DL/UL
    27/0
    Mentioned
    Never
    Time Online
    2d 18h 26m
    Avg. Time Online
    1m
    Traceback (most recent call last):
    File "C:\Users\User\Desktop\Programs\NeoQuester\client. py", line 52, in <module>
    login_return = acc.login()
    File "C:\Users\User\Desktop\Programs\NeoQuester\classes \NeoAccount.py", line 81, in login
    res = self.get('/index.phtml')
    File "C:\Users\User\Desktop\Programs\NeoQuester\classes \NeoAccount.py", line 50, in get
    res = self.opener.open(url)
    File "C:\Python27\lib\urllib2.py", line 429, in open
    response = self._open(req, data)
    File "C:\Python27\lib\urllib2.py", line 447, in _open
    '_open', req)
    File "C:\Python27\lib\urllib2.py", line 407, in _call_chain
    result = func(*args)
    File "C:\Python27\lib\urllib2.py", line 1228, in http_open
    return self.do_open(httplib.HTTPConnection, req)
    File "C:\Python27\lib\urllib2.py", line 1167, in do_open
    h = http_class(host, timeout=req.timeout, **http_conn_args)
    File "C:\Python27\lib\httplib.py", line 736, in __init__
    (self.host, self.port) = self._get_hostport(host, port)
    File "C:\Python27\lib\httplib.py", line 777, in _get_hostport
    raise InvalidURL("nonnumeric port: '%s'" % host[i+1:])
    httplib.InvalidURL: nonnumeric port: 'port'

  7. #7
    Accelerator's Avatar
    Joined
    Jul 2013
    Posts
    4,995
    Userbars
    26
    Thanks
    1,986
    Thanked
    3,789/1,696
    DL/UL
    178/0
    Mentioned
    744 times
    Time Online
    335d 1h 18m
    Avg. Time Online
    2h 3m
    Quote Originally Posted by butternut View Post
    Traceback (most recent call last):
    File "C:\Users\User\Desktop\Programs\NeoQuester\client. py", line 52, in <module>
    login_return = acc.login()
    File "C:\Users\User\Desktop\Programs\NeoQuester\classes \NeoAccount.py", line 81, in login
    res = self.get('/index.phtml')
    File "C:\Users\User\Desktop\Programs\NeoQuester\classes \NeoAccount.py", line 50, in get
    res = self.opener.open(url)
    File "C:\Python27\lib\urllib2.py", line 429, in open
    response = self._open(req, data)
    File "C:\Python27\lib\urllib2.py", line 447, in _open
    '_open', req)
    File "C:\Python27\lib\urllib2.py", line 407, in _call_chain
    result = func(*args)
    File "C:\Python27\lib\urllib2.py", line 1228, in http_open
    return self.do_open(httplib.HTTPConnection, req)
    File "C:\Python27\lib\urllib2.py", line 1167, in do_open
    h = http_class(host, timeout=req.timeout, **http_conn_args)
    File "C:\Python27\lib\httplib.py", line 736, in __init__
    (self.host, self.port) = self._get_hostport(host, port)
    File "C:\Python27\lib\httplib.py", line 777, in _get_hostport
    raise InvalidURL("nonnumeric port: '%s'" % host[i+1:])
    httplib.InvalidURL: nonnumeric port: 'port'
    Looks like you're using a proxy and it's refusing (or timing out when it attempts) to connect to neo.
    Either that or you made a mistake when editing the files you're supposed to edit..
    I'm leaning more towards the second.

    (you need an account to see links)
    (you need an account to see links)
    (you need an account to see links)
    (you need an account to see links)

    "Date et dabitur vobis"
    「Let's fight 恐れはない」


    "A quantum supercomputer calculating for a thousand years could not even approach the number of f��ks I do not give"

    「君が望むモノは何?」

  8. #8
    butternut's Avatar
    Joined
    Aug 2016
    Posts
    0
    Userbars
    0
    Thanks
    3
    Thanked
    4/4
    DL/UL
    27/0
    Mentioned
    Never
    Time Online
    2d 18h 26m
    Avg. Time Online
    1m
    Do you think maybe I have a firewall setting somewhere refusing to let it connect?

    ---------- Post added at 05:28 PM ---------- Previous post was at 05:26 PM ----------

    Wow. I had an extra :port in there


    hahahaha
    you guys gotta hate people like me sometimes

  9. #9
    Accelerator's Avatar
    Joined
    Jul 2013
    Posts
    4,995
    Userbars
    26
    Thanks
    1,986
    Thanked
    3,789/1,696
    DL/UL
    178/0
    Mentioned
    744 times
    Time Online
    335d 1h 18m
    Avg. Time Online
    2h 3m
    Quote Originally Posted by butternut View Post
    Do you think maybe I have a firewall setting somewhere refusing to let it connect?

    ---------- Post added at 05:28 PM ---------- Previous post was at 05:26 PM ----------

    Wow. I had an extra :port in there


    hahahaha
    you guys gotta hate people like me sometimes
    This is basically what my job IRL is about
    And I hate everyone equally <3 (?)

    (you need an account to see links)
    (you need an account to see links)
    (you need an account to see links)
    (you need an account to see links)

    "Date et dabitur vobis"
    「Let's fight 恐れはない」


    "A quantum supercomputer calculating for a thousand years could not even approach the number of f��ks I do not give"

    「君が望むモノは何?」

  10. The Following User Says Thank You to Accelerator For This Useful Post:

    butternut (09-02-2017)

  11. #10
    butternut's Avatar
    Joined
    Aug 2016
    Posts
    0
    Userbars
    0
    Thanks
    3
    Thanked
    4/4
    DL/UL
    27/0
    Mentioned
    Never
    Time Online
    2d 18h 26m
    Avg. Time Online
    1m
    Well I appreciate you kind sir! +rep for you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •