Re: Thread for your script-related questions
Posted: September 19th, 2021, 6:07 pm
What is the best way to terminate apgsearch on linux?
Forums for Conway's Game of Life
https://conwaylife.com/forums/
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
Start here and follow the relevant instructions in the Installation section.
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.
Well, I have an x64 on build 17134. So can I still apgsearch?GUYTU6J wrote: ↑October 28th, 2021, 5:04 amIt is a Windows Subsystem for Linux in Win 10 requiring these supports: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.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.
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.xerictom333 wrote: ↑October 28th, 2021, 5:19 amWell, I have an x64 on build 17134. So can I still apgsearch?GUYTU6J wrote: ↑October 28th, 2021, 5:04 amIt is a Windows Subsystem for Linux in Win 10 requiring these supports: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.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.
Is there an easier way to get apgsearch? Why can't it just be a downloadable file?GUYTU6J wrote: ↑October 28th, 2021, 5:39 amNot 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.xerictom333 wrote: ↑October 28th, 2021, 5:19 amWell, I have an x64 on build 17134. So can I still apgsearch?GUYTU6J wrote: ↑October 28th, 2021, 5:04 am
It is a Windows Subsystem for Linux in Win 10 requiring these supports: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.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.
Or maybe you would like to upgrade your Windows 10 ...?
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.erictom333 wrote: ↑November 8th, 2021, 2:23 amI 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?
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'".dvgrn wrote: ↑November 8th, 2021, 8:32 amHeh, 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.erictom333 wrote: ↑November 8th, 2021, 2:23 amI 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?
"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.
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.erictom333 wrote: ↑November 8th, 2021, 10:29 pmI 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'".
The hack allows searching of isotropic non-totalistic rules, which has been supported by apgmera since v4.2 in September 2017.bubblegum wrote: ↑November 8th, 2021, 10:39 pmapgsearch 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.erictom333 wrote: ↑November 8th, 2021, 10:29 pmI 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'".
What does the hack do, by the way?
Why Python 2.7 instead of the modern Python3, firstly?bibunsekibun wrote: ↑February 13th, 2022, 5:52 amThe Python 2.7.13 download file was msi instead of dll.
How can I load an msi file as Python Libraly?
1. To run hacked apgsearch 0.54 + 0.23i.
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.bibunsekibun wrote: ↑February 13th, 2022, 6:39 am1. 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.