Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TbusOS opened this issue Jan 31, 2024 · 1 comment
Open

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

TbusOS opened this issue Jan 31, 2024 · 1 comment

Comments

@TbusOS
Copy link

TbusOS commented Jan 31, 2024

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
@nicholas-ewing
Copy link

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.

Footnotes

  1. Note: Virtual environments might require python rather than python3 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants