Sharing: "The specified module could not be found"

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
Stanca
Newbie
Posts: 4
Joined: Mon Nov 28, 2011 9:36 am
Contact:

Sharing: "The specified module could not be found"

#1 Post by Stanca » Mon Nov 28, 2011 9:42 am

I created a Ren'Py game, and am now trying to share it with friends.
Two friends have the same problem. When they click on the game.exe, they get messages saying:

"The specified module could not be found"
"LoadLibrary(pythondll) failed."

For myself and another friend, it's working fine.
All three are running windows.
Is there something I should change with my game, or advice I can give them?

All help is greatly appreciated!

User avatar
Aleema
Lemma-Class Veteran
Posts: 2677
Joined: Fri May 23, 2008 2:11 pm
Organization: happyB
Tumblr: happybackwards
Contact:

Re: Sharing: "The specified module could not be found"

#2 Post by Aleema » Mon Nov 28, 2011 1:03 pm


Stanca
Newbie
Posts: 4
Joined: Mon Nov 28, 2011 9:36 am
Contact:

Re: Sharing: "The specified module could not be found"

#3 Post by Stanca » Mon Nov 28, 2011 1:43 pm

Aleema wrote:Does this thread help at all? http://lemmasoft.renai.us/forums/viewto ... =13&t=1641
Super helpful. This is exactly the problem I am having.
I'll try this out and see what happens.
Thank you! : D

Stanca
Newbie
Posts: 4
Joined: Mon Nov 28, 2011 9:36 am
Contact:

Re: Sharing: "The specified module could not be found"

#4 Post by Stanca » Mon Nov 28, 2011 5:07 pm

It was the same situation and error messages, but the solution did not work. There was no clicking and dragging of files involved, so I can't tell them to not click and drag.
Any other ideas?

User avatar
herenvardo
Veteran
Posts: 359
Joined: Sat Feb 25, 2006 11:09 am
Location: Sant Cugat del Vallès (Barcelona, Spain)
Contact:

Re: Sharing: "The specified module could not be found"

#5 Post by herenvardo » Tue Nov 29, 2011 6:51 am

Did your friends just double-click the .exe from within the zip archive?
For things to work, they should extract the whole contents of the archive to a directory, and then run the .exe from that directory.

If this is the case, tell your friends to look for an "Unpack", "Unpack all", "Extract all" or similar command / button / menu entry (the exact wording, appearance, and location may vary depending on what software they are using to open the archive).
I have failed to meet my deadlines so many times I'm not announcing my projects anymore. Whatever I'm working on, it'll be released when it is ready :P

Stanca
Newbie
Posts: 4
Joined: Mon Nov 28, 2011 9:36 am
Contact:

Re: Sharing: "The specified module could not be found"

#6 Post by Stanca » Tue Nov 29, 2011 12:55 pm

herenvardo wrote:Did your friends just double-click the .exe from within the zip archive?
For things to work, they should extract the whole contents of the archive to a directory, and then run the .exe from that directory.

If this is the case, tell your friends to look for an "Unpack", "Unpack all", "Extract all" or similar command / button / menu entry (the exact wording, appearance, and location may vary depending on what software they are using to open the archive).
Yes, they did unpack it.
Here's a picture of the unpacked file list taken from her screen:
http://oi41.tinypic.com/i422s1.jpg

We tried clicking on the icon Tal Test, instead of Tal Test.exe.
That didn't work either.

User avatar
DragoonHP
Miko-Class Veteran
Posts: 745
Joined: Tue Jun 22, 2010 12:54 am
Completed: Christmas
IRC Nick: DragoonHP
Location: Zion Island, Solario
Contact:

Re: Sharing: "The specified module could not be found"

#7 Post by DragoonHP » Tue Nov 29, 2011 1:16 pm

I am pretty sure there is supposed to be a lib and renpy folder too...

User avatar
TrickWithAKnife
Eileen-Class Veteran
Posts: 1261
Joined: Fri Mar 16, 2012 11:38 am
Projects: Rika
Organization: Solo (for now)
IRC Nick: Trick
Location: Tokyo, Japan
Contact:

Re: Sharing: "The specified module could not be found"

#8 Post by TrickWithAKnife » Sat Mar 17, 2012 3:34 am

I was having this problem too.

After a bit of testing, I realised it was a directory name problem.
Originally I was running the game out of a directory on the desktop called "日本語 game". Once I changed it to "Japanese game" it worked perfectly.

Hope this helps.
"We must teach them through the tools with which they are comfortable."
The #renpy IRC channel is a great place to chat with other devs. Due to the nature of IRC and timezone differences, people probably won't reply right away.

If you'd like to view or use any code from my VN PM me. All code is freely available without restriction, but also without warranty or (much) support.

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: Sharing: "The specified module could not be found"

#9 Post by nyaatrap » Sat Mar 17, 2012 7:09 am

haha, that'll be right. I never use 2 bytes characters on folder/file names because they gave me tremendous errors in the past. Even the "desktop" directory failed to run some programs sometime on the Japanese windows XP.

User avatar
AxemRed
Veteran
Posts: 482
Joined: Sun Jan 09, 2011 7:10 am
Contact:

Re: Sharing: "The specified module could not be found"

#10 Post by AxemRed » Sat Mar 17, 2012 7:55 am

Technically, all characters are 2 bytes for Windows/NTFS.

If you want filenames to work on any system:
  • Use only ASCII characters -- preferably only [A-Za-z0-9._-]
  • Don't use spaces
  • Don't count on case-insensitivity

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: Sharing: "The specified module could not be found"

#11 Post by nyaatrap » Sat Mar 17, 2012 7:58 am

Then the problem must be ASCII not the 2 bytes. Thanks I got learned now :)

User avatar
PyTom
Ren'Py Creator
Posts: 15454
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Sharing: "The specified module could not be found"

#12 Post by PyTom » Sat Mar 17, 2012 2:23 pm

There's a lot of weirdness with non-ASCII filenames. For example, the zip format doesn't define an encoding for filenames. If you zip up a file like 日本語.txt, and unpack it on a system with (say) a Dutch encoding, you'll get something completely different.

Ren'Py requires ASCII files for this reason. It _should_ work in all cases if you place it in a directory like:

c:\日本語\mygame-1.0\

at least with the new Ren'Py. It's a bug if it doesn't.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
PyTom
Ren'Py Creator
Posts: 15454
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Sharing: "The specified module could not be found"

#13 Post by PyTom » Sat Mar 17, 2012 2:23 pm

There's a lot of weirdness with non-ASCII filenames. For example, the zip format doesn't define an encoding for filenames. If you zip up a file like 日本語.txt, and unpack it on a system with (say) a Dutch encoding, you'll get something completely different.

Ren'Py requires ASCII files for this reason. It _should_ work in all cases if you place it in a directory like:

c:\日本語\mygame-1.0\

at least with the new Ren'Py. It's a bug if it doesn't.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: No registered users