|
List Info
Thread: newbie - IOError: Port 8080 not free on 'localhost'
|
|
| newbie - IOError: Port 8080 not free on
'localhost' |
  United States |
2007-10-18 10:50:47 |
Hello,
I'm new to cherrypy and have a problem getting it to work.
I
downloaded cherrypy and installed it like described on
cherrypy.org.
But when I start python tut01_helloworld.py I get the
following error
message:
[18/Oct/2007:17:11:33] HTTP Port 8080 not free on
'localhost'
Traceback (most recent call last):
File "tut01_helloworld.py", line 32, in
<module>
cherrypy.quickstart(HelloWorld(), config=tutconf)
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/cherrypy/__init__.py", line
181, in quickstart
server.quickstart()
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/cherrypy/_cpserver.py", line
69, in quickstart
self.start()
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/cherrypy/_cpserver.py", line
95, in start
self._start_http(httpserver)
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/cherrypy/_cpserver.py", line
104, in
_start_http
wait_for_free_port(*bind_addr)
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/cherrypy/_cpserver.py", line
250, in
wait_for_free_port
raise IOError(msg)
IOError: Port 8080 not free on 'localhost'
So, I wonder what went wrong here. BTW I'm using MacOSX,
apache's
running and I'm working with a user account. I have already
switched
on and off all firewall apps but that didn't make any
change.
Can someone help me with configuring cherrypy? Where do I
set the port
the server looks at? Can I point the cherrypy server to a
specific
path, let's say to the ~/Sites/Cherrypy/ directory?
Thanks in advance.
Cheers,
johannes
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: newbie - IOError: Port 8080 not
free on 'localhost' |

|
2007-10-18 11:46:44 |
That's what you want to read http://www.che
rrypy.org/wiki/ConfigAPI or
search for server.socket_port in the document if you want
avoid the
details for now ;)
Cheers,
EuGeNe -- http://www.3kwa.com
On 10/18/07, johannes <johannesknaus gmail.com> wrote:
>
> Hello,
>
> I'm new to cherrypy and have a problem getting it to
work. I
> downloaded cherrypy and installed it like described on
cherrypy.org.
> But when I start python tut01_helloworld.py I get the
following error
> message:
>
> [18/Oct/2007:17:11:33] HTTP Port 8080 not free on
'localhost'
> Traceback (most recent call last):
> File "tut01_helloworld.py", line 32, in
<module>
> cherrypy.quickstart(HelloWorld(), config=tutconf)
> File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/site-packages/cherrypy/__init__.py",
line 181, in quickstart
> server.quickstart()
> File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/site-packages/cherrypy/_cpserver.py",
line 69, in quickstart
> self.start()
> File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/site-packages/cherrypy/_cpserver.py",
line 95, in start
> self._start_http(httpserver)
> File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/site-packages/cherrypy/_cpserver.py",
line 104, in
> _start_http
> wait_for_free_port(*bind_addr)
> File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/site-packages/cherrypy/_cpserver.py",
line 250, in
> wait_for_free_port
> raise IOError(msg)
> IOError: Port 8080 not free on 'localhost'
>
> So, I wonder what went wrong here. BTW I'm using
MacOSX, apache's
> running and I'm working with a user account. I have
already switched
> on and off all firewall apps but that didn't make any
change.
> Can someone help me with configuring cherrypy? Where do
I set the port
> the server looks at? Can I point the cherrypy server to
a specific
> path, let's say to the ~/Sites/Cherrypy/ directory?
>
> Thanks in advance.
>
> Cheers,
> johannes
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: newbie - IOError: Port 8080 not
free on 'localhost' |
  United States |
2007-10-18 12:01:51 |
Hey, Johannes -
Something else is running that is using port 8080 - looking
through the
/etc/services file on my mac I see 'HTTP Alternate' there.
You could
tweak your mac's settings, but it would be easier to simply
tell CP to
start on another port. There's a few examples of how to do
this on the
site.
Tom
johannes wrote:
> Hello,
>
> I'm new to cherrypy and have a problem getting it to
work. I
> downloaded cherrypy and installed it like described on
cherrypy.org.
> But when I start python tut01_helloworld.py I get the
following error
> message:
>
> [18/Oct/2007:17:11:33] HTTP Port 8080 not free on
'localhost'
> Traceback (most recent call last):
> File "tut01_helloworld.py", line 32, in
<module>
> cherrypy.quickstart(HelloWorld(), config=tutconf)
> File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/site-packages/cherrypy/__init__.py",
line 181, in quickstart
> server.quickstart()
> File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/site-packages/cherrypy/_cpserver.py",
line 69, in quickstart
> self.start()
> File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/site-packages/cherrypy/_cpserver.py",
line 95, in start
> self._start_http(httpserver)
> File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/site-packages/cherrypy/_cpserver.py",
line 104, in
> _start_http
> wait_for_free_port(*bind_addr)
> File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/site-packages/cherrypy/_cpserver.py",
line 250, in
> wait_for_free_port
> raise IOError(msg)
> IOError: Port 8080 not free on 'localhost'
>
> So, I wonder what went wrong here. BTW I'm using
MacOSX, apache's
> running and I'm working with a user account. I have
already switched
> on and off all firewall apps but that didn't make any
change.
> Can someone help me with configuring cherrypy? Where do
I set the port
> the server looks at? Can I point the cherrypy server to
a specific
> path, let's say to the ~/Sites/Cherrypy/ directory?
>
> Thanks in advance.
>
> Cheers,
> johannes
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
[1-3]
|
|