Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'eressea.path' not found #947

Open
Puttt opened this issue Oct 2, 2021 · 3 comments
Open

'eressea.path' not found #947

Puttt opened this issue Oct 2, 2021 · 3 comments
Assignees

Comments

@Puttt
Copy link

Puttt commented Oct 2, 2021

Moin Enno!

I'd rather send you an mail than open an issue, but i can't figure out your mailadress.

The command './eressea -t 1 run-turn.lua' (after a smooth setup) generates this error:
ERROR: Lua call failed.
run-turn.lua:1: module 'eressea.path' not found:
no field package.preload['eressea.path']
Did I miss anything during the installation?

@ennorehling
Copy link
Member

Opening an issue is a fine way to get in touch about problems, and it might help others who are struggling with similar problems. Let's try that for now. If you absolutely need more direct support, find me on our Discord at https://discord.gg/KT5Fffh

That message appears when the server's scripts are not in the LUA_PATH environment variable. Assuming you have installed Eressea in $HOME/eressea, try running this first:

eval "$(luarocks path)"
export LUA_PATH="${HOME}/eressea/server/scripts/?.lua;$LUA_PATH"

The cron script in ../server/bin/run-eressea.cron does the same thing.

@ennorehling
Copy link
Member

Note to myself: This should be part of the setup instructions somehow, I might make the script print some instructions about to add this to .bash_aliases

@ennorehling ennorehling self-assigned this Oct 4, 2021
@Puttt
Copy link
Author

Puttt commented Oct 5, 2021

This works, thank you. Since I'm struggling with the cron script for now, I wrote a little shell script that helps me out. As soon as I have a little more time, I will try to improve the documentation a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants