GithubHelp home page GithubHelp logo

Comments (5)

xioTechnologies avatar xioTechnologies commented on July 4, 2024

The Python package installed using pip install is limited to the platforms supported by GitHub Actions Runner. If your platform is not supported then you can run setup.py to build and install the package on your target platform.

from fusion.

DandrewsDev avatar DandrewsDev commented on July 4, 2024

Was able to build and use the package locally. Adding the steps I needed to follow below incase anyone else ever runs into this.

Ran into errors using numpy from pip on raspberry pi.
Thats fixable following the steps here https://numpy.org/devdocs/user/troubleshooting-importerror.html

  1. pip3 uninstall numpy # remove previously installed version

  2. sudo apt install python3-numpy

  3. Clone repo

  4. cd Fusion/Python/Python-C-API

  5. python3 setup.py

  6. cd dist

  7. unzip imufusion-1.0.1-py3.9-linux-armv7l.egg

  8. cp imufusion.cpython-39-arm-linux-gnueabihf.so and imufusion.py to project libraries

  9. import numpy, imufusion

And now its working great. Thanks for the info.

from fusion.

bshmid avatar bshmid commented on July 4, 2024

The Python package installed using pip install is limited to the platforms supported by GitHub Actions Runner. If your platform is not supported then you can run setup.py to build and install the package on your target platform.

Hello,
I had downloaded setup.py and placed it in Fusion-main directory, as I run it I get the following message:
`running install
running bdist_egg
running egg_info
creating imufusion.egg-info
writing imufusion.egg-info/PKG-INFO
writing dependency_links to imufusion.egg-info/dependency_links.txt
writing top-level names to imufusion.egg-info/top_level.txt
writing manifest file 'imufusion.egg-info/SOURCES.txt'
reading manifest file 'imufusion.egg-info/SOURCES.txt'
adding license file 'LICENSE.md'
writing manifest file 'imufusion.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv7l/egg
running install_lib
running build_ext
building 'imufusion' extension
creating build
creating build/temp.linux-armv7l-3.10
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/home/pi/.local/lib/python3.10/site-packages/numpy/core/include -I/usr/local/include/python3.10 -c ../../Fusion/FusionAhrs.c -o build/temp.linux-armv7l-3.10/../../Fusion/FusionAhrs.o
gcc: error: ../../Fusion/FusionAhrs.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1


(program exited with code: 1)
Press return to continue
`
The file FusionAhrs.c is there in Fusion sub directory but I don't know what the rest of the path should be.
Thank you in advance.

from fusion.

xioTechnologies avatar xioTechnologies commented on July 4, 2024

I had downloaded setup.py and placed it in Fusion-main directory...

Why are you rearranging the files? You should download the whole repository and run setup.py as it is.

from fusion.

bshmid avatar bshmid commented on July 4, 2024

Why are you rearranging the files? You should download the whole repository and run setup.py as it is.
Thank you very much!
I just did not know it was there.
Now it works.

from fusion.

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.