Author Topic: Getting "IDE module error" when running qb64.exe from the command prompt.  (Read 954 times)

net2011

  • Jr. Member
  • **
  • Posts: 75
I just got thru downloading and unzipping the latest version of qb64, which I believe is 0953, I am running Windows 7 64 bit and when I type "qb64" or "qb64.exe" at the command prompt and press enter, a black box comes up with a message that says "IDE module error" with an OK button right below the message. It won't let me click on OK or do anything except for click the red X in the upper right hand corner. Thanks for the help.

DSMan195276

  • Hero Member
  • *****
  • Posts: 1996
  • Yes
    • Email
A IDE module error may happen if you try to run QB64 from a directory besides the directory with the 'internal' directory in it. I would check that you're running qb64.exe from the correct directory.

But, since you're running it from the CMD, I would wager that might not be the problem. If so, I would redownload QB64 and see if that works. I have  feeling that something in the internal folder is corrupt (or is missing) and that is leading to the error

Matt
"Cast your cares on the Lord and he will sustain you; he will never let the righteous be shaken" -- Psalm 55:22
QB64 Linux Installer

mcalkins

  • Hero Member
  • *****
  • Posts: 1272
    • qbasicmichael.com
    • Email
First of all, you might check the hash of the download to make sure that it was downloaded right:

qb64v0953-win.7z
size: 30,765,594
sha1: 5e318b4b1b27b95c42ce67b6bb12ee67cd5a5dbf
sha256: 04fe9827407ec56e4d531719530a61b881b4459c553e43b1d1189007f68f6cf9

Did you extract it to a new folder?
Does it work correctly if you run it as administrator?

Regards,
Michael
The QBASIC Forum Community: http://www.network54.com/index/10167 Includes off-topic subforums.
QB64 Off-topic subforum: http://qb64offtopic.freeforums.org/

net2011

  • Jr. Member
  • **
  • Posts: 75
A IDE module error may happen if you try to run QB64 from a directory besides the directory with the 'internal' directory in it. I would check that you're running qb64.exe from the correct directory.

But, since you're running it from the CMD, I would wager that might not be the problem. If so, I would redownload QB64 and see if that works. I have  feeling that something in the internal folder is corrupt (or is missing) and that is leading to the error

Matt

I ran qb64 from c:\users\my computer name\documents\qb64v0953-win\qb64> at the command prompt. I redownloaded qb64, I just clicked on the link, let it download and then chose to overwrite all of the files. Once I was finished I typed qb64 from the directory you see above and I got the same error.

net2011

  • Jr. Member
  • **
  • Posts: 75
First of all, you might check the hash of the download to make sure that it was downloaded right:

qb64v0953-win.7z
size: 30,765,594
sha1: 5e318b4b1b27b95c42ce67b6bb12ee67cd5a5dbf
sha256: 04fe9827407ec56e4d531719530a61b881b4459c553e43b1d1189007f68f6cf9

Did you extract it to a new folder?
Does it work correctly if you run it as administrator?

Regards,
Michael
I don't spend a whole lot of time programming so I don't know what the hash of the download is or how to check it. However I do know I extracted it to c:\users\my computer name\documents\qb64v0953-win. Yes I tried to run it as administrator and I got the same error. My CMD is also running as admin.

mcalkins

  • Hero Member
  • *****
  • Posts: 1272
    • qbasicmichael.com
    • Email
You might be exceeding the maximum path length. (I believe path lengths, under some circumstances, are limited to 260 characters.)

Try extracting it to:

c:\qb64

or some short path like that.

As for hashes:

http://en.wikipedia.org/wiki/SHA-1
http://en.wikipedia.org/wiki/SHA-2

And they can be verified with the sha1sum.exe and sha256sum.exe programs that come with GNU Privacy Guard.

Regards,
Michael
The QBASIC Forum Community: http://www.network54.com/index/10167 Includes off-topic subforums.
QB64 Off-topic subforum: http://qb64offtopic.freeforums.org/

net2011

  • Jr. Member
  • **
  • Posts: 75
You might be exceeding the maximum path length. (I believe path lengths, under some circumstances, are limited to 260 characters.)

Try extracting it to:

c:\qb64

or some short path like that.

As for hashes:

http://en.wikipedia.org/wiki/SHA-1
http://en.wikipedia.org/wiki/SHA-2

And they can be verified with the sha1sum.exe and sha256sum.exe programs that come with GNU Privacy Guard.

Regards,
Michael
I downloaded another copy and extracted it to C:\qb64 and I got the same error.  ???

mcalkins

  • Hero Member
  • *****
  • Posts: 1272
    • qbasicmichael.com
    • Email
You might try compiling a program from the command line, like so:

delme.bas
Code: [Select]
PRINT "Hello, world."
END

qb64 -x delme.bas

If that doesn't work, you might try testing the C++ compiler by itself...

delme.cpp
Code: [Select]
#include <stdio.h>

int main(){
 printf("Hello, world.\n");
 return 0;
}

internal\c\bin\g++ -Wl,-s delme.cpp -o delme.exe

I'm running out of guesses, so I'm still wondering if it has to do with file permissions, even though you are running as admin. ???

Regards,
Michael
The QBASIC Forum Community: http://www.network54.com/index/10167 Includes off-topic subforums.
QB64 Off-topic subforum: http://qb64offtopic.freeforums.org/

net2011

  • Jr. Member
  • **
  • Posts: 75
You might try compiling a program from the command line, like so:

delme.bas
Code: [Select]
PRINT "Hello, world."
END

qb64 -x delme.bas

If that doesn't work, you might try testing the C++ compiler by itself...

delme.cpp
Code: [Select]
#include <stdio.h>

int main(){
 printf("Hello, world.\n");
 return 0;
}

internal\c\bin\g++ -Wl,-s delme.cpp -o delme.exe

I'm running out of guesses, so I'm still wondering if it has to do with file permissions, even though you are running as admin. ???

Regards,
Michael
Thanks for your help so far. I was able to successfully compile a program called hello_world.bas
Code: [Select]
CLS

PRINT "Hello world!"

END
and I was also able to successfully run hello_world.exe from the command prompt, however, I am still getting "IDE module error" when trying to run qb64 from the command prompt.

DSMan195276

  • Hero Member
  • *****
  • Posts: 1996
  • Yes
    • Email
I remember Windows 7 64-bit having a issue with the file dialog, so it's possible that another issue (specific to Win 7 64-bit) came-up.

A IDE module error is a odd one though, since it indicates that the program did run (And thus, the SDL .DLL files were found.) but that something happened not allowing QB64 to fully start (Usually a problem with the internal folder from my experience). The fact that a hello world program successfully compiled and ran from the same CMD that won't run QB64 only goes to confirm this suspicion. I don't have a 64-bit copy of Windows 7 or else I'd try it out and see if I could get it working.

Wish I had something more useful to post ;) ,

Matt
"Cast your cares on the Lord and he will sustain you; he will never let the righteous be shaken" -- Psalm 55:22
QB64 Linux Installer

SkyCharger001

  • Hero Member
  • *****
  • Posts: 1597
do you maintain the paths when you extract?

OlDosLover

  • Hero Member
  • *****
  • Posts: 3907
  • OlDosLover
    • Email
Hi all,
    Why not get him to copy the main QB64 folder (within that c:\users\my computer name\documents\qb64v0953-win ) onto the root of his drive and test that complete copy?

Galleon

  • Administrator
  • Hero Member
  • *****
  • Posts: 4675
  • QB Forever
    • Email
Hi,

After getting the IDE error, immediately open the file '\internal\temp\ideerror.txt' and tell me what it contains.

Thanks.

PS. Is this problem specific to V0.953?
Something old... Something new... Something borrowed... Something blue...

net2011

  • Jr. Member
  • **
  • Posts: 75
do you maintain the paths when you extract?
I usually do.

net2011

  • Jr. Member
  • **
  • Posts: 75
Hi all,
    Why not get him to copy the main QB64 folder (within that c:\users\my computer name\documents\qb64v0953-win ) onto the root of his drive and test that complete copy?
I tried that also, still the same error.