nschloe / tuna

:fish: Python profile viewer
GNU General Public License v3.0
1.38k stars 33 forks source link

Missing apple-touch-icon-precomposed.png and apple-touch-icon.png #165

Open cdeil opened 10 months ago

cdeil commented 10 months ago

Thank you for making tuna!

When I run it on MacOS and Safari in Python 3.11 env with Conda installation I get the following errors in the console about two missing files.

Seems to display and work fine though. If it's easy to fix maybe you could? Or if it's irrelevant just close?

(playpy) temp $ tuna import.log 
Starting httpd on port 8000
127.0.0.1 - - [06/Jan/2024 13:50:12] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [06/Jan/2024 13:50:12] "GET /static/tuna.css HTTP/1.1" 200 -
127.0.0.1 - - [06/Jan/2024 13:50:12] "GET /static/bootstrap.min.css HTTP/1.1" 200 -
127.0.0.1 - - [06/Jan/2024 13:50:12] "GET /static/d3.min.js HTTP/1.1" 200 -
127.0.0.1 - - [06/Jan/2024 13:50:12] "GET /static/icicle.js HTTP/1.1" 200 -
127.0.0.1 - - [06/Jan/2024 13:50:12] "GET /static/favicon256.png HTTP/1.1" 200 -
127.0.0.1 - - [06/Jan/2024 13:50:12] "GET /static/favicon256.png HTTP/1.1" 200 -
127.0.0.1 - - [06/Jan/2024 13:50:12] "GET /apple-touch-icon-precomposed.png HTTP/1.1" 200 -
----------------------------------------
Exception occurred during processing of request from ('127.0.0.1', 51187)
Traceback (most recent call last):
  File "/Users/cdeil/anaconda3/envs/playpy/lib/python3.11/socketserver.py", line 317, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/Users/cdeil/anaconda3/envs/playpy/lib/python3.11/socketserver.py", line 348, in process_request
    self.finish_request(request, client_address)
  File "/Users/cdeil/anaconda3/envs/playpy/lib/python3.11/socketserver.py", line 361, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/Users/cdeil/anaconda3/envs/playpy/lib/python3.11/socketserver.py", line 755, in __init__
    self.handle()
  File "/Users/cdeil/anaconda3/envs/playpy/lib/python3.11/http/server.py", line 436, in handle
    self.handle_one_request()
  File "/Users/cdeil/anaconda3/envs/playpy/lib/python3.11/http/server.py", line 424, in handle_one_request
    method()
  File "/Users/cdeil/anaconda3/envs/playpy/lib/python3.11/site-packages/tuna/main.py", line 63, in do_GET
    with open(filepath, "rb") as fh:
         ^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/Users/cdeil/anaconda3/envs/playpy/lib/python3.11/site-packages/tuna/web/apple-touch-icon-precomposed.png'
----------------------------------------
127.0.0.1 - - [06/Jan/2024 13:50:12] "GET /apple-touch-icon.png HTTP/1.1" 200 -
----------------------------------------
Exception occurred during processing of request from ('127.0.0.1', 51189)
Traceback (most recent call last):
  File "/Users/cdeil/anaconda3/envs/playpy/lib/python3.11/socketserver.py", line 317, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/Users/cdeil/anaconda3/envs/playpy/lib/python3.11/socketserver.py", line 348, in process_request
    self.finish_request(request, client_address)
  File "/Users/cdeil/anaconda3/envs/playpy/lib/python3.11/socketserver.py", line 361, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/Users/cdeil/anaconda3/envs/playpy/lib/python3.11/socketserver.py", line 755, in __init__
    self.handle()
  File "/Users/cdeil/anaconda3/envs/playpy/lib/python3.11/http/server.py", line 436, in handle
    self.handle_one_request()
  File "/Users/cdeil/anaconda3/envs/playpy/lib/python3.11/http/server.py", line 424, in handle_one_request
    method()
  File "/Users/cdeil/anaconda3/envs/playpy/lib/python3.11/site-packages/tuna/main.py", line 63, in do_GET
    with open(filepath, "rb") as fh:
         ^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/Users/cdeil/anaconda3/envs/playpy/lib/python3.11/site-packages/tuna/web/apple-touch-icon.png'