Page 9 of 16

Re: Thread for your script-related questions

Posted: September 19th, 2021, 6:07 pm
by Francisco
What is the best way to terminate apgsearch on linux?

Re: Thread for your script-related questions

Posted: September 19th, 2021, 7:19 pm
by creeperman7002
Is there a program that enumerates still lives in a given rule?

Re: Thread for your script-related questions

Posted: October 22nd, 2021, 4:47 am
by Naszvadi
Suboptimal script to list known life-like rules with discovered gliders, strongly depends on gnuish tools, might not work on osx or bsd:

Code: Select all

awk -F: '/B.*S/&&$0=$3" "$4'   gliders.db.txt    \
| sort \
| uniq \
| tr / ' ' \
| awk '{for(x=0;x<2;x++){outB="";split($(3+x),a,//);for(n in a){ if($(1+x)~a[n]){outB=outB""a[n]}else{outB=outB"{,"a[n]"}"}};printf(outB);shift;if(x<1){printf("/");}}; print""}' \
| while read i;do eval printf '%s\\n' $i; done \
| sort \
| uniq
# end

Re: Thread for your script-related questions

Posted: October 23rd, 2021, 9:16 pm
by erictom333
How do I apgsearch?

Re: Thread for your script-related questions

Posted: October 23rd, 2021, 9:37 pm
by dvgrn
erictom333 wrote:
October 23rd, 2021, 9:16 pm
How do I apgsearch?
Start here and follow the relevant instructions in the Installation section.

Re: Thread for your script-related questions

Posted: October 28th, 2021, 3:50 am
by erictom333
dvgrn wrote:
October 23rd, 2021, 9:37 pm
erictom333 wrote:
October 23rd, 2021, 9:16 pm
How do I apgsearch?
Start here and follow the relevant instructions in the Installation section.
What's a WSL bash and how do I use it?

Re: Thread for your script-related questions

Posted: October 28th, 2021, 5:04 am
by GUYTU6J
erictom333 wrote:
October 28th, 2021, 3:50 am
What's a WSL bash and how do I use it?
It is a Windows Subsystem for Linux in Win 10 requiring these supports:

Code: Select all

For x64 systems: Version 1903 or higher, with Build 18362 or higher.
For ARM64 systems: Version 2004 or higher, with Build 19041 or higher.
What is the Windows you are using and does it satisfy these? (You can check by entering systeminfo in command prompt.) If yes, later I will post a very brief walkthrough here.

Re: Thread for your script-related questions

Posted: October 28th, 2021, 5:19 am
by erictom333
GUYTU6J wrote:
October 28th, 2021, 5:04 am
erictom333 wrote:
October 28th, 2021, 3:50 am
What's a WSL bash and how do I use it?
It is a Windows Subsystem for Linux in Win 10 requiring these supports:

Code: Select all

For x64 systems: Version 1903 or higher, with Build 18362 or higher.
For ARM64 systems: Version 2004 or higher, with Build 19041 or higher.
What is the Windows you are using and does it satisfy these? (You can check by entering systeminfo in command prompt.) If yes, later I will post a very brief walkthrough here.
Well, I have an x64 on build 17134. So can I still apgsearch?

Re: Thread for your script-related questions

Posted: October 28th, 2021, 5:39 am
by GUYTU6J
erictom333 wrote:
October 28th, 2021, 5:19 am
GUYTU6J wrote:
October 28th, 2021, 5:04 am
erictom333 wrote:
October 28th, 2021, 3:50 am
What's a WSL bash and how do I use it?
It is a Windows Subsystem for Linux in Win 10 requiring these supports:

Code: Select all

For x64 systems: Version 1903 or higher, with Build 18362 or higher.
For ARM64 systems: Version 2004 or higher, with Build 19041 or higher.
What is the Windows you are using and does it satisfy these? (You can check by entering systeminfo in command prompt.) If yes, later I will post a very brief walkthrough here.
Well, I have an x64 on build 17134. So can I still apgsearch?
Not using WSL then, given that the build is a bit too old, although you can still use Cygwin as instructed here: Tutorials/Contributing_to_Catagolue#Soup-searching_using_apgluxe_5.x
Or maybe you would like to upgrade your Windows 10 ...?

Re: Thread for your script-related questions

Posted: October 29th, 2021, 3:55 am
by erictom333
GUYTU6J wrote:
October 28th, 2021, 5:39 am
erictom333 wrote:
October 28th, 2021, 5:19 am
GUYTU6J wrote:
October 28th, 2021, 5:04 am

It is a Windows Subsystem for Linux in Win 10 requiring these supports:

Code: Select all

For x64 systems: Version 1903 or higher, with Build 18362 or higher.
For ARM64 systems: Version 2004 or higher, with Build 19041 or higher.
What is the Windows you are using and does it satisfy these? (You can check by entering systeminfo in command prompt.) If yes, later I will post a very brief walkthrough here.
Well, I have an x64 on build 17134. So can I still apgsearch?
Not using WSL then, given that the build is a bit too old, although you can still use Cygwin as instructed here: Tutorials/Contributing_to_Catagolue#Soup-searching_using_apgluxe_5.x
Or maybe you would like to upgrade your Windows 10 ...?
Is there an easier way to get apgsearch? Why can't it just be a downloadable file?

Re: Thread for your script-related questions

Posted: November 2nd, 2021, 9:37 am
by C28
how do i use ptbsearch to find new u-turner conduits?

Re: Thread for your script-related questions

Posted: November 8th, 2021, 2:23 am
by erictom333
I can't run Python scripts on Golly because it couldn't load the Python library. I've downloaded the latest version of Python. What do I need to do?

Re: Thread for your script-related questions

Posted: November 8th, 2021, 8:32 am
by dvgrn
erictom333 wrote:
November 8th, 2021, 2:23 am
I can't run Python scripts on Golly because it couldn't load the Python library. I've downloaded the latest version of Python. What do I need to do?
Heh, there must be dozens of questions exactly like this on the forums by now. They're almost always missing some of the information that's needed to troubleshoot the problem.

"Latest version of Python" could be 32-bit or 64-bit, but only 64-bit will work with Golly 4.0. As part of a question like this, please mention the version of Golly (just for the record, no doubt it's Golly 4.0, but if you don't say it, nobody knows for sure), the exact name of the Python executable that you downloaded and installed, and what operating system you're doing all of this on.

Also try working through the instructions in the link above.

We've been hoping that simplifying things by only supporting 64-bit Python and 64-bit Golly as of 4.0, would reduce these kinds of problems to some extent -- but there are still definitely some mysterious things that can happen that are hard to troubleshoot. Mostly they involve different versions of Python getting installed on the same computer, with the wrong version getting added to the PATH environment variable. If something besides that can go wrong, I haven't figured out what it is yet.

Re: Thread for your script-related questions

Posted: November 8th, 2021, 10:29 pm
by erictom333
dvgrn wrote:
November 8th, 2021, 8:32 am
erictom333 wrote:
November 8th, 2021, 2:23 am
I can't run Python scripts on Golly because it couldn't load the Python library. I've downloaded the latest version of Python. What do I need to do?
Heh, there must be dozens of questions exactly like this on the forums by now. They're almost always missing some of the information that's needed to troubleshoot the problem.

"Latest version of Python" could be 32-bit or 64-bit, but only 64-bit will work with Golly 4.0. As part of a question like this, please mention the version of Golly (just for the record, no doubt it's Golly 4.0, but if you don't say it, nobody knows for sure), the exact name of the Python executable that you downloaded and installed, and what operating system you're doing all of this on.

Also try working through the instructions in the link above.

We've been hoping that simplifying things by only supporting 64-bit Python and 64-bit Golly as of 4.0, would reduce these kinds of problems to some extent -- but there are still definitely some mysterious things that can happen that are hard to troubleshoot. Mostly they involve different versions of Python getting installed on the same computer, with the wrong version getting added to the PATH environment variable. If something besides that can go wrong, I haven't figured out what it is yet.
I managed to get it working following those instructions. However, there is an error in the apgsearch script I wanted to run (hacked apgsearch 1.0): "ModuleNotFoundError: No module named 'urllib2'".

Re: Thread for your script-related questions

