Git Product home page Git Product logo

Comments (16)

igorcoding avatar igorcoding commented on July 18, 2024 1

You should install lua 5.1. Other lua versions are not supported by Tarantool.

from tarantoolapp.

v-kryuchkov avatar v-kryuchkov commented on July 18, 2024 1

luarocks --lua-dir=/usr/local/opt/[email protected] install tarantoolapp

Is solved for me

from tarantoolapp.

shapel avatar shapel commented on July 18, 2024

You are right!

from tarantoolapp.

ArturAralin avatar ArturAralin commented on July 18, 2024

@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.

igorcoding avatar igorcoding commented on July 18, 2024

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.

ArturAralin avatar ArturAralin commented on July 18, 2024

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.

ArturAralin avatar ArturAralin commented on July 18, 2024

I'd look to brew formulae (https://formulae.brew.sh/api/formula/luarocks.json)
inside the dependencies:

dependencies: [
   "[email protected]",
  "lua"
],

from tarantoolapp.

igorcoding avatar igorcoding commented on July 18, 2024

But still - have you reinstalled this module (tarantoolapp)?

from tarantoolapp.

ArturAralin avatar ArturAralin commented on July 18, 2024

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.

igorcoding avatar igorcoding commented on July 18, 2024

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.

ArturAralin avatar ArturAralin commented on July 18, 2024

@igorcoding this sad((
My PM will be crying and possibly will be scream abusive words.

p.s. SOS 👀

from tarantoolapp.

igorcoding avatar igorcoding commented on July 18, 2024

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.

ArturAralin avatar ArturAralin commented on July 18, 2024

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.

ArturAralin avatar ArturAralin commented on July 18, 2024

Possibility I must clear all created folders and try again

from tarantoolapp.

ArturAralin avatar ArturAralin commented on July 18, 2024

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.

igorcoding avatar igorcoding commented on July 18, 2024

Glad it solved :)
I think, I'll add this config to readme

from tarantoolapp.

Related Issues (15)

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.