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

can't initialise pycraft_mod #1

Open
gruel opened this issue Mar 5, 2018 · 6 comments
Open

can't initialise pycraft_mod #1

gruel opened this issue Mar 5, 2018 · 6 comments

Comments

@gruel
Copy link

gruel commented Mar 5, 2018

I am sorry to open an issue on pycraft_lib since it concern more pycraft_mod but the issues are not open there.

I followed the instruction you provided for install pycraft for minetest but I can start the game, I got an initialisation error. Since I don't know anything in lua it is difficult for me to solve it.

Can you help, please? I would love to play with it with my son.

The error message is:

2018-03-05 11:52:10: ERROR[Main]: ModError: Failed to load and run script from /home/gruel/.minetest/mods/pycraft_mod/init.lua:
2018-03-05 11:52:10: ERROR[Main]: /home/gruel/.minetest/mods/pycraft_mod/init.lua:15: attempt to index global 'ie' (a nil value)
2018-03-05 11:52:10: ERROR[Main]: stack traceback:
2018-03-05 11:52:10: ERROR[Main]:       /home/gruel/.minetest/mods/pycraft_mod/init.lua:15: in main chunk
2018-03-05 11:52:10: ERROR[Main]: Check debug.txt for details.


(There are nothing more in the debug.txt file)

PS: thanks for the mod btw

@acaramia
Copy link
Collaborator

acaramia commented Mar 6, 2018

Hi Gruel,
are you working on linux or mac?
thanks

@gruel
Copy link
Author

gruel commented Mar 6, 2018 via email

@shivamchhapola
Copy link

same prob does anyone have solution?

@spe-nsi
Copy link

spe-nsi commented Dec 22, 2019

I had the same problem, it seems to be relative to the security.
I've tried to put :
secure.enable_security = true
secure.trusted_mods = pycraft
in my ~/.minetest/minetest.conf file
but it didn't work.
Finally, I had to put :
secure.enable_security = false
and it worked but of course, it's not safe.

@pintman
Copy link

pintman commented Jan 20, 2020

Thanks @Iyeb This setting works for me. What is it doing? And is this is a hack or a needed setting?

@spe-nsi
Copy link

spe-nsi commented Jan 26, 2020

Like I said, the configuration of minetest doesn't allow any mod to make anything with your computer so, normally you have to put something like
secure.trusted_mods = pycraft
to tell minetest to allow the pycraft mod to do some operations (like manipulating files I guess).
But with me, it didn't work so I had to disable the security which is not safe if you use minetest with some mods that you found in a weird place... I saw comments telling that we can rely on the mods that we can find in the minetest forum...

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

5 participants