Closed chanckstephen closed 6 years ago
Are you sure this is a KivMob issue? The KivMob script itself is rather simple, so I doubt it would cause any compilation errors. After googling this error, it would seem that you need to install the python-dev package on your virtual machine.
https://stackoverflow.com/questions/21530577/fatal-error-python-h-no-such-file-or-directory
In fact, if I recall, this is a Kivy dependency issue. You need to make sure your Linux system (I'm assuming Linux) has the correct packages installed. Please refer to the Kivy installation page: https://kivy.org/docs/installation/installation.html
Hi,
Running "pip install kivmob" gives me the following error. How do I solve this?
The directory '/home/kivy/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/home/kivy/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Collecting kivmob Collecting kivy (from kivmob) Downloading https://files.pythonhosted.org/packages/8c/49/5c22589099f9b7fd106502ee6634a6675e634d7553fede141a7606e6a92d/Kivy-1.10.0.tar.gz (24.3MB) 100% |████████████████████████████████| 24.3MB 2.3MB/s Collecting Kivy-Garden>=0.1.4 (from kivy->kivmob) Collecting docutils (from kivy->kivmob) Downloading https://files.pythonhosted.org/packages/50/09/c53398e0005b11f7ffb27b7aa720c617aba53be4fb4f4f3f06b9b5c60f28/docutils-0.14-py2-none-any.whl (543kB) 100% |████████████████████████████████| 552kB 30.4MB/s Collecting pygments (from kivy->kivmob) Downloading https://files.pythonhosted.org/packages/02/ee/b6e02dc6529e82b75bb06823ff7d005b141037cb1416b10c6f00fc419dca/Pygments-2.2.0-py2.py3-none-any.whl (841kB) 100% |████████████████████████████████| 849kB 36.9MB/s Collecting requests (from Kivy-Garden>=0.1.4->kivy->kivmob) Downloading https://files.pythonhosted.org/packages/65/47/7e02164a2a3db50ed6d8a6ab1d6d60b69c4c3fdf57a284257925dfc12bda/requests-2.19.1-py2.py3-none-any.whl (91kB) 100% |████████████████████████████████| 92kB 19.1MB/s Collecting urllib3<1.24,>=1.21.1 (from requests->Kivy-Garden>=0.1.4->kivy->kivmob) Downloading https://files.pythonhosted.org/packages/bd/c9/6fdd990019071a4a32a5e7cb78a1d92c53851ef4f56f62a3486e6a7d8ffb/urllib3-1.23-py2.py3-none-any.whl (133kB) 100% |████████████████████████████████| 143kB 22.8MB/s Collecting chardet<3.1.0,>=3.0.2 (from requests->Kivy-Garden>=0.1.4->kivy->kivmob) Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB) 100% |████████████████████████████████| 143kB 10.0MB/s Collecting certifi>=2017.4.17 (from requests->Kivy-Garden>=0.1.4->kivy->kivmob) Downloading https://files.pythonhosted.org/packages/7c/e6/92ad559b7192d846975fc916b65f667c7b8c3a32bea7372340bfe9a15fa5/certifi-2018.4.16-py2.py3-none-any.whl (150kB) 100% |████████████████████████████████| 153kB 18.4MB/s Collecting idna<2.8,>=2.5 (from requests->Kivy-Garden>=0.1.4->kivy->kivmob) Downloading https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl (58kB) 100% |████████████████████████████████| 61kB 12.2MB/s Installing collected packages: urllib3, chardet, certifi, idna, requests, Kivy-Garden, docutils, pygments, kivy, kivmob Found existing installation: urllib3 1.23 Uninstalling urllib3-1.23: Successfully uninstalled urllib3-1.23 Found existing installation: chardet 3.0.4 Uninstalling chardet-3.0.4: Successfully uninstalled chardet-3.0.4 Found existing installation: certifi 2018.4.16 Uninstalling certifi-2018.4.16: Successfully uninstalled certifi-2018.4.16 Found existing installation: idna 2.7 Uninstalling idna-2.7: Successfully uninstalled idna-2.7 Found existing installation: requests 2.19.1 Uninstalling requests-2.19.1: Successfully uninstalled requests-2.19.1 Found existing installation: Kivy-Garden 0.1.4 Uninstalling Kivy-Garden-0.1.4: Successfully uninstalled Kivy-Garden-0.1.4 Found existing installation: docutils 0.14 Uninstalling docutils-0.14: Successfully uninstalled docutils-0.14 Found existing installation: Pygments 2.2.0 Uninstalling Pygments-2.2.0: Successfully uninstalled Pygments-2.2.0 Running setup.py install for kivy ... error Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-Nmtvqk/kivy/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-H9aAl5/install-record.txt --single-version-externally-managed --compile: Using distutils
Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-Nmtvqk/kivy/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-H9aAl5/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-Nmtvqk/kivy/