Discussion:
[yocto] using pip3-native to install python requirements
Belisko Marek
2018-11-12 08:21:27 UTC
Permalink
Hi,

I'm having recipe for custom python3 application whcih need to install
~20 python dependencies. I've create requirements.txt and using pip on
PC I can install necessary python packages. When try to use
pip3-native (as DEPENDS) and call pip3 I get some errors:

pkg_resources.VersionConflict: (pip 8.1.1
(/usr/lib/python3/dist-packages), Requirement.parse('pip==9.0.1'))

I would like to ask it pip3 can be used (didn't find any other
occurrence in poky) or should I add python dependencies as RDEPENDS ?
Thanks.

BR,

marek


--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
--
Outback Dingo
2018-11-12 09:34:53 UTC
Permalink
Post by Belisko Marek
Hi,
I'm having recipe for custom python3 application whcih need to install
~20 python dependencies. I've create requirements.txt and using pip on
PC I can install necessary python packages. When try to use
pkg_resources.VersionConflict: (pip 8.1.1
(/usr/lib/python3/dist-packages), Requirement.parse('pip==9.0.1'))
I would like to ask it pip3 can be used (didn't find any other
occurrence in poky) or should I add python dependencies as RDEPENDS ?
i believe you just need to add inherit setuptools3 to the recipe your
trying to use pip3 for
Post by Belisko Marek
Thanks.
BR,
marek
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
--
_______________________________________________
yocto mailing list
https://lists.yoctoproject.org/listinfo/yocto
--
Belisko Marek
2018-11-12 09:45:46 UTC
Permalink
Post by Outback Dingo
Post by Belisko Marek
Hi,
I'm having recipe for custom python3 application whcih need to install
~20 python dependencies. I've create requirements.txt and using pip on
PC I can install necessary python packages. When try to use
pkg_resources.VersionConflict: (pip 8.1.1
(/usr/lib/python3/dist-packages), Requirement.parse('pip==9.0.1'))
I would like to ask it pip3 can be used (didn't find any other
occurrence in poky) or should I add python dependencies as RDEPENDS ?
i believe you just need to add inherit setuptools3 to the recipe your
trying to use pip3 for
Well application doesn't contain setup.py (after inheriting setuptool3 I get:)
recipe-sysroot-native/usr/bin/python3-native/python3: can't open file
'setup.py': [Errno 2] No such file or directory
| ERROR: python3 setup.py build_ext execution failed.

So is the correct way to create setup.py which will internall somehow
add all required external modules to be installed. Thanks.
Post by Outback Dingo
Post by Belisko Marek
Thanks.
BR,
marek
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
--
_______________________________________________
yocto mailing list
https://lists.yoctoproject.org/listinfo/yocto
BR,

marek
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
--
Loading...