Closed WolfyBuilder closed 3 years ago
Here's a clip of me running the script. For clarification, I ctrl-c'd it at the end of the clip, it didn't crash or anything
that's pretty strange...
python3 --version
)python
or python3
?python -c "print('hello world')"
? does it print anything ?python
on the command line), what is printed as the first lines ? (there is a more complete version printed when starting the interpreter, including the 32/64 bit architecture)I believe I'm using Python 3.9.5
I only have Python 3 installed
There does not seem to be any difference between using python and python3
It says that -c is not a recognizable command
If I type just "python" into the command prompt, it opens the Microsoft store page for Python 3.9, even though I have Python 3 installed
I'll try uninstalling Python, and reinstalling it via the Microsoft store
you would be better using the official windows installer from http;//python.org/ and check that python is not installed from another source. sometimes, python is bundled with other software (blender for example, or gnuradio...). if that alternate bundle is on the PATH, it can interfere with the official install of python.
Just went through that whole process, so I'm back to using the official installer. I said "add to environment variables" or something during installation, and now I can enter the python interpreter. I tried the hello world command both in and out of the interpreter, and it printed just fine.
Also, you were right about Blender, though uninstalling it didn't seem to do anything to help
and now, does the generator script outputs the codes it plays ?
Unfortunately no. Are there any Python components I should/shouldn't have installed?
nope, nothing special. all modules used in the generator are standard. the only thing to check is the source code itself.
the print statement is on line 77 of generator.py
:
print('generating ben10-chirp code:', code)
should not be commented out (no #
in front of the print), line endings, space vs.tabs. there are a lot of usual suspects there. i am not used to the way github delivers python scripts through zip files... i shall maybe find a better way to package the software.
Everything looks fine to me
The installer is called "python-3.9.5-amd64". Could it be because I have an Intel CPU, and an Nvidia GPU? Or does that not matter?
Fixed it. It was my fault, as I was typing in the command like "> python3 generator.py 2***1023"
when I should have been using "python generator.py 2***1023"
Sorry for the confusion
nah, my fault: unclear instructions.
indeed, the >
is part of the prompt. i did not pay attention that you were typing it. this characters orders the command line to redirect all output into a file. the file is named python3, is right besides the script inside your folder, and you can now delete it.
Ah, I was wondering what that file was
i can't reproduce this issue. can you provide screenshots of your environement or describe in great details how you run the generator, please ?