question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

libzmq recipe compiling error

See original GitHub issue

Versions

  • Python: 3.6.5 (on virtualenv)
  • OS: Ubuntu 16.04.6 LTS
  • Kivy: master
  • Cython: no

Description

I have a similar issue that this but with libzmq recipe on current master code:

line execution:

(venv) (master) malos-python$ p4a apk --private . --package=com.admobilize.malos --name "ADM Malos Test" --version 1.2.10 --bootstrap=sdl2 --requirements=python3,libffi,matrix-io-malos,docopt,pyzmq,matrix-io-proto --permission INTERNET 

exported vars:

ANDROIDAPI=27
ANDROIDNDK=/opt/android-sdk/ndk-bundle
ANDROID_JAVA_HOME=/usr/lib/jvm/java-8-oracle/
ANDROIDSDK=/opt/android-sdk
NDKAPI=27

ndkversion: android-ndk-r17c

error lines output:

  ...
  CXX      src/libzmq_la-trie.lo
  CXX      src/libzmq_la-tipc_listener.lo
  CXX      src/libzmq_la-v1_decoder.lo
  CXX      src/libzmq_la-v2_decoder.lo
  CXX      src/libzmq_la-v1_encoder.lo
  CXX      src/libzmq_la-v2_encoder.lo
  CXX      src/libzmq_la-xpub.lo
  CXX      src/libzmq_la-xsub.lo
  CXX      src/libzmq_la-zmq.lo
  CXX      src/libzmq_la-zmq_utils.lo
  CXX      tools/curve_keygen.o
  CXX      perf/local_lat.o
  CXX      perf/remote_lat.o
  CXX      perf/local_thr.o
  CXX      perf/remote_thr.o
  CXX      perf/inproc_lat.o
  CXX      perf/inproc_thr.o
  CXXLD    libzmq.la
arm-linux-androideabi-g++: error: crtbegin_so.o: No such file or directory
arm-linux-androideabi-g++: error: crtend_so.o: No such file or directory
Makefile:1795: recipe for target 'libzmq.la' failed
make[1]: *** [libzmq.la] Error 1
make[1]: Leaving directory '/home/xxx/.local/share/python-for-android/build/other_builds/libzmq/armeabi-v7a__ndk_target_27/libzmq'
Makefile:3147: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

runned over this source code: https://github.com/matrix-io/malos-python.git

Many thanks for any help

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
hpsaturncommented, Apr 25, 2019

Yes, .encode() resolve the issue. I updated the PR with all changes suggested from you

0reactions
rubar-techcommented, Jun 20, 2021

I submitted a pull request that fixed this bug, but I have a new issue in pyzmq dependency. I don’t know, but I believe that this is not relationed, is a new issue on pyzmq recipe

[INFO]:    Building pyzmq for armeabi-v7a
[INFO]:    zmq apparently isn't already in site-packages
Traceback (most recent call last):
  File "/home/avp/src/admobilize/admprovider/venv/bin/p4a", line 11, in <module>
    load_entry_point('python-for-android==0.7.1', 'console_scripts', 'p4a')()
  File "/home/avp/src/admobilize/admprovider/venv/lib/python3.6/site-packages/pythonforandroid/toolchain.py", line 1075, in main
    ToolchainCL()
  File "/home/avp/src/admobilize/admprovider/venv/lib/python3.6/site-packages/pythonforandroid/toolchain.py", line 577, in __init__
    getattr(self, args.subparser_name.replace('-', '_'))(args)
  File "/home/avp/src/admobilize/admprovider/venv/lib/python3.6/site-packages/pythonforandroid/toolchain.py", line 151, in wrapper_func
    build_dist_from_args(ctx, dist, args)
  File "/home/avp/src/admobilize/admprovider/venv/lib/python3.6/site-packages/pythonforandroid/toolchain.py", line 200, in build_dist_from_args
    build_recipes(build_order, python_modules, ctx)
  File "/home/avp/src/admobilize/admprovider/venv/lib/python3.6/site-packages/pythonforandroid/build.py", line 562, in build_recipes
    recipe.build_arch(arch)
  File "/home/avp/src/admobilize/admprovider/venv/lib/python3.6/site-packages/pythonforandroid/recipe.py", line 986, in build_arch
    self.build_cython_components(arch)
  File "/home/avp/src/admobilize/admprovider/venv/lib/python3.6/site-packages/pythonforandroid/recipes/pyzmq/__init__.py", line 46, in build_cython_components
    """.format(libzmq_prefix))
TypeError: a bytes-like object is required, not 'str'

i have the same issue, i raised an issue in buildozer, number 1333 the .encode() function already exists in latest versin of buildozer, can u take a look please

Read more comments on GitHub >

github_iconTop Results From Across the Web

bitbake can't build cppzmq when it's included in an image
With IMAGE_INSTALL you define which packages are included in the image. Looking at the cppzmq recipe you can see that it only provides...
Read more >
Build error in the v6-26-00-patches branch fails ... - ROOT Forum
It seems that the problem is related to the system provided “ libzmq ”. and then it uses the system provided /usr/include/zmq. hpp...
Read more >
Troubleshooting — conan 1.21.3 documentation
ERROR : Missing prebuilt package¶ ... This means that the package recipe libzmq/4.2.0@memsharded/testing exists, but for some reason there is no precompiled ...
Read more >
Resolved - How to install Zeromq | Plesk Forum
Hello, I am trying to install the zeromq extension on plesk onyx, but I can not do it. I have been looking for...
Read more >
[yocto] nodejs project including zeromq fails to build with yocto
checking whether we are cross compiling... configure: error: in ... zmq.target.mk:93: recipe for target 'Release/obj.target/zmq/binding.o' ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found