Installing guppy with pip3 issues - python

I am trying to install guppy. My program uses python3 so I must use pip3 exclusively. When I run:
pip3 install guppy
I get:
src/sets/sets.c:77:1: error: expected function body after function declarator
INITFUNC (void)
^
src/sets/sets.c:39:18: note: expanded from macro 'INITFUNC'
#define INITFUNC initsetsc
^
1 error generated.
error: command 'clang' failed with exit status 1
I tried doing this, even thourgh it wasn't the same and exported gcc and g++:
➜ ~ export CC=gcc
➜ ~ export CXX=g++
Running again:
src/sets/sets.c:77:1: error: expected function body after function declarator
INITFUNC (void)
^
src/sets/sets.c:39:18: note: expanded from macro 'INITFUNC'
#define INITFUNC initsetsc
^
1 error generated.
error: command 'gcc' failed with exit status 1
Most who had this issue used sudo apt-get python-dev or something of the like to resolve this issue, I couldn't find an equivalent for Mac. Is there a way to resolve this issue?

Unfortunately it seems that guppy library works only for Python 2.x. An alternative could be objgraph

Try installing the guppy3 fork of guppy that supports Python 3:
pip3 install guppy3

Related

pip install pyaudio gcc error "function declaration isn’t a prototype"

pip install pyaudio failed on MacOS with error src/_portaudiomodule.c:27:19: fatal error: stdio.h: No such file or directory #include <stdio.h>
After doing some research I ran the following commands:
1/ export CPATH=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/
2/ pip install --global-option='build_ext' --global-option='-I/usr/local/include' --global-option='-L/usr/local/lib' pyaudio
But got errors /usr/local/include/portaudio.h:114:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] and error: command 'gcc' failed with exit status 1 instead.
It seems upgrading to MacOS Catalina messed up my Xcode Developer Tools C headers but am not able to resolve it.
i was able to solve this by copying portaudio.h from /usr/local/include/ to anaconda3/include.

LINK: fatal error LNK1181: cannot open input file 'mingw32.lib' when install scikits.bvp_solver module for python

I tried to install scikits.bvp_solver on my laptop (windows 10) follow instruction here: "pythonhosted.org/scikits.bvp_solver"
I used gcc-4.8.2-32 but when I perform the command: "python setup.py config --compiler=mingw32 build --compiler=mingw32 install", it just fails with exit status 1 (See Attachment-1 below).
Then, I make an other try with pip using: "pip install scikits.bvp_solver" it gets the other error that: fail with status 1181 (LINK: fatal error LNK1181: cannot open input file 'mingw32.lib' ) (see Attachemnt-2), could any one give me advise for this case.
Attachment-1
Attachment-2
Remove *\VC\Bin\link.exe from your $PATH because you used msvc linker not mingw32.

error while installing sequitor g2p converter

I want to install sequitor g2p a data-driven grapheme-to-phoneme converter
getting error while building sequitor-g2p
I gave command $ python setup.py install --prefix /usr/local/
getting error as follows:
Utility.cc:43:21: error: ‘EOF’ was not declared in this scope
if (is.get() == EOF) return EOF;
^
Utility.cc:48:35: error: ‘EOF’ was not declared in this scope
while (((token = is.get()) != EOF) &&
^
error: command 'i686-linux-gnu-gcc' failed with exit status 1
thanks in advance.
See also fcgio.cpp:50: error: 'EOF' was not declared in this scope
The easiest option is to add
#include <stdio.h>
to Utility.cc.
You can automatically do this for example using patch as in the provided link or by using sed:
wget http://www-i6.informatik.rwth-aachen.de/web/Software/g2p-r1668.tar.gz
tar xvf g2p-r1668.tar.gz
rm -r g2p-r1668.tar.gz
cd g2p
sed -i "27 a #include <stdio.h>" Utility.cc
python setup.py install --prefix /usr/local

pyconfig-64.h: No such file or directory

I have a newish Slackware 14.1 64-bit install (Python 2.7.5), and am trying to install pygraphviz via pip.
When I run:
pip install pygraphviz
however, I get the following error:
In file included from /usr/include/python2.7/Python.h:8:0,
from pygraphviz/graphviz_wrap.c:124:
/usr/include/python2.7/pyconfig.h:6:25: fatal error: pyconfig-64.h: No such file or directory
#include "pyconfig-64.h"
^
compilation terminated.
error: command 'gcc' failed with exit status 1
The referenced pyconfig.h file is:
#include <bits/wordsize.h>
#if __WORDSIZE == 32
#include "pyconfig-32.h"
#elif __WORDSIZE == 64
#include "pyconfig-64.h"
#else
#error "Unknown word size"
#endif
Looking around, there is a lot of info for missing a pyconfig.h file, but not the 64 variant, and I'm struggling to find the package to install to take care of this. I tried to use rpm2tgz and the python-devel rpm for 2.7.5 from Fedora, but it didn't take care of the issue. Also, as I'm running slack, a yum or apt-get command isn't a valid solution, I need to know where I can find the actual package.
to solve problem you need to install python dev pakege
sudo apt-get install python2.7-dev

unable to install matplotlib under pythonw3.3 on mac

I am trying to install matplotlib using this command:
pip install matplotlib
I get this error:
src/ft2font.h:16:10: fatal error: 'ft2build.h' file not found
#include <ft2build.h>
^
1 warning and 2 errors generated.
error: command '/usr/bin/clang' failed with exit status 1
What does this error mean? I am able to install other packages like bumpy etc.
I did a
brew install freetype
I get this error:
Warning: freetype-2.5.2 already installed, it's just not linked
what does this mean?
I have the free type install as shown here:
/usr/local/include/freetype -> /usr/X11/include/freetype2/freetype
I am stuck, any ideas, any body?
I follow the step on this site and it worked:
http://matplotlib.org/faq/installing_faq.html

Categories