excelCPU icon indicating copy to clipboard operation
excelCPU copied to clipboard

py: error: unrecognized arguments: bouncingBall.s ROM.xlsx

Open TbusOS opened this issue 1 year ago • 1 comments

my steps: on ubuntu

  1. sudo apt install pythonpy
  2. py compileExcelASM16.py bouncingBall.s ROM.xlsx log: py: error: unrecognized arguments: bouncingBall.s ROM.xlsx

TbusOS avatar Jan 31 '24 05:01 TbusOS

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):

  1. Run the usual sudo apt update.
  2. Install Python with sudo apt install python3.
  3. Install Pip with sudo apt install python3-pip.
  4. (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 using source ./<virtual environment name>/bin/activate.
  5. Install openpyxl with python3 -m pip install openpyxl. [^1]
  6. 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

nicholas-ewing avatar Feb 01 '24 01:02 nicholas-ewing