Skip to content

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

Description

@TbusOS

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

Activity

  1. nicholas-ewing commented on Feb 1, 2024

    @nicholas-ewing

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions