excelCPU
excelCPU copied to clipboard
py: error: unrecognized arguments: bouncingBall.s ROM.xlsx
my steps: on ubuntu
- sudo apt install pythonpy
- py compileExcelASM16.py bouncingBall.s ROM.xlsx log: py: error: unrecognized arguments: bouncingBall.s ROM.xlsx
Hi @TbusOS,
It appears that your issue is not a result of an issue with this python file, but rather with how you are attempting to run the python file.
I first did a quick Google search since I wasn't sure what pythonpy was exactly and it appears that pythonpy is exclusively for running Python oneliners, i.e. like running python -c '<python oneliner>'
. See Debian pythonpy package page.
If you want to actually run the compiler try the following (I'm not on my Ubuntu machine so I can't verify this 100% but its the same general process regardless):
- Run the usual
sudo apt update
. - Install Python with
sudo apt install python3
. - Install Pip with
sudo apt install python3-pip
. - (Optional) If you want to use a virtual environment first run
python3 -m pip install virtualenv
to install, then (from the project directory)python3 -m virtualenv <virtual environment name, e.g. 'venv'>
to create the virtual environemnt, finally activate the virtual environment usingsource ./<virtual environment name>/bin/activate
. - Install openpyxl with
python3 -m pip install openpyxl
. [^1] - Compile to your liking
python3 compileExcelASM16.py bouncingBall.s ROM.xlsx
. [^1]
I hope this helps.
[^1]: Note: Virtual environments might require python
rather than python3