From Christoph.Thiede at student.hpi.uni-potsdam.de Fri May 7 16:13:15 2021 From: Christoph.Thiede at student.hpi.uni-potsdam.de (Thiede, Christoph) Date: Fri, 7 May 2021 16:13:15 +0000 Subject: [Newbies] Send super to trait? Message-ID: <1c59fae33afe4a87926ad81d0aac896f@student.hpi.uni-potsdam.de> Hi all, I just was trying to activate a super method from a trait but got a DNU: MyTrait >> #foo ^0 Object subclass: MyObject uses: MyTrait. MyObject >> #foo ^super foo + 1 Is this not how traits are expected to work? Or is there any other way to reuse the default logic specified in the trait? Do I need to return to traditional inheritance in order to achieve this? Thanks in advance! Best, Christoph -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcel.taeumel at hpi.de Fri May 7 17:21:58 2021 From: marcel.taeumel at hpi.de (Marcel Taeumel) Date: Fri, 7 May 2021 19:21:58 +0200 Subject: [Newbies] Send super to trait? In-Reply-To: <1c59fae33afe4a87926ad81d0aac896f@student.hpi.uni-potsdam.de> References: <1c59fae33afe4a87926ad81d0aac896f@student.hpi.uni-potsdam.de> Message-ID: Hi Christoph, traits are woven into the class where you use them. This means that you can actually overwrite the included traits as you did in your example. And Object DNU #foo. That's expecetd. :-) Best, Marcel Am 07.05.2021 18:13:24 schrieb Thiede, Christoph : Hi all, I just was trying to activate a super method from a trait but got a DNU: MyTrait >> #foo ^0 Object subclass: MyObject uses: MyTrait. MyObject >> #foo ^super foo + 1 Is this not how traits are expected to work? Or is there any other way to reuse the default logic specified in the trait? Do I need to return to traditional inheritance in order to achieve this? Thanks in advance! Best, Christoph [http://www.hpi.de/] -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christoph.Thiede at student.hpi.uni-potsdam.de Mon May 17 10:21:25 2021 From: Christoph.Thiede at student.hpi.uni-potsdam.de (Thiede, Christoph) Date: Mon, 17 May 2021 10:21:25 +0000 Subject: [Newbies] Send super to trait? In-Reply-To: References: <1c59fae33afe4a87926ad81d0aac896f@student.hpi.uni-potsdam.de>, Message-ID: <87d72813b6b64efda9fedf908780ae22@student.hpi.uni-potsdam.de> Hi Marcel, thank you for the clarification. In this case, I will have to rethink when traits are actually useful ... But eventually, I will find a convincing usage example someday. :-) Best, Christoph ________________________________ Von: Beginners im Auftrag von Taeumel, Marcel Gesendet: Freitag, 7. Mai 2021 19:21:58 An: beginners at lists.squeakfoundation.org Betreff: Re: [Newbies] Send super to trait? Hi Christoph, traits are woven into the class where you use them. This means that you can actually overwrite the included traits as you did in your example. And Object DNU #foo. That's expecetd. :-) Best, Marcel Am 07.05.2021 18:13:24 schrieb Thiede, Christoph : Hi all, I just was trying to activate a super method from a trait but got a DNU: MyTrait >> #foo ^0 Object subclass: MyObject uses: MyTrait. MyObject >> #foo ^super foo + 1 Is this not how traits are expected to work? Or is there any other way to reuse the default logic specified in the trait? Do I need to return to traditional inheritance in order to achieve this? Thanks in advance! Best, Christoph -------------- next part -------------- An HTML attachment was scrubbed... URL: From stes at telenet.be Thu May 27 09:45:05 2021 From: stes at telenet.be (stes@PANDORA.BE) Date: Thu, 27 May 2021 11:45:05 +0200 (CEST) Subject: [Newbies] TelegramSmalltalkBot Message-ID: <2059028195.195579124.1622108705341.JavaMail.zimbra@telenet.be> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi, I've seen a demonstration by Christoph Thiede of a TelegramSmalltalkBot. I'm using OpenIndiana (UNIX) with the cog-spur VM using Squeak6.0alpha-20532 64bit. #pkg list -v cog-spur runtime/smalltalk/cog-spur at 5.0.2957,5.11-2020.0.1.1 I don't know whether I understood the demo correctly, but my understanding was that is is possible to send Telegram messages from Squeak. I'm trying to find out whether this works on OpenIndiana. Following instructions at 'Self hosting the bot' at: https://github.com/LinqLover/TelegramSmalltalkBot First of all, step 1 works (I think it works, see screenshot): Metacello new baseline: 'TelegramSmalltalkBot'; githubUser: 'LinqLover' project: 'TelegramSmalltalkBot' path: 'src'; load. As a remark, because I'm a total absolute beginner with this, I had to figure out "Install the latest Trunk updates in your image": The way to do this seems to be: a) in the Squeak menu update Squeak this upgraded my Squeak6.0alpha-20532 to Squeak6.0alpa-20533 64bit from a Workspace perhaps: TheWorldMainDockingBar updateSqueak. or MCMcmUpdater updateFromServer. b) run in a workspace : Installer ensureRecentMetacello I'm just adding this as a remark because without the ensureRecentMetacello, the instructions given complain 'no selector githubUser:project:path:'. I think this because it is assumed that you first run ensureRecentMetacello, or otherwise have Metacello loaded in your image. Because I'm unfamiliar with Metacello, I'm just adding this remark. Anyway Metacello seems to load, and then it proceeds loading SimulationStudio-Base-cypress and finally TelegramSmalltalkBot-Tests-cypress. My question now is how to proceed. Can I run some tests at this point to check that the Metacello install of TelegramSmalltalkBot was succesful ? Thanks! David Stes -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJgr2m+AAoJENdFDkXGiciz8mUIAKktQIhOmIEURfTkAL6c1c7l l27FK1v7b60jolw+TnW9XOPtYbSHjOpBSiJMxfUWjXOy2GO8QSrrqCUAGL0f3Bcy ihNgyTeDe+faHItoIoXjb8wGzb6MFE8rLuB0STe6hPBhBrJV+RBPchx0xqKmovAA I3V0pX1xEO9Kf2cPX+R0F1Yfu9ruKtxVFqT5RnlRAl0AKgCuOBxBHqOgZkkfribi y5Ir003P4FahFFkpKHalAjf76XwVpKVh9mmAAneG/LzuStKSPNErB/98/HOp0Rj/ NTR/vyw731QS/3BzZnZAR9dVz/MCbDPvaXO9W1Hp03wyGf5s7BKlqH8bTWfJvpw= =WCAJ -----END PGP SIGNATURE----- From stes at telenet.be Thu May 27 09:46:27 2021 From: stes at telenet.be (stes@PANDORA.BE) Date: Thu, 27 May 2021 11:46:27 +0200 (CEST) Subject: [Newbies] OI screenshot Telegram install In-Reply-To: <2059028195.195579124.1622108705341.JavaMail.zimbra@telenet.be> References: <2059028195.195579124.1622108705341.JavaMail.zimbra@telenet.be> Message-ID: <105069529.195582663.1622108787973.JavaMail.zimbra@telenet.be> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi, I've seen a demonstration by Christoph Thiede of a TelegramSmalltalkBot. I'm using OpenIndiana (UNIX) with the cog-spur VM using Squeak6.0alpha-20532 64bit. #pkg list -v cog-spur runtime/smalltalk/cog-spur at 5.0.2957,5.11-2020.0.1.1 I don't know whether I understood the demo correctly, but my understanding was that is is possible to send Telegram messages from Squeak. I'm trying to find out whether this works on OpenIndiana. Following instructions at 'Self hosting the bot' at: https://github.com/LinqLover/TelegramSmalltalkBot First of all, step 1 works (I think it works, see screenshot): Metacello new baseline: 'TelegramSmalltalkBot'; githubUser: 'LinqLover' project: 'TelegramSmalltalkBot' path: 'src'; load. As a remark, because I'm a total absolute beginner with this, I had to figure out "Install the latest Trunk updates in your image": The way to do this seems to be: a) in the Squeak menu update Squeak this upgraded my Squeak6.0alpha-20532 to Squeak6.0alpa-20533 64bit from a Workspace perhaps: TheWorldMainDockingBar updateSqueak. or MCMcmUpdater updateFromServer. b) run in a workspace : Installer ensureRecentMetacello I'm just adding this as a remark because without the ensureRecentMetacello, the instructions given complain 'no selector githubUser:project:path:'. I think this because it is assumed that you first run ensureRecentMetacello, or otherwise have Metacello loaded in your image. Because I'm unfamiliar with Metacello, I'm just adding this remark. Anyway Metacello seems to load, and then it proceeds loading SimulationStudio-Base-cypress and finally TelegramSmalltalkBot-Tests-cypress. My question now is how to proceed. Can I run some tests at this point to check that the Metacello install of TelegramSmalltalkBot was succesful ? Thanks! David Stes -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJgr2m+AAoJENdFDkXGiciz8mUIAKktQIhOmIEURfTkAL6c1c7l l27FK1v7b60jolw+TnW9XOPtYbSHjOpBSiJMxfUWjXOy2GO8QSrrqCUAGL0f3Bcy ihNgyTeDe+faHItoIoXjb8wGzb6MFE8rLuB0STe6hPBhBrJV+RBPchx0xqKmovAA I3V0pX1xEO9Kf2cPX+R0F1Yfu9ruKtxVFqT5RnlRAl0AKgCuOBxBHqOgZkkfribi y5Ir003P4FahFFkpKHalAjf76XwVpKVh9mmAAneG/LzuStKSPNErB/98/HOp0Rj/ NTR/vyw731QS/3BzZnZAR9dVz/MCbDPvaXO9W1Hp03wyGf5s7BKlqH8bTWfJvpw= =WCAJ -----END PGP SIGNATURE----- -------------- next part -------------- A non-text attachment was scrubbed... Name: oi-telegramstbot-install.png Type: image/png Size: 174803 bytes Desc: not available URL: From christoph.thiede at student.hpi.uni-potsdam.de Thu May 27 10:43:04 2021 From: christoph.thiede at student.hpi.uni-potsdam.de (christoph.thiede at student.hpi.uni-potsdam.de) Date: Thu, 27 May 2021 12:43:04 +0200 Subject: [Newbies] OI screenshot Telegram install In-Reply-To: <105069529.195582663.1622108787973.JavaMail.zimbra@telenet.be> References: <2059028195.195579124.1622108705341.JavaMail.zimbra@telenet.be>, <105069529.195582663.1622108787973.JavaMail.zimbra@telenet.be> Message-ID: Hi David, it is great to hear that you are interested in my bot! :-) From your description you did everything right so far, now you would need to do the remaining steps from the self-hosting instructions: 2. Send a Telegram message to @BotFather (https://t.me/BotFather) to register your very own bot. He will send you a secret bot token. 3. To start a bot instance, open a Workspace and do the following: bot := TelegramSmalltalkBot withToken: ''. bot spawnNewProcess. Now your bot instance should be running and should be able to send it a message from your Telegram account! As a reminder, if you do not want that everyone from all over the world has access to your bot, you should define an allow-list of chat IDs. You can do this after you have send at least one message to your bot instance. After that, the simplest way to define the allow-list is to run the following in the same workspace window: chatIds := (bot instVarNamed: 'sessions') keys. Smalltalk at: #TBTestBotChatIds put: chatIds. If you have any further questions, please feel free to ask them. :-) Best, Christoph > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > > > Hi, > > I've seen a demonstration by Christoph Thiede of a TelegramSmalltalkBot. > > I'm using OpenIndiana (UNIX) with the cog-spur VM using Squeak6.0alpha-20532 64bit. > > #pkg list -v cog-spur > runtime/smalltalk/cog-spur at 5.0.2957,5.11-2020.0.1.1 > > I don't know whether I understood the demo correctly, but my > understanding was that is is possible to send Telegram messages from Squeak. > > I'm trying to find out whether this works on OpenIndiana. > > Following instructions at 'Self hosting the bot' at: > > https://github.com/LinqLover/TelegramSmalltalkBot > > First of all, step 1 works (I think it works, see screenshot): > > Metacello new > baseline: 'TelegramSmalltalkBot'; > githubUser: 'LinqLover' project: 'TelegramSmalltalkBot' path: 'src'; > load. > > As a remark, because I'm a total absolute beginner with this, > I had to figure out "Install the latest Trunk updates in your image": > > The way to do this seems to be: > > a) in the Squeak menu update Squeak > > this upgraded my Squeak6.0alpha-20532 to Squeak6.0alpa-20533 64bit > > from a Workspace perhaps: > > TheWorldMainDockingBar updateSqueak. > or > MCMcmUpdater updateFromServer. > > b) run in a workspace : > > Installer ensureRecentMetacello > > I'm just adding this as a remark because without the ensureRecentMetacello, > the instructions given complain 'no selector githubUser:project:path:'. > > I think this because it is assumed that you first run ensureRecentMetacello, > or otherwise have Metacello loaded in your image. > > Because I'm unfamiliar with Metacello, I'm just adding this remark. > > Anyway Metacello seems to load, and then it proceeds loading > SimulationStudio-Base-cypress and finally TelegramSmalltalkBot-Tests-cypress. > > My question now is how to proceed. > > Can I run some tests at this point to check that the Metacello install of > TelegramSmalltalkBot was succesful ? > > Thanks! > David Stes > > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2 > > iQEcBAEBCAAGBQJgr2m+AAoJENdFDkXGiciz8mUIAKktQIhOmIEURfTkAL6c1c7l > l27FK1v7b60jolw+TnW9XOPtYbSHjOpBSiJMxfUWjXOy2GO8QSrrqCUAGL0f3Bcy > ihNgyTeDe+faHItoIoXjb8wGzb6MFE8rLuB0STe6hPBhBrJV+RBPchx0xqKmovAA > I3V0pX1xEO9Kf2cPX+R0F1Yfu9ruKtxVFqT5RnlRAl0AKgCuOBxBHqOgZkkfribi > y5Ir003P4FahFFkpKHalAjf76XwVpKVh9mmAAneG/LzuStKSPNErB/98/HOp0Rj/ > NTR/vyw731QS/3BzZnZAR9dVz/MCbDPvaXO9W1Hp03wyGf5s7BKlqH8bTWfJvpw= > =WCAJ > -----END PGP SIGNATURE----- > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: oi-telegramstbot-install.png > Type: image/png > Size: 174803 bytes > Desc: not available > URL: > > From stes at telenet.be Thu May 27 18:27:16 2021 From: stes at telenet.be (stes@PANDORA.BE) Date: Thu, 27 May 2021 20:27:16 +0200 (CEST) Subject: [Newbies] OI screenshot Telegram install In-Reply-To: References: <2059028195.195579124.1622108705341.JavaMail.zimbra@telenet.be> <105069529.195582663.1622108787973.JavaMail.zimbra@telenet.be> Message-ID: <2118327795.714365.1622140036754.JavaMail.zimbra@telenet.be> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi, I created a bot and user on my phone, and obtained a token. When I use that token in Squeak, I'm under the impression that it connects to api.telegram.org and that it accepts the token (although I'm not sure, is there a way to check?), unfortunately then I get a debugger with : [] in SecureSocketStream>>receiveData Socket>>waitForDataFor:ifClosed:ifTimedOut: SecureSocketStream>>receiveData SecureSocketStream>>upToAll:limit: SecureSocketStream>>upToAll: WebResponse>>readFrom: WebClient>>sendRequest:contentBlock: WebClient>>sendRequest:content:size: WebClient>>sendRequest: WebClient>>httpGet:do: ConnectionTimedOut: Data receive timed out. So it's not working but this can be due to many things I suppose. The nice thing so far is that the TelegramSmalltalkBot package seems to install fine, which is already a good start. I'll try later on a SUSE Linux machine to compare with the OpenIndiana machine, as there may be a difference. David Stes -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJgr+RVAAoJENdFDkXGicizz5EH/39D3GOr+iIE2yWYEWUaR8Lc KnWmzpvVBj4m2f79mERoyhHoun1WRBpEMXO0WssdSbz3fd2f8TLgYgjOs367aRij ST3pKYQ8PCQEx4j3cF3US/k6g5+h2k6HsX0PhgLIilNPcVYT3qUDOh+NX0BW/IU5 ZSQvl4rmoHPZUigsD73VTLWYg1nV1aP/GwR7deNfO8EBn4shDsf9GOA8+UXLCPlh 6ODRqM209YKGaEAY9cP75a2pLrMJOfrqTkfdvuREmplQ/LdihQT52QE/7iQrDhcf cK1VODDfhQorVH9/7XVf2rFnYQWmFj0PT1yShme43FkpDPlGsvCw69vV/tkq0wo= =5Oh2 -----END PGP SIGNATURE----- From Christoph.Thiede at student.hpi.uni-potsdam.de Fri May 28 11:55:05 2021 From: Christoph.Thiede at student.hpi.uni-potsdam.de (Thiede, Christoph) Date: Fri, 28 May 2021 11:55:05 +0000 Subject: [Newbies] OI screenshot Telegram install In-Reply-To: <2118327795.714365.1622140036754.JavaMail.zimbra@telenet.be> References: <2059028195.195579124.1622108705341.JavaMail.zimbra@telenet.be> <105069529.195582663.1622108787973.JavaMail.zimbra@telenet.be> , <2118327795.714365.1622140036754.JavaMail.zimbra@telenet.be> Message-ID: Hi David, could you maybe share the complete stack trace? You can do this by right-clicking the stack in the debugger and choosing "copy bug report to clipboard". Be sure to remove all occurrences of your token from the output before posting it here. Best, Christoph ________________________________ Von: stes at PANDORA.BE Gesendet: Donnerstag, 27. Mai 2021 20:27:16 An: Thiede, Christoph Cc: beginners Betreff: Re: [Newbies] OI screenshot Telegram install -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi, I created a bot and user on my phone, and obtained a token. When I use that token in Squeak, I'm under the impression that it connects to api.telegram.org and that it accepts the token (although I'm not sure, is there a way to check?), unfortunately then I get a debugger with : [] in SecureSocketStream>>receiveData Socket>>waitForDataFor:ifClosed:ifTimedOut: SecureSocketStream>>receiveData SecureSocketStream>>upToAll:limit: SecureSocketStream>>upToAll: WebResponse>>readFrom: WebClient>>sendRequest:contentBlock: WebClient>>sendRequest:content:size: WebClient>>sendRequest: WebClient>>httpGet:do: ConnectionTimedOut: Data receive timed out. So it's not working but this can be due to many things I suppose. The nice thing so far is that the TelegramSmalltalkBot package seems to install fine, which is already a good start. I'll try later on a SUSE Linux machine to compare with the OpenIndiana machine, as there may be a difference. David Stes -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJgr+RVAAoJENdFDkXGicizz5EH/39D3GOr+iIE2yWYEWUaR8Lc KnWmzpvVBj4m2f79mERoyhHoun1WRBpEMXO0WssdSbz3fd2f8TLgYgjOs367aRij ST3pKYQ8PCQEx4j3cF3US/k6g5+h2k6HsX0PhgLIilNPcVYT3qUDOh+NX0BW/IU5 ZSQvl4rmoHPZUigsD73VTLWYg1nV1aP/GwR7deNfO8EBn4shDsf9GOA8+UXLCPlh 6ODRqM209YKGaEAY9cP75a2pLrMJOfrqTkfdvuREmplQ/LdihQT52QE/7iQrDhcf cK1VODDfhQorVH9/7XVf2rFnYQWmFj0PT1yShme43FkpDPlGsvCw69vV/tkq0wo= =5Oh2 -----END PGP SIGNATURE----- -------------- next part -------------- An HTML attachment was scrubbed... URL: From stes at telenet.be Fri May 28 18:07:14 2021 From: stes at telenet.be (stes@PANDORA.BE) Date: Fri, 28 May 2021 20:07:14 +0200 (CEST) Subject: [Newbies] OI screenshot Telegram install In-Reply-To: <2118327795.714365.1622140036754.JavaMail.zimbra@telenet.be> References: <2059028195.195579124.1622108705341.JavaMail.zimbra@telenet.be> <105069529.195582663.1622108787973.JavaMail.zimbra@telenet.be> <2118327795.714365.1622140036754.JavaMail.zimbra@telenet.be> Message-ID: <1855501781.5744804.1622225234357.JavaMail.zimbra@telenet.be> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi, I could not reproduce the debugger timeout: ConnectionTimedOut: Data receive timed out. In my new tests on OpenIndiana and SUSE SLES 15 , I get the same behaviour : bot := TelegramSmalltalkBot withToken: ''. bot spawnNewProcess. hangs. Of course the hang MAY end in a timeout, I only waited 5 minutes. Also on SUSE, same thing. It also hangs. I think the token is correct because the creation of the Squeak bot, works, and when I inspect it, it has retrieved the correct bot name. Also on the same systems I am able to use Python telegram-send, and with the Python program it works (can send messages to telegram); so the network setup works. Perhaps Squeak is more sensitive to network setup than Python, it has some characteristics of a network problem (comm.timeout). Also the Python test shows that the token is correct, and that it network-wise could work, but perhaps it is a network issue. DNS api.telegram.org and ping ICMP to that host work. The DNS has records for both ipv4 and ipv6; host api.telegram.org api.telegram.org has address 149.154.167.220 api.telegram.org has IPv6 address 2001:67c:4e8:f004::9 Another remark: I ran the tests in the Squeak TestRunner for TelegramSTBot, and on OpenIndiana they all succeed, on Linux 2 failed but the others were OK. When I experiment in the Workspace with DoIt of bot := TelegramSmalltalkBot withToken: ''. bot spawnNewProcess. I get: TelegramBotError 409: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running. How do I reset the bot in a Squeak Workspace ? Note that I am using very recent images 6.0alpa-20535.image 64 bit, in both cases, on SUSE SLES Linux and on OpenIndiana. I think perhaps I should try an older image 5.3 or early 6.0alpha, and not update it ? What do you think ? In any case your demonstration of the SqueakSmalltalkBot was impressive, I'd like to run it as well on either OpenIndiana or SUSE. David Stes -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJgsTDGAAoJENdFDkXGicizA/EH/io/I79Y/bzYMQCpBlfRypjw fyTdNmH0ts35DCITx5oNnfNj+3XPXtGJaryjrXPXkf42UfScEx/gLnLZw2a0kW5J Ke5/4lbTIeXKOPtX8yZIIj7pHcC5LE//w+pWnHIFrZDjeJKgWTcKdIoq4ZE5hAjO +BLVNrLbXYomsp+JbXfHwDuUDu38sSaN+Dj6nmi5pJN0slV3o4IQUohsluEhv3XO jkjwU343WMDGyz2bFLmV+c4D6eQ3v1iDlEbl0wKiLZC6d10qHXktLvP5AuMnckz2 04jn/D3tcru2nCLCe1wAedhdD34vKykt4+YkPI6XDYytU9MFYW45UUfqpknJUDk= =B3QY -----END PGP SIGNATURE----- From Christoph.Thiede at student.hpi.uni-potsdam.de Fri May 28 21:09:12 2021 From: Christoph.Thiede at student.hpi.uni-potsdam.de (Thiede, Christoph) Date: Fri, 28 May 2021 21:09:12 +0000 Subject: [Newbies] OI screenshot Telegram install In-Reply-To: <1855501781.5744804.1622225234357.JavaMail.zimbra@telenet.be> References: <2059028195.195579124.1622108705341.JavaMail.zimbra@telenet.be> <105069529.195582663.1622108787973.JavaMail.zimbra@telenet.be> <2118327795.714365.1622140036754.JavaMail.zimbra@telenet.be>, <1855501781.5744804.1622225234357.JavaMail.zimbra@telenet.be> Message-ID: <104bd50df3574c78aba55c5d162300eb@student.hpi.uni-potsdam.de> Hi David, if the bot hangs again, you could press Cmd + Dot to interrupt it and find out where exactly it is hanging. Again, you could share a full stack trace then. :-) What tests are failing? What failure/error messages do you get? > TelegramBotError 409: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running. > How do I reset the bot in a Squeak Workspace ? Technically, all TelegramBot frameworks for Smalltalk or Python or whatsoever are only clients. They use the Telegram Bot API which connects them to the actual server. This means that a part of the bot's state is kept on the Telegram servers. Concretely, this is an event queue. If you make requests for the same bot from multiple clients (i.e., images with TelegramSmalltalkBot), these conflict which each other because they both pull updates from the same queue. Usually, you can simply ignore this error by pressing Proceed. If it occurs again, you should make sure that no other client is running at the same time. For TelegramBot in Squeak, you can do so by opening the process browser and searching for any telegram bot process. You can yellow-click them and choose terminate. For testing, you can also manually inspect the latest updates for the bot by evaluating the following in your workspace: bot peekUpdates explore. If you have sent a message to the bot before, you should see a non-empty list. > I think perhaps I should try an older image 5.3 or early 6.0alpha, and not update it ? What do you think ? No, TelegramBot/TelegramSmalltalkBot are explicitly designed to "live at head", older versions of Squeak Alpha are not supported. I can only tell that it works well for me with an up-to-date Trunk image for both Windows 2004 and Debian/Raspbian. If you can provide a concrete stack trace, we should be able to solve the problem. :-) Best, Christoph ________________________________ Von: stes at PANDORA.BE Gesendet: Freitag, 28. Mai 2021 20:07:14 An: Thiede, Christoph Cc: beginners Betreff: Re: [Newbies] OI screenshot Telegram install -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi, I could not reproduce the debugger timeout: ConnectionTimedOut: Data receive timed out. In my new tests on OpenIndiana and SUSE SLES 15 , I get the same behaviour : bot := TelegramSmalltalkBot withToken: ''. bot spawnNewProcess. hangs. Of course the hang MAY end in a timeout, I only waited 5 minutes. Also on SUSE, same thing. It also hangs. I think the token is correct because the creation of the Squeak bot, works, and when I inspect it, it has retrieved the correct bot name. Also on the same systems I am able to use Python telegram-send, and with the Python program it works (can send messages to telegram); so the network setup works. Perhaps Squeak is more sensitive to network setup than Python, it has some characteristics of a network problem (comm.timeout). Also the Python test shows that the token is correct, and that it network-wise could work, but perhaps it is a network issue. DNS api.telegram.org and ping ICMP to that host work. The DNS has records for both ipv4 and ipv6; host api.telegram.org api.telegram.org has address 149.154.167.220 api.telegram.org has IPv6 address 2001:67c:4e8:f004::9 Another remark: I ran the tests in the Squeak TestRunner for TelegramSTBot, and on OpenIndiana they all succeed, on Linux 2 failed but the others were OK. When I experiment in the Workspace with DoIt of bot := TelegramSmalltalkBot withToken: ''. bot spawnNewProcess. I get: TelegramBotError 409: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running. How do I reset the bot in a Squeak Workspace ? Note that I am using very recent images 6.0alpa-20535.image 64 bit, in both cases, on SUSE SLES Linux and on OpenIndiana. I think perhaps I should try an older image 5.3 or early 6.0alpha, and not update it ? What do you think ? In any case your demonstration of the SqueakSmalltalkBot was impressive, I'd like to run it as well on either OpenIndiana or SUSE. David Stes -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJgsTDGAAoJENdFDkXGicizA/EH/io/I79Y/bzYMQCpBlfRypjw fyTdNmH0ts35DCITx5oNnfNj+3XPXtGJaryjrXPXkf42UfScEx/gLnLZw2a0kW5J Ke5/4lbTIeXKOPtX8yZIIj7pHcC5LE//w+pWnHIFrZDjeJKgWTcKdIoq4ZE5hAjO +BLVNrLbXYomsp+JbXfHwDuUDu38sSaN+Dj6nmi5pJN0slV3o4IQUohsluEhv3XO jkjwU343WMDGyz2bFLmV+c4D6eQ3v1iDlEbl0wKiLZC6d10qHXktLvP5AuMnckz2 04jn/D3tcru2nCLCe1wAedhdD34vKykt4+YkPI6XDYytU9MFYW45UUfqpknJUDk= =B3QY -----END PGP SIGNATURE----- -------------- next part -------------- An HTML attachment was scrubbed... URL: From stes at telenet.be Sat May 29 17:50:56 2021 From: stes at telenet.be (stes@PANDORA.BE) Date: Sat, 29 May 2021 19:50:56 +0200 (CEST) Subject: [Newbies] OI screenshot Telegram install In-Reply-To: <104bd50df3574c78aba55c5d162300eb@student.hpi.uni-potsdam.de> References: <2059028195.195579124.1622108705341.JavaMail.zimbra@telenet.be> <105069529.195582663.1622108787973.JavaMail.zimbra@telenet.be> <2118327795.714365.1622140036754.JavaMail.zimbra@telenet.be> <1855501781.5744804.1622225234357.JavaMail.zimbra@telenet.be> <104bd50df3574c78aba55c5d162300eb@student.hpi.uni-potsdam.de> Message-ID: <657861852.8303668.1622310656610.JavaMail.zimbra@telenet.be> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hello, I'm sorry for the misunderstandig : interpretation error from my side ... The TelegramSmalltalkBot is actually working fine on cog-spur with the latest image Squeak 6.0alpha 20535 on Solaris 11.4, OpenIndiana and SLES15. The instructions should however clarify that 1) you have to run Installer ensureRecentMetacello before the install and 2) the message bot spawnNewProcess should print in the Transcript Accepting requests Indeed what I thought was 'hanging' was actually just simply normal serving... - From the Telegram app it is possible to connect to the bot implemented, or running in Squeak and talk to it ... So all is working fine. Really nice package, I'm impressed. Also the advantage of Squeak-serving a bot is portability, where the Cog JIT just-in-time compiler serves as a fast Smalltalk VM. Regards, David Stes -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJgsn7LAAoJENdFDkXGiciz8oUH/A8Ai0JEsQtGlpe4ewxoRO6a hBhAey/4rZvO+muXFTFKyiHJO+JgpqEDUA3XFbH3aO0/p42a/cQMSEFd89ph5mGW WJtyp6eJh5V19mXw46wTODbMYCv3Xcha8h2kuIvHFOUe7KLRyLcXrxwPmfyl9+54 VpyRNfW/dwlCpoX9gD3Uu91bbjq7PRpqrwPTvtZsri0g1DBvJSR1615Rr5OsmrTv mnir8UNi3w4lQxyqJWhHaQnMgdCnFDe3K0+2PAbDz6HlQBKtRaMCPD4F7p6TiO2U DIfm5uW93EpTXZAIfJ0aQutt8upic/J7XkflCz3I+RBuQFXAh4jSWoxYOU/+VzE= =NdLO -----END PGP SIGNATURE----- From stes at telenet.be Sat May 29 17:57:13 2021 From: stes at telenet.be (stes@PANDORA.BE) Date: Sat, 29 May 2021 19:57:13 +0200 (CEST) Subject: [Newbies] OI screenshot Telegram install In-Reply-To: <657861852.8303668.1622310656610.JavaMail.zimbra@telenet.be> References: <2059028195.195579124.1622108705341.JavaMail.zimbra@telenet.be> <105069529.195582663.1622108787973.JavaMail.zimbra@telenet.be> <2118327795.714365.1622140036754.JavaMail.zimbra@telenet.be> <1855501781.5744804.1622225234357.JavaMail.zimbra@telenet.be> <104bd50df3574c78aba55c5d162300eb@student.hpi.uni-potsdam.de> <657861852.8303668.1622310656610.JavaMail.zimbra@telenet.be> Message-ID: <1671081850.8312843.1622311033075.JavaMail.zimbra@telenet.be> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Is there a way to do generally Transcript logging of the requests, being handled by the bot ? There seems to be a message useDebugging: but I'm unsure this is what I want. It's more a question of how to maintain a logfile of what the bot is doing. Anyway it's working fine. David Stes -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJgsoAfAAoJENdFDkXGicizIagH/1Z3RYoLAGzY9lcq/8tIqhf4 10iuQBsoAXA3vT+/QysYcDvOH/p4jkm0vBYDlF+3wfbogiJJ2xbikpEIklwKHqVL /HUfcr8oodkdw0uBT1h3i0m/NFIdyVGeVHt8x/OGL98lkHwzvdLbckEsTO4V5X4D ihfVR470+kAAlX0r39Kqf4JQDX4oKKUVdE3NqyhDEaYpUFtIiqjPUTkBnIOuuJ63 GvvB5frVYOGiPH1hmPNeuUu80i/IHiFJ+OSDRptEnGipW3PgliFSpbmzoyH7NmId GwOYcDvPV9GGQ/J9/flSVgDvu0xtxvTYUTPOsVwmj65MiednPcgH9xFaX1sgsEs= =MuSD -----END PGP SIGNATURE-----