packing-box / docker-packing-box

Docker image gathering packers and tools for making datasets of packed executables and training machine learning models for packing detection
GNU General Public License v3.0
49 stars 10 forks source link

Error using `pbox-update` #25

Closed smarbal closed 1 year ago

smarbal commented 1 year ago

The following error occurs using pbox-update :

pbox-update
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [5 lines of output]
      running bdist_wheel
      running build
      running build_py
      copying pboxtools/__init__.py -> build/lib/pboxtools
      error: could not delete 'build/lib/pboxtools/__init__.py': Permission denied
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for packing-box
  error: subprocess-exited-with-error

  × Running setup.py install for packing-box did not run successfully.
  │ exit code: 1
  ╰─> [7 lines of output]
      running install
      /home/user/.local/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      copying pboxtools/__init__.py -> build/lib/pboxtools
      error: could not delete 'build/lib/pboxtools/__init__.py': Permission denied
      [end of output]

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

× Encountered error while trying to install package.
╰─> packing-box

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

All recent changes have been pulled and the box has just been rebuilded.

dhondta commented 1 year ago

@smarbal The lines "error: could not delete 'build/lib/pboxtools/__init__.py': Permission denied" show that you have a permission issue where Pip is trying to build the wheel. Did you try to pip install --upgrade src/lib from within the box at/mnt/share` ?

smarbal commented 1 year ago

@dhondta It returned me the exact same error.

smarbal commented 1 year ago

@dhondta It seems most likely to be an issue with my fork. There isn't much changes with this repository though. I'll debug it.

smarbal commented 1 year ago

I think the issue was me naming my directory docker-packing-box_fork. Changed it and now it works.