×
INDI Library v1.8.1 Released (09 Sep 2019)

Monthly maintenance release INDI v1.8.1

Installing pyindi-client on ubuntu raspberry pi

1 year 4 months ago 1 year 4 months ago by Lagreeni.
Lagreeni
Fresh Boarder
Fresh Boarder
Posts: 9
More
Topic Author
Installing pyindi-client on ubuntu raspberry pi #28488
This might be an easily answerable question, but it's really got me stumped. I'm redownloading pyindi-client following www.indilib.org/develop/indi-python-bindings.html . At
--> pip3 install --user --install-option="--prefix=" pyindi-client

I get an error:
arm-linux-genueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include -I/usr/include/libindi -I/usr/include/python3.5m -c indiclientpython_wrap.cpp -o build/temp.linux-armv7l-3.5/indiclientpython_wrap.o -std=c++11

cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++

creating build/lib.linux-armv7l-3.5

arm-linux-gnueabihf-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-s,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/indiclientpython_wrap.o /usr/lib/libindiclient.a -lz -lcfitsio -lnova -o build/lib.linux-armv7l-3.5/_PyIndi.cpython-35m-arm-linux-gnueabihf.so

/usr/bin/ld: cannot find -lz

collect2: error: ld returned 1 exit status

error: command 'arm-linux-gnueabihf-g++' failed with exit status 1

I'm not sure what's going on, because last time I went through the process it went without a hitch.

Please Log in or Create an account to join the conversation.

1 year 4 months ago 1 year 4 months ago by Lagreeni.
Lagreeni
Fresh Boarder
Fresh Boarder
Posts: 9
More
Topic Author
Installing pyindi-client on ubuntu raspberry pi #28582
I figured it out. It was a permissions issue that I solved by running:
sudo chmod 777 /home/user/.cache/pip
and
sudo chmod 777 /home/user/.cache/pip/*
I'm not sure why this was causing the issue, especially since I also tried downloading pyindi-client from pypi.org/project/pyindi-client/#description where I don't remember using pip and it was also causing the same issue. Again, probably something really stupid, but I guess atleast it's working now.

Please Log in or Create an account to join the conversation.

9 months 2 weeks ago
jrsphoto
Senior Boarder
Senior Boarder
Posts: 46
More
Installing pyindi-client on ubuntu raspberry pi #35491
I'm getting nearly the same error when installing pyindi-client:

# pip3 install --user --install-option="--prefix=" pyindi-client


I get a few warnings:
/usr/include/libindi/baseclient.h:33: Warning 322: Redundant redeclaration of 'MAXRBUF',
    /usr/include/libindi/indibase.h:8: Warning 322: previous declaration of 'MAXRBUF'.
    /usr/include/libindi/baseclient.h:238: Warning 325: Nested struct not currently supported (BLOBMode ignored)
    /usr/include/libindi/basedevice.h:29: Warning 322: Redundant redeclaration of 'MAXRBUF',
    /usr/include/libindi/indibase.h:8: Warning 322: previous declaration of 'MAXRBUF'.
    /usr/include/libindi/baseclient.h:55: Warning 403: Class 'INDI::BaseClient' might be abstract, no constructors generated,
    /usr/include/libindi/indibase.h:84: Warning 403: Method INDI::BaseMediator::newDevice(INDI::BaseDevice *) might not be implemented.

and a few errors:
/usr/bin/ld: cannot find -lz
    collect2: error: ld returned 1 exit status
    error: command 'arm-linux-gnueabihf-g++' failed with exit status 1
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-5cs1iznm/pyindi-client/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-l9n2e560-record/install-record.txt --single-version-externally-managed --compile --prefix= --user --prefix=" failed with error code 1 in /tmp/pip-build-5cs1iznm/pyindi-client/

Also, when trying to install system-wide, I get the same error but also an additional failure early in the script:
Collecting pyindi-client
  Using cached https://files.pythonhosted.org/packages/a7/4d/9ae15f572822c2fac5d6756570b205bdf578c80be24e274947ac74962873/pyindi-client-0.2.3.tar.gz
Building wheels for collected packages: pyindi-client
  Running setup.py bdist_wheel for pyindi-client ... error
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-xw085f8z/pyindi-client/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpth58_7v0pip-wheel- --python-tag cp36:
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  error: invalid command 'bdist_wheel'

  ----------------------------------------
Failed building wheel for pyindi-client
Running setup.py clean for pyindi-client
Failed to build pyindi-client

I did try setting the permissions as mentioned above but that had no effect. Does anyone have any ideas?

Please Log in or Create an account to join the conversation.

9 months 2 weeks ago
jrsphoto
Senior Boarder
Senior Boarder
Posts: 46
More
Installing pyindi-client on ubuntu raspberry pi #35494
I got it to compile but needed to modify the setup.cfg file to remove the lib entry for z.

Please Log in or Create an account to join the conversation.

Time to create page: 0.613 seconds