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

Install_litex throws errors when switch --user is not used #47

Closed
Peter-van-Tol opened this issue Sep 20, 2023 · 1 comment · Fixed by #54
Closed

Install_litex throws errors when switch --user is not used #47

Peter-van-Tol opened this issue Sep 20, 2023 · 1 comment · Fixed by #54
Labels
bug Something isn't working

Comments

@Peter-van-Tol
Copy link
Owner

Is there something special for installing on raspberry pi4 with bookworm?

litexcnc install_litex throws errors.

also when I do "pip3 install litexcnc[cli] it doesn't work

litexcnc install_litex
Traceback (most recent call last):
  File "/home/cnc/.local/bin/litexcnc", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/home/cnc/.local/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/cnc/.local/lib/python3.11/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/home/cnc/.local/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/cnc/.local/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/cnc/.local/lib/python3.11/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/cnc/.local/lib/python3.11/site-packages/litexcnc/cli/install_litex.py", line 21, in cli
    target = os.path.join(target, 'litex')
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen posixpath>", line 76, in join
TypeError: expected str, bytes or os.PathLike object, not NoneType

EDIT:
solved...forgot to install it with '--user'

Originally posted by @OJthe123 in #36 (comment)

@Peter-van-Tol Peter-van-Tol added the bug Something isn't working label Sep 20, 2023
Peter-van-Tol added a commit that referenced this issue Sep 27, 2023
@Peter-van-Tol
Copy link
Owner Author

Solved in #47. Also added auto-detection of architecture and os for selecting the required toolchain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant