Python Forum

Full Version: Module Dependency installation error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Good day everyone. Need some help in installing pycld2 in ubuntu 14.04 with python 2.7 and python 3.4  as  pre-installed (I'm using virtualenv to run python3).  pycld2 in required for polyglot and I get this error below while installing. I installed python3-dev already as suggested from forums but still stock with the same problem. I checked  /usr/include/python3.4m/pyconfig.h and it is present. Do I need to edit pyconfig.h? I issued pip install pycld2  then I received the error below. Please bear with me, I'm just new to ubuntu and python. Thank you.

Error:
/usr/include/python3.4m/pyconfig.h:3:52: fatal error: x86_64-linux-gnu/python3.4m/pyconfig.h: No such file or directory #  include <x86_64-linux-gnu/python3.4m/pyconfig.h>                                                                              ^     compilation terminated.     error: command 'i686-linux-gnu-gcc' failed with exit status 1          ---------------------------------------- Command "/home/user/py3env/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-9ipj144u/pycld2/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-at_4tdl3-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/user/py3env/include/site/python3.4/pycld2" failed with error code 1 in /tmp/pip-build-9ipj144u/pycld2/
what method are you installing?
You can just use pip
sudo pip install pycld2
(Feb-12-2017, 03:22 AM)metulburr Wrote: [ -> ]what method are you installing? You can just use pip
sudo pip install pycld2

good day sir. Sorry, I forgot to mention in my post that the command that I issued was pip install pycld2 then I received that error.
If you download the wheel from http://www.lfd.uci.edu/~gohlke/pythonlibs/,
it will install the dependencies for you
(Feb-12-2017, 04:03 AM)Larz60+ Wrote: [ -> ]If you download the wheel from http://www.lfd.uci.edu/~gohlke/pythonlibs/, it will install the dependencies for you

Thank you for the reply sir. I think these wheel files will only work for windows. Currently I'm using ubuntu 14 32bit in my virtualbox.
still working on the suggested solutions everywhere and still stock on the problem. Anyone experience something like this too? pycld2 is the key for me to move forward. Thank you.
Well, there is a git repo with installation instructions. Try it

https://github.com/aboSamoor/pycld2
(Feb-12-2017, 06:31 AM)wavic Wrote: [ -> ]Well, there is a git repo with installation instructions. Try it https://github.com/aboSamoor/pycld2

Thank you for this sir. I will try it and I'll give update right away.

(Feb-12-2017, 06:47 AM)draems Wrote: [ -> ]
(Feb-12-2017, 06:31 AM)wavic Wrote: [ -> ]Well, there is a git repo with installation instructions. Try it https://github.com/aboSamoor/pycld2

Thank you for this sir. I will try it  and I'll give update right away.

Tried installing it using the repo from github and ended up with the same error. Big Grin
Find it. You are using Linux so open /usr/include/python3.4m/ directory and look for pyconfig.h. It should be there. I just found it in my pyhon3.5/. If it is not there find it:

# sudo or as root
sudo find / -xdev -name "pyconfig.h" - print
When you have the location just copy the file in /usr/include/python3.4m/. Or make a sim link there to the actual file. with the same name.
sudo ln -s /path_to_the_file/pyconfig.h /usr/include/python3.4m/pyconfig.h
This is safe and always can remove the link or the copy of the file.
(Feb-12-2017, 07:25 AM)wavic Wrote: [ -> ]Find it. You are using Linux so open /usr/include/python3.4m/ directory and look for pyconfig.h. It should be there. I just found it in my pyhon3.5/. If it is not there find it: # sudo or as root
 sudo find / -xdev -name "pyconfig.h" - print 
When you have the location just copy the file in /usr/include/python3.4m/. Or make a sim link there to the actual file. with the same name.
 sudo ln -s /path_to_the_file/pyconfig.h /usr/include/python3.4m/pyconfig.h 
This is safe and always can remove the link or the copy of the file.

Sir, I already found the pyconfig.h and it is in the same location (/usr/include/python3.4m/). Should I try editing the pyconfig.h?
Pages: 1 2