Can't read /var/mail/__future__

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Triority
Regular
Posts: 134
Joined: Fri Jul 20, 2018 1:28 pm
Completed: Welcome To... Chichester 0, 1,2 OVN 1, OVN 2, OVN 3, No Regrets For The Future
Projects: Welcome To... Chichester series
Organization: Triority
itch: triority
Location: England
Contact:

Can't read /var/mail/__future__

#1 Post by Triority » Sat Apr 09, 2022 5:23 pm

When starting a Linux game, I get this error message (followed by three import: command not found and then a syntax error).

The my import statements are :

$ import time
$ import math
$ import datetime
$ import os

Any idea how to fix the error ?

jeffster
Regular
Posts: 123
Joined: Wed Feb 03, 2021 9:55 pm
Contact:

Re: Can't read /var/mail/__future__

#2 Post by jeffster » Sat Apr 09, 2022 5:45 pm

It looks like some python code tried to load some modules but didn't succeed. Look which exactly file produces that error and what's inside that file. Without details I can't say what's wrong.

User avatar
Triority
Regular
Posts: 134
Joined: Fri Jul 20, 2018 1:28 pm
Completed: Welcome To... Chichester 0, 1,2 OVN 1, OVN 2, OVN 3, No Regrets For The Future
Projects: Welcome To... Chichester series
Organization: Triority
itch: triority
Location: England
Contact:

Re: Can't read /var/mail/__future__

#3 Post by Triority » Sat Apr 09, 2022 5:50 pm

All Terminal states is that an import failed and that there is a syntax error with a "(" later on

Best thing is to get rid of the import statements

Ahh - even with imports removed, it still happens
Last edited by Triority on Sat Apr 09, 2022 6:17 pm, edited 1 time in total.

jeffster
Regular
Posts: 123
Joined: Wed Feb 03, 2021 9:55 pm
Contact:

Re: Can't read /var/mail/__future__

#4 Post by jeffster » Sat Apr 09, 2022 6:14 pm

The problem is the code needs those imports in order to do the things it tries to do.

So if you can't figure out how to repair the problem (looking in the problematic file) there is nothing to do but report the bug to the developer.

User avatar
Triority
Regular
Posts: 134
Joined: Fri Jul 20, 2018 1:28 pm
Completed: Welcome To... Chichester 0, 1,2 OVN 1, OVN 2, OVN 3, No Regrets For The Future
Projects: Welcome To... Chichester series
Organization: Triority
itch: triority
Location: England
Contact:

Re: Can't read /var/mail/__future__

#5 Post by Triority » Sat Apr 09, 2022 6:20 pm

The odd thing is the exact same imports work with other problems, so I suspect this project is corrupt or something like that.

Ah - had a look at the resulting .py and it's probably the imports there that are the problem.

I'll try running it on a Linux machine and see how it goes there

jeffster
Regular
Posts: 123
Joined: Wed Feb 03, 2021 9:55 pm
Contact:

Re: Can't read /var/mail/__future__

#6 Post by jeffster » Sat Apr 09, 2022 8:02 pm

> I'll try running it on a Linux machine and see how it goes there

LOL... Are you saying you tried to run a Linux game on Windows? :D

User avatar
Triority
Regular
Posts: 134
Joined: Fri Jul 20, 2018 1:28 pm
Completed: Welcome To... Chichester 0, 1,2 OVN 1, OVN 2, OVN 3, No Regrets For The Future
Projects: Welcome To... Chichester series
Organization: Triority
itch: triority
Location: England
Contact:

Re: Can't read /var/mail/__future__

#7 Post by Triority » Sun Apr 10, 2022 1:12 am

No, but compiling and transfering to Steam, just to find out it doesn't work is time consuming.

Plus, I need to check to see if the same thing happens natively.

Not sure what it would if it or didn't work like that, though

User avatar
Triority
Regular
Posts: 134
Joined: Fri Jul 20, 2018 1:28 pm
Completed: Welcome To... Chichester 0, 1,2 OVN 1, OVN 2, OVN 3, No Regrets For The Future
Projects: Welcome To... Chichester series
Organization: Triority
itch: triority
Location: England
Contact:

Re: Can't read /var/mail/__future__

#8 Post by Triority » Sun Apr 10, 2022 7:11 am

Got it sorted. Ended up compiling and packaging it in Linux and then uploading to Steam via Windows.

The interesting thing was, the game worked in it's own directory, but didn't when moved over to the Steam directory - until everything everything was deleted and then copied again. I suspect one of the Linux files ended up being corrupted or Steamworks wasn't recognising new files for whatever reason

Post Reply

Who is online

Users browsing this forum: enaielei