Posted: November 8th, 2021, 10:39 pm
by bubblegum
erictom333 wrote:
November 8th, 2021, 10:29 pm
I managed to get it working following those instructions. However, there is an error in the apgsearch script I wanted to run (hacked apgsearch 1.0): "ModuleNotFoundError: No module named 'urllib2'".
apgsearch 0.x and 1.x are for Python 2.x and Golly 3.x only. Modern versions of apgsearch use C++ and Python in a command line however, and there have been no updates of the Golly scripts since.

What does the hack do, by the way?

Re: Thread for your script-related questions

Posted: November 9th, 2021, 12:54 pm
by pzq_alex
What are the object seperation & stablization detection algorithms used in apgsearch?

Re: Thread for your script-related questions

Posted: November 12th, 2021, 10:38 pm
by LaundryPizza03
bubblegum wrote:
November 8th, 2021, 10:39 pm
erictom333 wrote:
November 8th, 2021, 10:29 pm
I managed to get it working following those instructions. However, there is an error in the apgsearch script I wanted to run (hacked apgsearch 1.0): "ModuleNotFoundError: No module named 'urllib2'".
apgsearch 0.x and 1.x are for Python 2.x and Golly 3.x only. Modern versions of apgsearch use C++ and Python in a command line however, and there have been no updates of the Golly scripts since.

What does the hack do, by the way?
The hack allows searching of isotropic non-totalistic rules, which has been supported by apgmera since v4.2 in September 2017.

Re: Thread for your script-related questions

Posted: November 27th, 2021, 6:56 pm
by erictom333
Is there a script to enumerate all collisions of any spaceship and any stationary object in any INT rule?

Also, why is apgsearch so hard to download?

Re: Thread for your script-related questions

Posted: January 6th, 2022, 8:12 pm
by Wyirm
Are there any good programs that can search for spaceships in OCA?

Re: Thread for your script-related questions

Posted: January 7th, 2022, 9:04 am
by yujh
Wyirm wrote:
January 6th, 2022, 8:12 pm
Are there any good programs that can search for spaceships in OCA?
Qfind, ntzfind, rlifesrc, ikpx2, or even LSSS for OT rules

Re: Thread for your script-related questions

Posted: January 11th, 2022, 8:46 pm
by Wyirm
Thank you

Re: Thread for your script-related questions

Posted: February 13th, 2022, 5:52 am
by bibunsekibun
The Python 2.7.13 download file was msi instead of dll.
How can I load an msi file as Python Libraly?

Re: Thread for your script-related questions

Posted: February 13th, 2022, 6:31 am
by GUYTU6J
bibunsekibun wrote:
February 13th, 2022, 5:52 am
The Python 2.7.13 download file was msi instead of dll.
How can I load an msi file as Python Libraly?
Why Python 2.7 instead of the modern Python3, firstly?
The .msi file should be an installer for Python, so you will nead to execute it. More related advice can be found here.

Re: Thread for your script-related questions

Posted: February 13th, 2022, 6:39 am
by bibunsekibun
GUYTU6J wrote:
February 13th, 2022, 6:31 am
Why Python 2.7 instead of the modern Python3, firstly?
The .msi file should be an installer for Python, so you will nead to execute it. More related advice can be found here.
1. To run hacked apgsearch 0.54 + 0.23i.
2. I did install it, but the 2.7.13 dll wasn't in the location mentioned in that thread.

Re: Thread for your script-related questions

Posted: February 13th, 2022, 7:31 am
by GUYTU6J
bibunsekibun wrote:
February 13th, 2022, 6:39 am
GUYTU6J wrote:
February 13th, 2022, 6:31 am
Why Python 2.7 instead of the modern Python3, firstly?
The .msi file should be an installer for Python, so you will nead to execute it. More related advice can be found here.
1. To run hacked apgsearch 0.54 + 0.23i.
2. I did install it, but the 2.7.13 dll wasn't in the location mentioned in that thread.
2. The file should be python2.dll, and if it cannot be found, it may be that your python was installed on another disk or somewhere else, so try searching for it.
1. I remember having answered one of your questions that indicated you had Cygwin - is there something wrong with it, or the apgsearch within?