Python Forum
Module Dependency installation error
Thread Rating:
  • 3 Vote(s) - 3.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Module Dependency installation error
#1
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/
Reply
#2
what method are you installing?
You can just use pip
sudo pip install pycld2
Recommended Tutorials:
Reply
#3
(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.
Reply
#4
If you download the wheel from http://www.lfd.uci.edu/~gohlke/pythonlibs/,
it will install the dependencies for you
Reply
#5
(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.
Reply
#6
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.
Reply
#7
Well, there is a git repo with installation instructions. Try it

https://github.com/aboSamoor/pycld2
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#8
(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
Reply
#9
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.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#10
(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?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Installation module 'pyproj' QuentinR 1 332 Feb-28-2024, 10:00 AM
Last Post: snippsat
  [solved] What is the best/pytonic way to import with dependency ? SpongeB0B 2 684 Jul-09-2023, 05:05 AM
Last Post: SpongeB0B
  Getting "SSL client not supported by this Python installation" error prabirsarkar 0 965 Mar-13-2023, 05:01 PM
Last Post: prabirsarkar
  Request Dependency warning thetechnodino 0 938 Dec-20-2022, 02:12 AM
Last Post: thetechnodino
  Circular import dependency hobbyist 9 3,854 Feb-23-2021, 11:57 AM
Last Post: Gribouillis
  Poetry Dependency general Help felipesodre 0 1,452 Jan-14-2021, 07:46 PM
Last Post: felipesodre
  Installing nltk dependency Eshwar 0 1,839 Aug-30-2020, 06:10 PM
Last Post: Eshwar
  Pandas installation error pyzyx3qwerty 3 2,536 Jun-04-2020, 10:09 AM
Last Post: pyzyx3qwerty
  How do I change wx version dependency? belfacode 0 1,566 May-17-2020, 09:18 AM
Last Post: belfacode
  vlc module error pythonprogrammer 1 2,877 Apr-23-2020, 04:16 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020