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

Cannot install rshell #237

Open
cwharris opened this issue Nov 17, 2024 · 1 comment
Open

Cannot install rshell #237

cwharris opened this issue Nov 17, 2024 · 1 comment

Comments

@cwharris
Copy link

cwharris commented Nov 17, 2024

It appears setup.py is attempting to import rshell during installation, which fails (at least in my conda environment on ubuntu 22.04) presumably due to rshell being treated as an installed module name and not a relative path.

(esp32) coder ➜ ~/dev $ python --version
Python 3.12.7
(esp32) coder ➜ ~/dev $ uname -a
Linux f274a92d9fb5 6.8.0-48-generic #48~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct  7 11:24:13 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
(esp32) coder ➜ ~/dev $ pip install rshell
Collecting rshell
  Using cached rshell-0.0.34.tar.gz (48 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-xdjoq0y6/rshell_668fb8047ccf456cb27890b00925f999/setup.py", line 9, in <module>
          from rshell.version import __version__
      ModuleNotFoundError: No module named 'rshell'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

I can successfully install rshell=0.0.1, and then try to install a newer rshell. The error changes to indicate rshell was found, but rshell.version was not, verifying that setup.py is treating rshell as an installed module and not a relative path.

@dhylands
Copy link
Owner

dhylands commented Dec 4, 2024

I fixed this in 0.0.35 so that setup.py now uses a different method to determine the version.

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