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

setuptools install hx711 err #27

Open
jjeejj opened this issue Aug 16, 2019 · 1 comment
Open

setuptools install hx711 err #27

jjeejj opened this issue Aug 16, 2019 · 1 comment

Comments

@jjeejj
Copy link

jjeejj commented Aug 16, 2019

when i exec python3 setup.py install command,an error has occurred

source/py_gpio.c:87:4: error: function definition is not allowed here
   {
   ^
source/py_gpio.c:143:10: warning: implicit declaration of function 'cleanup_one' is invalid in C99 [-Wimplicit-function-declaration]
         cleanup_one();
         ^
source/py_gpio.c:143:10: warning: this function declaration is not a prototype [-Wstrict-prototypes]
source/py_gpio.c:172:13: warning: implicit declaration of function 'cleanup_one' is invalid in C99 [-Wimplicit-function-declaration]
            cleanup_one();
            ^
source/py_gpio.c:200:24: error: function definition is not allowed here
   int setup_one(void) {
                       ^
source/py_gpio.c:293:13: warning: implicit declaration of function 'setup_one' is invalid in C99 [-Wimplicit-function-declaration]
       if (!setup_one())
            ^
source/py_gpio.c:293:13: warning: this function declaration is not a prototype [-Wstrict-prototypes]
source/py_gpio.c:323:12: warning: implicit declaration of function 'setup_one' is invalid in C99 [-Wimplicit-function-declaration]
      if (!setup_one())
           ^
source/py_gpio.c:345:21: error: function definition is not allowed here
   int output(void) {
                    ^
source/py_gpio.c:419:18: error: called object type 'PyObject *' (aka 'struct _object *') is not a function or function pointer
      if (!output())
           ~~~~~~^
source/py_gpio.c:475:18: error: called object type 'PyObject *' (aka 'struct _object *') is not a function or function pointer
      if (!output())
           ~~~~~~^
6 warnings and 5 errors generated.
error: Setup script exited with error: command 'gcc' failed with exit status 1

i want to know ,how to solve it?

@tatobari
Copy link
Owner

tatobari commented Mar 7, 2024

@jjeejj Are you still interested on using this library and solving this issue? A new version is available and doesn't need setup.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants