Code Monkey home page Code Monkey logo

Comments (14)

jan-kiszka avatar jan-kiszka commented on August 28, 2024 1

MRAA is not part of meta-iot2000. We rather pull its recipes from meta-openembedded now (meta-intel-iot-middleware, the former source, is dead by now).

from meta-iot2000.

klausnuredini avatar klausnuredini commented on August 28, 2024

A few other libs/tools that would be useful to have, if possible, are:

  • PyPy for Python2.7
  • easy_install -- part of the python setuptools (Python2.7 also)

from meta-iot2000.

jan-kiszka avatar jan-kiszka commented on August 28, 2024

OK, can be added.

But I would refrain from adding those dependencies in legacy python-2.7 form anymore. Yocto moved on to python 3, and those 2.7 packages may break or get removed. Any concerns about that constraint?

from meta-iot2000.

jan-kiszka avatar jan-kiszka commented on August 28, 2024

BTW, python3-pip and python3-modules are already part of our image. Adding python3-setuptools and python3-lxml now, then checking what the latter already pulls in automatically.

Unfortunately, PyPy looks much more complex on second sight. I would recommend building it manually using our cross-toolchain.

from meta-iot2000.

klausnuredini avatar klausnuredini commented on August 28, 2024

Well, in that case, Python 3 should be fine.
As for PyPy, sure, I'll look into building it using the cross-toolchain. Thanks.

from meta-iot2000.

jan-kiszka avatar jan-kiszka commented on August 28, 2024

I've pushed jan/python-addons with the aforementioned additional packages. Let me know if that is already sufficient, then we can start a PR.

from meta-iot2000.

klausnuredini avatar klausnuredini commented on August 28, 2024

I managed to install the libs that I was looking for without needing the easy_install tool, so on my side, I wouldn't need any new additional package on the image.

from meta-iot2000.

jan-kiszka avatar jan-kiszka commented on August 28, 2024

@laura-mc can we close the issue by sending out this change for master, or is still something missing?

from meta-iot2000.

laura-mc avatar laura-mc commented on August 28, 2024

@jan-kiszka I think it is complete, I would send it.

from meta-iot2000.

jan-kiszka avatar jan-kiszka commented on August 28, 2024

merged into master

from meta-iot2000.

gramss avatar gramss commented on August 28, 2024

I would like to reopen this issue as I'm unable to install pip2.
Python2.7 is/was strongly needed as the MRAA Library is/was only available in Python2.7
(since when is MRAA available for Python3?? My build from 06.May.2018 does not contain it? But my new Image from 15. August.2018 contains MRAA for Python3)

I solved this issue back then by loading a few necessary libraries first from the opkg sources and two missing ones directly from github.com/python/cpython/lib

With the new image I hoped to transfer the missing libraries from the old to the new image.
But this is not working flawless as I need zlib and some other core libs like xml to be installed properly.

Hm. Now I am a bit uncertain what to do. I think the best would be to transfer my code to Python3.

Nevertheless can someone say me if MRAA was recently added as a Python3 library in the example image or was this just a missing configuration from my site?

Cheers

from meta-iot2000.

jan-kiszka avatar jan-kiszka commented on August 28, 2024

In master (and thus for the upcoming release), we moved to Python 3 as default. MRAA is also Python 3 now, primarily because the upstream recipes changed this way, but also because it's general standard. So you should move your application to Python 3 which is typically not a big deal.

PS: This issue is still closed. Please open a new one if you find problems with the master version.

from meta-iot2000.

gramss avatar gramss commented on August 28, 2024

Thank you for the fast reply. Python3 should be no issue for me. It was just a pita to make my whole system work with Python2.7 just to find out that MRAA also works with Python3 now.

So MRAA happend to merge into master inbetween my two builds is this right?
Sorry for the confusion in my comment before. I was just uncertain what to do now finding the Python3 integration halfway writing this comment as I was checking the facts.. 😆

Just want to confirm this integration and I'm happy with it.. 🍶

from meta-iot2000.

gramss avatar gramss commented on August 28, 2024

Thank you for this information :) Now I have some more facts for my bachelor thesis.

from meta-iot2000.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.