Google App Engine Socket.error Errno 48 Address Already In Use
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us
Errno 98 Address Already In Use Python
Learn more about Stack Overflow the company Business Learn more about hiring developers return getattr(self._sock,name)(*args) socket.error: [errno 98] address already in use or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack
Error: [errno 98] Address Already In Use Odoo
Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up socket.error: [Errno 48] Address already in use oserror: [errno 98] address already in use flask up vote 61 down vote favorite 34 I'm trying to set up a server with python from mac terminal. I navigate to folder location an use: python -m SimpleHTTPServer But this gives me error: socket.error: [Errno 48] Address already in use I had previously open a connection using the same command for a different website in a different location in my machine. python simplehttpserver share|improve this question socket 'address already in use' edited Feb 18 '15 at 0:19 asked Sep 28 '13 at 20:48 irm 49031225 1 Kill the other process or run this one with a different port: python -m SimpleHTTPServer 8081 –Blender Sep 28 '13 at 20:50 add a comment| 4 Answers 4 active oldest votes up vote 131 down vote accepted You already have a process bound to the default port (8000). If you already ran the same module before, it is most likely that process still bound to the port. Try and locate the other process first: $ ps -fA | grep python 501 81651 12648 0 9:53PM ttys000 0:00.16 python -m SimpleHTTPServer The command arguments are included, so you can spot the one running SimpleHTTPServer if more than one python process is active. You may want to test if http://localhost:8000/ still shows a directory listing for local files. The second number is the process number; stop the server by sending it a signal: kill 81651 Alternatively, run the server on a different port, by specifying the alternative port on the command line: $ python -m SimpleHTTPServer 8910 Serving HTTP on 0.0.0.0 port 8910 ... then access the server as http://localhost:8910; where 8910 can be any
here for a quick overview of the site Help Center Detailed answers to any
Address Already In Use Find Process
questions you might have Meta Discuss the workings and policies python close socket of this site About Us Learn more about Stack Overflow the company Business Learn more about
Return Getattr(self._sock,name)(*args) Socket.error: [errno 48] Address Already In Use
hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack http://stackoverflow.com/questions/19071512/socket-error-errno-48-address-already-in-use Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Need to close python socket / Find the current running server on my dev environment up vote 20 down vote favorite 19 I'm trying to learn python (using the http://stackoverflow.com/questions/7703797/need-to-close-python-socket-find-the-current-running-server-on-my-dev-environm Flask micro-framework) and I am confused because somewhere in my code i'm keeping the server open I believe. I spin up my server with 'python app.py' and then close it however.... it still lives! I'm not sure how this is possible but i must have done something wrong with a connection. There are two questions here really. First: How can I find the active connection/socket and close it Second: Is there a way I can diagnose what is having an open connection, my hunch is that sqlLite is not closing as it is the last thing I implemented. This is a one file application (minus a config file and static content) so I can post the code if required. Error generated (Folder locations changed): /Development/flask_projects/test_email/env/bin/python /Development/flask_projects/test_email/app.py * Running on http://127.0.0.1:5000/ Traceback (most recent call last): File "Development/flask_projects/test_email/app.py", line 58, in
»flaskcommentsWant to join? Log in or sign up in seconds.|Englishlimit my search to /r/flaskuse https://www.reddit.com/r/flask/comments/2kis3t/beginner_having_issues_with_running_flask_hello/ the following search parameters to narrow your results:subreddit:subredditfind submissions in "subreddit"author:usernamefind submissions by "username"site:example.comfind submissions from address already "example.com"url:textsearch for "text" in urlselftext:textsearch for "text" in self post contentsself:yes (or self:no)include (or exclude) self address already in postsnsfw:yes (or nsfw:no)include (or exclude) results marked as NSFWe.g. subreddit:aww site:imgur.com dogsee the search faq for details.advanced search: by author, subreddit...this post was submitted on 28 Oct 20141 point (54% upvoted)shortlink: remember mereset passwordloginSubmit Flask News or ArticlesSubmit Flask discussionflasksubscribeunsubscribe6,857 readers~2 users here nowUse Python and Flask to build the web fast