ymichael / cprofilev

:fire: An easier way to use cProfile
https://pypi.python.org/pypi/CProfileV
MIT License
418 stars 30 forks source link

windows issue #7

Closed steveoh closed 1 year ago

steveoh commented 9 years ago

Hi, I'm running windows server 2008 with python 2.7.5 and I have created an virtual env. I then pip installed cprofilev and invoke it via the command below. You can see the stacktrace below. I've tried with an admin terminal with no change in output. Do you have any suggestions on how to get past this socket issue?

λ cprofilev C:\Users\agrc-arcgis\Envs\runsnake\Scripts\seed.profile
cprofilev server listening on port 4000
Traceback (most recent call last):
  File "C:\Users\agrc-arcgis\Envs\runsnake\Scripts\cprofilev-script.py", line 9, in <module>
    load_entry_point('CProfileV==0.1.3', 'console_scripts', 'cprofilev')()
  File "C:\Users\agrc-arcgis\Envs\runsnake\lib\site-packages\cprofilev.py", line 199, in main
    CProfileV(cprofile_output, address, port, quiet).start()
  File "C:\Users\agrc-arcgis\Envs\runsnake\lib\site-packages\cprofilev.py", line 175, in start
    self.app.run(host=self.address, port=self.port, quiet=self.quiet)
  File "C:\Users\agrc-arcgis\Envs\runsnake\Scripts\bottle.py", line 755, in run
    run(self, **kwargs)
  File "C:\Users\agrc-arcgis\Envs\runsnake\Scripts\bottle.py", line 3114, in run
    server.run(app)
  File "C:\Users\agrc-arcgis\Envs\runsnake\Scripts\bottle.py", line 2768, in run
    srv = make_server(self.host, self.port, app, server_cls, handler_cls)
  File "C:\Python27\ArcGISx6410.2\Lib\wsgiref\simple_server.py", line 144, in make_server
    server = server_class((host, port), handler_class)
  File "C:\Python27\ArcGISx6410.2\Lib\SocketServer.py", line 419, in __init__
    self.server_bind()
  File "C:\Python27\ArcGISx6410.2\Lib\wsgiref\simple_server.py", line 48, in server_bind
    HTTPServer.server_bind(self)
  File "C:\Python27\ArcGISx6410.2\Lib\BaseHTTPServer.py", line 108, in server_bind
    SocketServer.TCPServer.server_bind(self)
  File "C:\Python27\ArcGISx6410.2\Lib\SocketServer.py", line 430, in server_bind
    self.socket.bind(self.server_address)
  File "C:\Python27\ArcGISx6410.2\Lib\socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions