Hi, I cannot run latest pwct2 in zorinos 18 (latest)

56 views
Skip to first unread message

İbrahim yildiz

unread,
Mar 7, 2026, 8:13:06 PM (7 days ago) Mar 7
to The Ring Programming Language
/pwct2$ ring pwct.ring

Line 77 Error (R24) : Using uninitialized variable: import
In function open_window() in file /usr/local/ring/libraries/objectslib/objects.ring

Called from line 31 In function startenvironment() in file /home/fz/pwct2/src/environment/environment.ring

Called from line 59 in file pwct.ring 

greetings, thanks

İbrahim yildiz

unread,
Mar 7, 2026, 8:15:32 PM (7 days ago) Mar 7
to The Ring Programming Language
note, ring 1.26, pwct2 latest also!

8 Mart 2026 Pazar tarihinde saat 04:13:06 UTC+3 itibarıyla İbrahim yildiz şunları yazdı:
Message has been deleted

Mahmoud Fayed

unread,
Mar 8, 2026, 4:01:42 AM (6 days ago) Mar 8
to The Ring Programming Language
Hello Ibrahim

Ring is supported/tested on the next operating systems

(1) Windows 11
(2) Ubuntu 24
(3) macOS Apple Silicon

Also, we test
* RingQt5 for Android/WebAssembly
* RingLibSDL2 for Android
* RingPico for Raspberry Pi Pico 

Greetings,
Mahmoud

İbrahim yildiz

unread,
Mar 8, 2026, 2:49:20 PM (6 days ago) Mar 8
to The Ring Programming Language

Hello,

Thank you for the reply.

You mentioned that Ring is tested on Ubuntu 24. My system is Zorin OS, which is based on Ubuntu, so it should be compatible. My current system is Zorin OS (Ubuntu-based).

However, when I try to run PWCT2 with Ring 1.26, I get the following error:

ring pwct.ring Line 77 Error (R24) : Using uninitialized variable: import In function open_window() in file /usr/local/ring/libraries/objectslib/objects.ring Called from line 31 In function startenvironment() in file /home/fz/pwct2/src/environment/environment.ring Called from line 59 in file pwct.ring

Both Ring 1.26 and PWCT2 (latest version) are installed.

Could this issue be related to:

  • a missing dependency,

  • an incorrect library path,

  • or a compatibility problem with Zorin OS?

Has anyone successfully run PWCT2 with Ring on Zorin OS or another Ubuntu-based distribution?

Any suggestions on how to fix this would be greatly appreciated.

Thank you.

8 Mart 2026 Pazar tarihinde saat 11:01:42 UTC+3 itibarıyla Mahmoud Fayed şunları yazdı:

İbrahim yildiz

unread,
Mar 8, 2026, 2:53:30 PM (6 days ago) Mar 8
to The Ring Programming Language
lsb_release -a
No LSB modules are available.
Distributor ID: Zorin
Description: Zorin OS 18
Release: 18
Codename: noble

(noble=ubuntu 24.04)
8 Mart 2026 Pazar tarihinde saat 21:49:20 UTC+3 itibarıyla İbrahim yildiz şunları yazdı:

Ilir Liburn

unread,
Mar 8, 2026, 3:04:59 PM (6 days ago) Mar 8
to The Ring Programming Language
Hello Ibrahim,

code in question is

cCode = ""
if packagename() != NULL {
cCode += "import " + packagename()  + nl
cCode += "import System.GUI" + nl
}
cCode += $RingQt_ObjName + " = new " + cClass + nl +
"if isMethod(" + $RingQt_ObjName + ",:start)" + nl +
  $RingQt_ObjName + ".start()" + nl + "ok"
eval(cCode)


It seems input to Eval is incorrect. Are you using executables from the Ring distribution? Maybe you need to build them by yourself?

Try to print content of cCode.

Greetings,
Ilir

Mahmoud Fayed

unread,
Mar 8, 2026, 4:11:37 PM (6 days ago) Mar 8
to The Ring Programming Language
Hello Ilir

>> "It seems input to Eval is incorrect"

If you checked the error message:  Line 77 Error (R24) : Using uninitialized variable: import
As you know (import) is a keyword, so this error message should never happen
It means Ring compiler is treating (import) as an identifier instead of (keyword)

Greetings,
Mahmoud

Ilir Liburn

unread,
Mar 8, 2026, 4:16:04 PM (6 days ago) Mar 8
to The Ring Programming Language
Hello Mahmoud,

normally, yes. But import is used twice, so question is what happened in  packagename()  + nl.

That's why I asked Ibrahim to try to print the content via ? cCode.

Greetings,
Ilir

İbrahim yildiz

unread,
Mar 8, 2026, 6:36:23 PM (6 days ago) Mar 8
to The Ring Programming Language

Hello,

Thank you for the suggestions.

I added ? cCode before eval(cCode) in objects.ring as suggested.

The printed value of cCode is:

DEBUG cCode: import system.gui import System.GUI $RingQt_ObjectsList[Get_Window_Pos(1)][C_RINGQT_OBJECTSLIST_OBJECT] = new environmentcontroller if isMethod($RingQt_ObjectsList[Get_Window_Pos(1)][C_RINGQT_OBJECTSLIST_OBJECT],:start) $RingQt_ObjectsList[Get_Window_Pos(1)][C_RINGQT_OBJECTSLIST_OBJECT].start() ok

Then the program prints the following error:

ring pwct.ring Line 79 Error (R24) : Using uninitialized variable: import In function open_window() in file /usr/local/ring/libraries/objectslib/objects.ring Called from line 31 In function startenvironment() in file /home/fz/pwct2/src/environment/environment.ring Called from line 59 in file pwct.ring

Ring version:

Ring version 1.26.0

Executable location:

which ring /usr/local/bin/ring

My system:
Zorin OS (Ubuntu- 24.04 based distribution)

Please let me know if you need any additional information.

Thank you.


8 Mart 2026 Pazar tarihinde saat 23:16:04 UTC+3 itibarıyla Ilir Liburn şunları yazdı:

Mahmoud Fayed

unread,
Mar 11, 2026, 6:25:13 AM (3 days ago) Mar 11
to The Ring Programming Language
Hello Ibrahim

I don't use Zorin OS, but since Ring works on Ubuntu 24, Try to build Ring from source code


I hope this works for you, if it doesn't work, I don't have a plan to test/support other Linux distributions, so just use Ubuntu.

Greetings,
Mahmoud
Reply all
Reply to author
Forward
0 new messages