metacall / distributable-linux Goto Github PK
View Code? Open in Web Editor NEWLinux redistributable for shipping MetaCall Core.
License: Apache License 2.0
Linux redistributable for shipping MetaCall Core.
License: Apache License 2.0
I would like to use ruby gem nokogiri with MetaCall (installed with install.sh) and am using the repo metacall/express-faas-rpc-example as a starting point.
I added a corresponding Gemfile, called metacall bundler install
which reports the gem as being present.
When I add the `require 'nokogiri' statement to mult.rb, I get
Loading... mult.rb
Error: Ruby module evaluation failed
#<LoadError: cannot load such file -- nokogiri>
(eval):1:in `require'
(eval):1:in `<main>'
Error: Invalid ruby module loading /wrk/metacall/express-faas-rpc-example/scripts/mult.rb
Error: No module could be loaded
Error: Handle (nil) passed to metacall_handle_export is not valid
NodeJS Loader Error: MetaCall could not load from file
@viferga mentioned in the Discord chat that this is related to some environment variables and to #5.
This tries to solved an issue in a generalized version, all the description can be found here: https://github.com/metacall/distributable/issues/4#issuecomment-820432394
The idea is to provide a standard way of defining all the environment variables for the CLI instead of defining them in a dirty manner.
The following error appears when loading a Python module:
Error in sitecustomize; set PYTHONVERBOSE for traceback:
ValueError: '/gnu/store/fh3601n59i6rbsri6a4lbnnc00n6fjjl-profile/bin/../../c81i9i54fgc2gya6948dxs4b61c86f9g-python-3.10.7R/lib/python3.10/site-packages' is not in list
This is a bug from Guix which has been solved in core-updates
branch but it is not merged into master yet. Update it whenever it is available. Here's the commit:
commit d8875d76555faf1a11f6838312bfe4b7f6121d2c
Author: Konrad Hinsen <[email protected]>
Date: Thu Jan 4 13:44:19 2024 +0100
gnu: python: Normalize sys.prefix in sitecustomize.py.
* gnu/packages/aux-files/python/sitecustomize.py: normalize sys.prefix to deal
with situations where it contains "../", as can happen in relocatable packs.
Change-Id: Ibfe13d7c2a14beaa199f599e64bc0b7bfb500fe8
Signed-off-by: Maxim Cournoyer <[email protected]>
System information:
OS: Ubuntu 18.04 bionic
Kernel: x86_64 Linux 5.4.72-microsoft-standard-WSL2
Pastebin: https://b.darve.sh/LV0
find /gnu/store/q9rm8h9imazsq2c4qiv2yjpvlvliywqb-python-3.8.2 -regex "socket"
returns no result.
In the build phase the testing of node-lts takes long, we know Guix already tests them and we just do a small change in the linking properties of the nodejs library, so I think we can safely remove the tests to speedup build times.
We should implement NetCore with nonguix (not yet bootstrapable).
Here are the TODOs:
nonguix
channel:
nuget
in order to allow metacall nuget ...
command.We do not export the environment variables of the Guix profile while building the distributable. This is a must, because some users find common errors when mixing the distributable installation with other environments like conflicts with Python installation.
https://github.com/metacall/install/blob/90eef2a15e80aa10fa3fe0fd9473e9ba3ba1e380/install.sh#L346
This environment variables can be retrieved with:
guix package --search-paths
We should package backwardcpp (a header only library) and add an exception in Add_ExternalProject in metacall/core
for when building with Guix.
We should also change this flag: -DOPTION_BUILD_PLUGINS_BACKTRACE=OFF
to ON.
This script must tag properly and get all history of all commits, probably run a make download
too. This script should be implemented here:
https://github.com/metacall/distributable/blob/52008d9afefdda7db2fa827bcd29d883e19fad79/tools/release.sh
Probably we can use this template to implement the tokens for GitHub:
https://github.com/metacall/distributable/blob/52008d9afefdda7db2fa827bcd29d883e19fad79/.netrc.template
This script is needed in order to implement CI/CD for MetaCall Distributable.
While attempting to embed metacall into a zig application, I encountered some confusion, and I suggest the following changes to the release tarball in order to ease the life of people trying to use it in their projects:
gnu/include
to gnu/store/szllrsimcnm8r1iiampsikhnnpk3c4zd-metacall-0.6.2/include
CONFIGURATION_PATH
gnu/configurations
to gnu/store/y1qviprznny30lmnkgyinh0a3bsf5r40-profile/configurations
c-ares
and icu4c
into gnu/lib
somehowA declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.