dummy-decoy / ben10-chirp

2 stars 0 forks source link

Auto-played codes not listed in command prompt when generated #9

Closed WolfyBuilder closed 3 years ago

dummy-decoy commented 3 years ago

i can't reproduce this issue. can you provide screenshots of your environement or describe in great details how you run the generator, please ?

WolfyBuilder commented 3 years ago

https://user-images.githubusercontent.com/46472875/122818126-cb2c1500-d2a6-11eb-8192-795eed905467.mp4

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

dummy-decoy commented 3 years ago

that's pretty strange...

WolfyBuilder commented 3 years ago

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

dummy-decoy commented 3 years ago

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.

WolfyBuilder commented 3 years ago

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

dummy-decoy commented 3 years ago

and now, does the generator script outputs the codes it plays ?

WolfyBuilder commented 3 years ago

Unfortunately no. Are there any Python components I should/shouldn't have installed?

dummy-decoy commented 3 years ago

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.

WolfyBuilder commented 3 years ago

Screenshot (6) Everything looks fine to me

WolfyBuilder commented 3 years ago

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?

WolfyBuilder commented 3 years ago

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

dummy-decoy commented 3 years ago

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.

WolfyBuilder commented 3 years ago

Ah, I was wondering what that file was