Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu Installation Error #81

Open
Miladiouss opened this issue Jan 22, 2021 · 6 comments
Open

Ubuntu Installation Error #81

Miladiouss opened this issue Jan 22, 2021 · 6 comments
Labels
bug Something isn't working

Comments

@Miladiouss
Copy link

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 Miladiouss added the bug Something isn't working label Jan 22, 2021
@adamerose
Copy link
Owner

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

@fdion
Copy link
Contributor

fdion commented Feb 15, 2021

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?

@Miladiouss
Copy link
Author

@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.

@fdion
Copy link
Contributor

fdion commented Feb 28, 2021

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? (#51)
If this works for you you can do: conda create -n pandasgui -c conda-forge pandasgui

@fdion
Copy link
Contributor

fdion commented Mar 26, 2021

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.

@asdkazmi
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants