Is there are deb package with python3.5 for arm arch?
Needs that to install on Raspberry Pi(raspbian) and Orange PI(ubuntu) devices.
I tried to compile from the sources but faced with absent libs like math or setuptools. So I can not to consider this option
for pi raspbian you can try to swap to stretch
Related
I'm trying to use ONNX runtime for Ubuntu: https://onnxruntime.ai/
I selected Linux, C++, x64, then CUDA. It says "Install Nuget package Microsoft.ML.OnnxRuntime.Gpu
Refer to docs for requirements."
When I click on "Microsoft.ML.OnnxRuntime.Gpu", I'm taken to https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime.Gpu
There, it just says "Install-Package Microsoft.ML.OnnxRuntime.Gpu -Version 1.8.1". Now what am I supposed to do?
They expect you to install nuget in linux with
sudo apt-get install -y nuget
And then run the following with the version you want installed.
nuget install Microsoft.ML.OnnxRuntime.Gpu -Version 1.12.0
That's the expected approach. Personally, for me that didn't work. I kept getting some error saying "'Microsoft.ML.OnnxRuntime.Managed' already has a dependency defined for 'System.Memory'." So I did it a different way. I just went to https://github.com/microsoft/onnxruntime/releases/tag/v1.12.0. And then at the bottom under assets it lists pre-built .tgz packages for the different setups. You can just download one and unpack it.
I'm trying to deploy a Cython wrapped C++ module to PyPI as wheel. The goal is to make I2C hardware modules work with Python on any Raspberry Pi. So far I compiled the code and I know it works if I just copy compiled module from Pi 3B running Buster to Pi Zero W running Stretch, but when I deploy the wheel to test.pypi.org from Buster and try to install it on Stretch I get:
Could not find a version that satisfies the requirement pyiArduinoI2Crelay (from versions: )
No matching distribution found for pyiArduinoI2Crelay
If I merely rename the wheel from *_armv7l.whl to *_armv6l.whl
module downloads and works on Pi Zero. But Pi 3B downloads previous version from PyPI (and i used --no-cache-dir and rm -r .cache/pip/)
If I do sdist and upload it complains about not having Cython installed upon installation of the module, although I know for a fact that it is installed, because it's the same Pi I compiled wheels before. (setup_requires and install_requires dont's seem to work)
So far none of these helped:
https://www.python.org/dev/peps/pep-0425/#platform-tag
https://packaging.python.org/guides/distributing-packages-using-setuptools/#platform-wheels
https://wheel.readthedocs.io/en/stable/user_guide.html#building-wheels
Prepare C-based Cython package to publish on pypi
Here's the link to the project:
https://github.com/tremaru/pyiArduinoI2Crelay
Here's the setup.py:
from setuptools import setup
from distutils.extension import Extension
from Cython.Build import cythonize
from Cython.Distutils import build_ext
def readme():
with open('README.md') as readme:
return readme.read()
setup(name='pyiArduinoI2Crelay',
version='1.6.4.dev8',
description='iarduino.ru module for Raspberry Pi',
long_description=readme(),
classifiers=[
'Programming Language :: Python :: 3',
],
url='http://github.com/tremaru/pyiArduinoI2Crelay',
author='iarduino.ru',
author_email='shop#iarduino.ru',
license='MIT',
package=['pyiArduinoI2Crelay'],
ext_modules = [Extension(
name="pyiArduinoI2Crelay",
sources=["pyiArduinoI2Crelay/pyiArduinoI2Crelay.cpp"])],
include_package_data=True,
python_requires='>=3',
setup_requires=['Cython'],
install_requires=['Cython'],
cmdclass = {
"build_ext": build_ext
}
)
I want to be able to publish one version of the module for all Raspberries. So, is there a way to pack multiple .so's to one wheel? Or maybe some kind of manylinux1 tag for arm architecture?
Turns out I'm a knucklehead. I didn't need any Cython stuff in my setup after generating cpp file. All I needed to do is remove Cython stuff and remove cmdclass = { "build_ext": build_ext }. And then in publishes and builds as source distribution no problem.
I have noticed a number of similar questions on stackoverflow, but none that really helped me with my current challenge. I have been attempting to install eric6 on my Raspberry Pi setup. And then I encountered the following messages:
Checking dependencies
Python Version: 3.6.8
PyQt5 could not be detected.
Error: No module named 'PyQt5.sip'
Shall 'PyQt5' be installed using pip? (Y/n) Y
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: PyQt5 in /usr/local/lib/python3.6/site-packages (5.12)
Sorry, please install PyQt5.
Error: No module named 'PyQt5.sip'
And when I attempt to use the pip list to look at what has been installed (as I previously already managed to make and install the PyQt5 from source code):
Package Version
---------- -------
pip 19.0.3
PyQt5 5.12
setuptools 40.6.2
sip 4.19.14
So, how do I overcome the issue that I am currently facing? By the way, I am using the following command when attempting to install eric6:
python3 install.py
Thought you might need to know that if it helps.
Python 3.6 isn't available in any Raspbian distribution, so I assume you installed this yourself. You can't install an out-of-distribution Python version and expect distribution Python packages to work. You have PyQt5 installed, yes, but it's the version of PyQt built for Python 3.5 (I'm assuming you're on Raspbian Stretch).
Sometimes you can install Python libraries with pip, and in theory that could work to install the correct version of PyQt for your version of Python, but PyQt only provides wheels for x86 on PyPI, not for Arm, so PyQt is not pip installable on the Pi. The only way to get PyQt on Raspberry Pi is via apt, where your choices are Jessie (old stable - with Python 3.4), Stretch (current stable - with Python 3.5), and Buster (unstable/testing - with Python 3.7). If there's a need for Python >3.5, your best bet is to try upgrading to Buster, but bear in mind it's not ready for release yet.
I'd like to install a Solidity Compiler on the Raspberry Pi3. But I have no idea how.
the operating system is using Ubuntu Mate.
If there's no way above, could you let me know about Rasbian?
Having Node Package Manager installed:
npm install -g solc
I am working on raspberry pi B. OS is rasbian and ı have installed ros indigo using this tutorials on raspberry pi. Now ı want to work with raspberry pi + kinect. When ı run
roslaunch openni_launch openni.launch
ı had an error like this
[openni.launch] is neither a launch file in package [openni_launch] nor is [openni_launch] a launch file name The traceback for the exception was written to the log file
Then ı try to install openni but ı had an error is below.
pi#raspberrypi ~ $ sudo apt-get install ros-indigo-openni-kinect
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ros-indigo-openni-kinect
How can ı run kinect on raspberry pi. pls help??
You could have had a look at ROS Answer before asking.
Anyway, as it is explained there, openni-kinect is deprecated and it is suggested to use openni-launch instead.
To install this package:
sudo apt-get install ros-indigo-openni-launch
The only solution I know to get the kinect working on the Raspberry pi? You can retrieve the depth map and the rgb matrix with this library, basically all you need.
Check this out:
https://github.com/xxorde/librekinect
Maybe StackEchange is a friendly zone but in this case ROS answer is the most suited place to ask.