Comments (16)
You should install lua 5.1. Other lua versions are not supported by Tarantool.
from tarantoolapp.
luarocks --lua-dir=/usr/local/opt/[email protected] install tarantoolapp
Is solved for me
from tarantoolapp.
You are right!
from tarantoolapp.
@igorcoding I'll got the same problem. I'd tried to install lua 5.1 and set lua interpreter version to luarocks config, but he's ignoring my changes
tarantoolapp create app
Tarantool version: 1.10.2-1-ge0017ad
...luarocks/rocks-5.3/tarantoolapp/1.0.3-1/bin/tarantoolapp:9: module 'tarantoolapp.argparse' not found:
no field package.preload['tarantoolapp.argparse']
no file './tarantoolapp/argparse.lua'
no file './tarantoolapp/argparse/init.lua'
no file './tarantoolapp/argparse.dylib'
no file './tarantoolapp/argparse.so'
no file '/usr/local/Cellar/lua/5.3.5_1/.rocks/share/tarantool/tarantoolapp/argparse.lua'
no file '/usr/local/Cellar/lua/5.3.5_1/.rocks/share/tarantool/tarantoolapp/argparse/init.lua'
no file
-- LuaRocks configuration
rocks_trees = {
{ name = "user", root = home .. "/.luarocks" };
{ name = "system", root = "/usr/local" };
}
lua_interpreter = "lua-5.1";
variables = {
LUA = "/usr/local/bin/lua-5.1";
LUA_DIR = "/usr/local/bin";
LUA_BINDIR = "/usr/local/opt/lua/bin";
}
from tarantoolapp.
Have you tried reinstalling tarantoolapp after changing lua paths?
It's clear that it uses lua 5.3 paths. Try making sure that you have luarocks for 5.1
from tarantoolapp.
I'd made next
brew install [email protected]
// now command lua starts lua5.1
brew install luarocks
brew install tarantool
problem had not solved
from tarantoolapp.
I'd look to brew formulae (https://formulae.brew.sh/api/formula/luarocks.json)
inside the dependencies:
dependencies: [
"[email protected]",
"lua"
],
from tarantoolapp.
But still - have you reinstalled this module (tarantoolapp)?
from tarantoolapp.
Yep. I'd reinstall him.
I'd created ~./luarocks/config-5.1.lua
and put into
variables = {
LUA_DIR = "/usr/local/opt/lua";
LUA_BINDIR = "/usr/local/bin";
}
and tarantoolapp create test
output me
Tarantool version: 1.10.2-1-ge0017ad
error loading module 'tarantoolapp.argparse' from file '/usr/local/bin/lua-5.1':
/usr/local/bin/lua-5.1:1: '=' expected near 'char(7)'
from tarantoolapp.
This is really weird. I don't have Mac os near right now to check into this. But I'll try to look today.
@shapel maybe you can help somehow with this?
from tarantoolapp.
@igorcoding this sad((
My PM will be crying and possibly will be scream abusive words.
p.s. SOS 👀
from tarantoolapp.
I'm not an expert in macos and brew stuff but tried this on a fresh system:
brew install [email protected]
brew install luarocks
brew install tarantool
luarocks --lua-dir=/usr/local/opt/[email protected] install tarantoolapp
After this tarantoolapp has been installed to the home dir and create
command run successfully.
from tarantoolapp.
The same problem. Tarantool tries to load module from bin file /usr/local/bin/lua-5.1
instead.
Tarantool version: 1.10.2-1-ge0017ad
error loading module 'tarantoolapp.argparse' from file '/usr/local/bin/lua-5.1':
/usr/local/bin/lua-5.1:1: '=' expected near 'char(7)'
Before this I'd removed all packages and install all again
from tarantoolapp.
Possibility I must clear all created folders and try again
from tarantoolapp.
God blessing! I have solved my problem. luarocks
just want to get a lua version directly into config lua_version = "5.1"
-- LuaRocks configuration
rocks_trees = {
{ name = "user", root = home .. "/.luarocks" };
{ name = "system", root = "/usr/local" };
}
lua_version = "5.1" -- <--- JUST A ONE PARAMETER WHICH MAKE ME FEEL PAIN
lua_interpreter = "lua5.1";
variables = {
LUA_DIR = "/usr/local/opt/[email protected]";
LUA_BINDIR = "/usr/local/opt/[email protected]/bin";
LUA_INCDIR = "/usr/local/opt/[email protected]/include";
LUA_LIBDIR = "/usr/local/opt/[email protected]/lib";
}
from tarantoolapp.
Glad it solved :)
I think, I'll add this config to readme
from tarantoolapp.
Related Issues (15)
- require('tarantool').version >= "1.7.3" is false with 1.10
- Required tarantool version
- File 'templates' not found HOT 2
- Docker: attempt to concatenate field 'lua_extension' (a nil value) HOT 2
- libraries are not enough after creating the package rpm
- [Bug] package.reload() clears all tuples in the second space HOT 2
- tarantoolapp is broken with the last commit
- Update module version from master branch. HOT 1
- Docker
- dep command exit code is 0 even if there is an error HOT 3
- Refactoring: remove Lua path-related duplicate code in **/test.sh and **/init.lua HOT 1
- Implement lock files for tarantoolapp dep
- Config aware tests in templates
- Copy of file instead of symlink on project creation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tarantoolapp.