Title: Exception in PyInstaller packaged app · Issue #16 · logtail/logtail-python · GitHub
Open Graph Title: Exception in PyInstaller packaged app · Issue #16 · logtail/logtail-python
X Title: Exception in PyInstaller packaged app · Issue #16 · logtail/logtail-python
Description: I am using logtail in a PyInstaller packaged project on Windows, my exe is saved on drive D: I create the LogtailHandler with raise_exceptions=True, when I call logger.info I got these exception: pathname='main.py' has_main_module=True p...
Open Graph Description: I am using logtail in a PyInstaller packaged project on Windows, my exe is saved on drive D: I create the LogtailHandler with raise_exceptions=True, when I call logger.info I got these exception: p...
X Description: I am using logtail in a PyInstaller packaged project on Windows, my exe is saved on drive D: I create the LogtailHandler with raise_exceptions=True, when I call logger.info I got these exception: p...
Opengraph URL: https://github.com/logtail/logtail-python/issues/16
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Exception in PyInstaller packaged app","articleBody":"I am using logtail in a PyInstaller packaged project on Windows, my exe is saved on drive D:\r\nI create the LogtailHandler with `raise_exceptions=True`, when I call `logger.info` I got these exception:\r\n\r\n```\r\npathname='main.py' has_main_module=True pathname='main.py' __main__.__file__='C:\\\\Users\\\\zi\\\\AppData\\\\Local\\\\Temp\\\\_MEI61722\\\\main.py'\r\nTraceback (most recent call last):\r\n File \"main.py\", line 647, in \u003cmodule>\r\n File \"main.py\", line 641, in main\r\n File \"main.py\", line 161, in __init__\r\n File \"logging\\__init__.py\", line 1446, in info\r\n File \"logging\\__init__.py\", line 1589, in _log\r\n File \"logging\\__init__.py\", line 1599, in handle\r\n File \"logging\\__init__.py\", line 1661, in callHandlers\r\n File \"logging\\__init__.py\", line 952, in handle\r\n File \"logtail\\handler.py\", line 73, in emit\r\n File \"logtail\\handler.py\", line 63, in emit\r\n File \"logtail\\frame.py\", line 25, in create_frame\r\n File \"logtail\\frame.py\", line 70, in _relative_to_main_module_if_possible\r\n File \"logtail\\frame.py\", line 73, in _relative_to_main_module\r\n File \"ntpath.py\", line 703, in relpath\r\nValueError: path is on mount 'D:', start on mount 'C:'\r\n[33228] Failed to execute script 'main' due to unhandled exception!\r\n```\r\n\r\nIt appears that the exe was launched from another drive than the one py file was unpacked from, so that logtail cant get the relative path.\r\n\r\nversions\r\nwindows: 10\r\npython: 3.9\r\nlogtail-python: 0.2.6\r\npyinstaller: 5.13.0\r\n\r\n","author":{"url":"https://github.com/z4none","@type":"Person","name":"z4none"},"datePublished":"2023-08-01T07:28:17Z","url":"https://github.com/logtail/logtail-python/issues/16"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c9c37aa5-5903-c1ae-b046-14e4325257ae |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EABA:23AC0D:240FFA:30B761:6AFBAF37 |
| html-safe-nonce | 062b7e3b5911ebc8f36f6a1b47b43ccb5cdc893a94bded6038a171764aa25883 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQUJBOjIzQUMwRDoyNDBGRkE6MzBCNzYxOjZBRkJBRjM3IiwidmlzaXRvcl9pZCI6Ijg0NDQwMDA1MDQyNDkwMzY1OTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7add60cd101dd402e1d628e49051e14bb0821d8337a469d97f31763ceb052f0a |
| hovercard-subject-tag | issue:1830637825 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/logtail/logtail-python/16/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e9e6e12c80b476a7b4203693b93885985a8a16d53cf8334029a18125ea968783/logtail/logtail-python/issues/16 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e9e6e12c80b476a7b4203693b93885985a8a16d53cf8334029a18125ea968783/logtail/logtail-python/issues/16 |
| og:image:alt | I am using logtail in a PyInstaller packaged project on Windows, my exe is saved on drive D: I create the LogtailHandler with raise_exceptions=True, when I call logger.info I got these exception: p... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | z4none |
| hostname | github.com |
| expected-hostname | github.com |
| None | e25fbd830d3e6ad0e8935c105cf4fdc70c593dffcd27bb45b790ae4fece5ea55 |
| turbo-cache-control | no-preview |
| go-import | github.com/logtail/logtail-python git https://github.com/logtail/logtail-python.git |
| octolytics-dimension-user_id | 78922349 |
| octolytics-dimension-user_login | logtail |
| octolytics-dimension-repository_id | 351343852 |
| octolytics-dimension-repository_nwo | logtail/logtail-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 351343852 |
| octolytics-dimension-repository_network_root_nwo | logtail/logtail-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 08c8f17f9d27054a108b8b6254e405de0151f660 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width