adamerose / adamerose/PandasGUI
No APPDATA environment variable in Linux: expected str, bytes or os.PathLike object, not NoneType
- Lenguaje dominante
- Python
- Estrellas
- 3.3k
- Forks
- 239
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Trying to run
```python3
from pandasgui import show
```
on Ubuntu Linux fails with:
```
Traceback (most recent call last):
File "/home/hfs/usr/bin/pandasgui-file", line 7, in
from pandasgui import show
File "/opt/mambaforge/envs/pandasgui/lib/python3.11/site-packages/pandasgui/__init__.py", line 15, in
from pandasgui.gui import show
File "/opt/mambaforge/envs/pandasgui/lib/python3.11/site-packages/pandasgui/gui.py", line 13, in
from pandasgui.constants import PANDASGUI_ICON_PATH
File "/opt/mambaforge/envs/pandasgui/lib/python3.11/site-packages/pandasgui/constants.py", line 15, in
SHORTCUT_PATH = os.path.join(os.getenv('APPDATA'), 'Microsoft/Windows/Start Menu/Programs/PandasGUI.lnk', )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 76, in join
```
`APPDATA` is a Windows-specific environment variable.
As a workaround one can set the variable to a dummy value:
```bash
export APPDATA=
```
In general it would be nice if “adding to the start menu” was wrapped in some operating system detection, because it only makes sense on Windows anyway.
**Environment**
OS: Ubuntu 22.04.2 LTS
Python: Python 3.11.0
**Package versions**
```
ipython @ file:///home/conda/feedstock_root/build_artifacts/ipython_1677617093347/work
jupyter_core @ file:///home/conda/feedstock_root/build_artifacts/jupyter_core_1675109859355/work
pandasgui==0.2.14
plotly @ file:///home/conda/feedstock_root/build_artifacts/plotly_1677271849976/work
PyQt5==5.15.7
PyQt5-sip==12.11.0
PyQtWebEngine==5.15.6
PyQtWebEngine-Qt5==5.15.2
```
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.