PandasGUI icon indicating copy to clipboard operation
PandasGUI copied to clipboard

Ubuntu Installation Error

Open Miladiouss opened this issue 4 years ago • 6 comments

pip install pandasgui fails.

OS: Ubuntu 20.04.1 LTS Python: Python 3.8.5 Anaconda: conda 3.8.5

Error message:

ERROR: Command errored out with exit status 1: .../anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-gf4sxp_b/evdev/setup.py'"'"'; __file__='"'"'/tmp/pip-install-gf4sxp_b/evdev/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-mcgy0m_7/install-record.txt --single-version-externally-managed --compile --install-headers .../anaconda3/include/python3.8/evdev Check the logs for full command output.

(directory modified for privacy, but it is not at ~/anaconda3)

Miladiouss avatar Jan 22 '21 01:01 Miladiouss

Are you able to install other packages like pandas? I don't see any reference to pandasgui in the error output it looks like general a problem with anaconda

adamerose avatar Jan 22 '21 02:01 adamerose

Your base environment probably has some other incompatible software.

@Miladiouss verify you can install by creating an environment:

conda create -n pandasgui python=3.8 pip -y
conda activate pandasgui
pip install pandasgui
python -m pandasgui.gui

This should work. If not, you'll get an error that can then be addressed.

Also, is this a headless Ubuntu? Does it have an X server? or maybe it's a WSL install?

fdion avatar Feb 15 '21 21:02 fdion

@fdion same error occurs using an environment. Howevere, I should mention my anaconda3 is on an external drive but I've never had any issues with other packages.

ERROR: Command errored out with exit status 1: .../anaconda3/envs/pandasgui/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tmni4tuh/evdev_2ace6d8914c644cabaac59bed4d37b22/setup.py'"'"'; __file__='"'"'/tmp/pip-install-tmni4tuh/evdev_.../setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-ririedm5/install-record.txt --single-version-externally-managed --compile --install-headers .../anaconda3/envs/pandasgui/include/python3.8/evdev Check the logs for full command output.

Miladiouss avatar Feb 18 '21 01:02 Miladiouss

I think @Miladiouss that you are missing some headers or missing build-essential ubuntu package or something similar. if you pip install pandas instead of pandasgui, does it complete the install?

Also, if you could include the extre log. Without it, hard to tell where exactly it is bailing out of the install. Also, a way around that, possibly, would be to install stuff like pandas, numpy etc, with conda install before calling pip install pandasgui, but that could introduce its own issues.

And one more option: have you tried the conda-forge channel? (https://github.com/adamerose/PandasGUI/issues/51) If this works for you you can do: conda create -n pandasgui -c conda-forge pandasgui

fdion avatar Feb 28 '21 13:02 fdion

Found the issue on a fresh base install of Ubuntu 20.10, @Miladiouss and the solution was:

sudo apt install build-essential

This will populate /usr/include/linux with headers, amongst other things, and evdev will pip install, fixing your issue.

fdion avatar Mar 26 '21 18:03 fdion

Found the issue on a fresh base install of Ubuntu 20.10, @Miladiouss and the solution was:

sudo apt install build-essential

This will populate /usr/include/linux with headers, amongst other things, and evdev will pip install, fixing your issue.

This worked for me as well when I was heaving error to install the linux-headers i.e. apt-get install linux-headers-$(uname -r)

asdkazmi avatar Jan 24 '23 07:01 asdkazmi