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

pip/pipx tmp directory issues #60

Closed
8itlew7r opened this issue Mar 14, 2024 · 2 comments
Closed

pip/pipx tmp directory issues #60

8itlew7r opened this issue Mar 14, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@8itlew7r
Copy link

I remember this is also a problem when I'm trying to install some modules using pip. Being root solves the problem, but also creates other problems.

> npx eslint script.js
Need to install the following packages:
  eslint@8.57.0
Ok to proceed? (y)
npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path /home/my_acct/.npm/_cacache/tmp/7429dcee
npm ERR! dest /home/my_acct/.npm/_cacache/content-v2/sha512/5f/c7/2a30b2e27bb2ac3540d277378df0560af6b12de03b7aeceb06fc33469d84d20c11b8b850091419d47a257ecc2540bf0172e7a22333db07e758d568484dc7
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, rename '/home/my_acct/.npm/_cacache/tmp/7429dcee' -> '/home/my_acct/.npm/_cacache/content-v2/sha512/5f/c7/2a30b2e27bb2ac3540d277378df0560af6b12de03b7aeceb06fc33469d84d20c11b8b850091419d47a257ecc2540bf0172e7a22333db07e758d568484dc7'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/my_acct/.npm/_logs/2024-03-14T07_42_08_458Z-debug-0.log
@green-green-avk green-green-avk self-assigned this Mar 16, 2024
@green-green-avk green-green-avk added the bug Something isn't working label Mar 16, 2024
@green-green-avk green-green-avk added this to To do in Another Term Environment via automation Mar 16, 2024
@8itlew7r
Copy link
Author

8itlew7r commented May 18, 2024

> npx eslint script.js
Need to install the following packages:
  eslint@8.57.0
Ok to proceed? (y)
npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path /home/my_acct/.npm/_cacache/tmp/7429dcee
npm ERR! dest /home/my_acct/.npm/_cacache/content-v2/sha512/5f/c7/2a30b2e27bb2ac3540d277378df0560af6b12de03b7aeceb06fc33469d84d20c11b8b850091419d47a257ecc2540bf0172e7a22333db07e758d568484dc7
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, rename '/home/my_acct/.npm/_cacache/tmp/7429dcee' -> '/home/my_acct/.npm/_cacache/content-v2/sha512/5f/c7/2a30b2e27bb2ac3540d277378df0560af6b12de03b7aeceb06fc33469d84d20c11b8b850091419d47a257ecc2540bf0172e7a22333db07e758d568484dc7'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/my_acct/.npm/_logs/2024-03-14T07_42_08_458Z-debug-0.log

Clear the npm cache:

npm cache clean --force

Delete the node_modules folder and package-lock.json file:

rm -rf node_modules package-lock.json

Reinstall the dependencies:

npm install

Ensure you are using the latest version of npm:

npm install -g npm@latest


The matter or topic being tracked and discussed through this issue thread has been satisfactorily resolved or addressed, so the issue can now be marked as completed and archived.

@8itlew7r
Copy link
Author

The matter or topic being tracked and discussed through this issue thread has been satisfactorily resolved or addressed, so the issue can now be marked as completed and archived.

The issue with NPM (Node Package Manager) and pip/pipx (Python package managers) appears to be unrelated since they utilize different temporary directories during package installation. While the NPM problem has been resolved, pipx continues to encounter a permission denied error, despite the account having full access to the /tmp directory.

PIP STDOUT
----------
Collecting ruff
  Downloading ruff-0.4.4.tar.gz (2.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.5/2.5 MB 1.4 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: still running...
  Installing build dependencies: finished with status 'error'

PIP STDERR
----------
  error: subprocess-exited-with-error
  
  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [39 lines of output]
      Collecting maturin<2.0,>=1.0
        Downloading maturin-1.5.1.tar.gz (181 kB)
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 181.3/181.3 kB 262.6 kB/s eta 0:00:00
        Installing build dependencies: started
        Installing build dependencies: finished with status 'done'
        Getting requirements to build wheel: started
        Getting requirements to build wheel: finished with status 'done'
        Preparing metadata (pyproject.toml): started
        Preparing metadata (pyproject.toml): finished with status 'error'
        error: subprocess-exited-with-error
      
        × Preparing metadata (pyproject.toml) did not run successfully.
        │ exit code: 1
        ╰─> [15 lines of output]
            /tmp/pip-build-env-ast6oayq/overlay/lib/python3.11/site-packages/setuptools/config/_apply_pyprojecttoml.py:83: SetuptoolsWarning: `install_requires` overwritten in `pyproject.toml` (dependencies)
              corresp(dist, value, root_dir)
            running dist_info
            creating /tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info
            writing /tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info/PKG-INFO
            writing dependency_links to /tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info/dependency_links.txt
            writing requirements to /tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info/requires.txt
            writing top-level names to /tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info/top_level.txt
            writing manifest file '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info/SOURCES.txt'
            reading manifest file '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info/SOURCES.txt'
            reading manifest template 'MANIFEST.in'
            warning: no files found matching '*.json' under directory 'src/python_interpreter'
            writing manifest file '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info/SOURCES.txt'
            creating '/tmp/pip-modern-metadata-q_kekdhn/maturin-1.5.1.dist-info'
            error: [('/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info/not-zip-safe', '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info.__bkp__/not-zip-safe', "[Errno 13] Permission denied: '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info.__bkp__/not-zip-safe'"), ('/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info/PKG-INFO', '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info.__bkp__/PKG-INFO', "[Errno 13] Permission denied: '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info.__bkp__/PKG-INFO'"), ('/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info/dependency_links.txt', '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info.__bkp__/dependency_links.txt', "[Errno 13] Permission denied: '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info.__bkp__/dependency_links.txt'"), ('/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info/requires.txt', '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info.__bkp__/requires.txt', "[Errno 13] Permission denied: '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info.__bkp__/requires.txt'"), ('/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info/top_level.txt', '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info.__bkp__/top_level.txt', "[Errno 13] Permission denied: '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info.__bkp__/top_level.txt'"), ('/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info/SOURCES.txt', '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info.__bkp__/SOURCES.txt', "[Errno 13] Permission denied: '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info.__bkp__/SOURCES.txt'"), ('/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info', '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info.__bkp__', "[Errno 13] Permission denied: '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info.__bkp__'")]
            [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.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

@8itlew7r 8itlew7r changed the title Tmp directory issues pip/pipx tmp directory issues May 20, 2024
@8itlew7r 8itlew7r closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2024
Another Term Environment automation moved this from To do to Done May 20, 2024
@8itlew7r 8itlew7r reopened this May 20, 2024
Another Term Environment automation moved this from Done to In progress May 20, 2024
Another Term Environment automation moved this from In progress to Done May 20, 2024
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
Development

No branches or pull requests

2 participants