linuxmint / nemo-extensions

A set of extensions for Nemo
410 stars 150 forks source link

How to install nemo-compare in debian sid? #489

Closed blueray453 closed 1 year ago

blueray453 commented 1 year ago

How to install nemo-compare in debian sid?

What I have done so far is:

git clone https://github.com/linuxmint/nemo-extensions.git cd nemo-extensions/nemo-compare python -m build

Now I have two files in nemo-extensions/nemo-compare/dist:

nemo-compare-5.8.1.tar.gz nemo_compare-5.8.1-py3-none-any.whl

leigh123linux commented 1 year ago

Try asking on a forum or something, I don't consider lack of knowledge is a valid issue!

python3 setup.py build python3 setup.py install

blueray453 commented 1 year ago

When I run python3 setup.py install, it says:

> python3 setup.py install
running install
/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` and ``easy_install``.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://github.com/pypa/setuptools/issues/917 for details.
        ********************************************************************************

!!
  self.initialize_options()
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 13] Permission denied: '/usr/local/lib/python3.11/dist-packages/test-easy-install-4589.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /usr/local/lib/python3.11/dist-packages/

Perhaps your account does not have write access to this directory?  If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account.  If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

For information on other options, you may wish to consult the
documentation at:

  https://setuptools.pypa.io/en/latest/deprecated/easy_install.html

Please make the appropriate changes for your system and try again.
blueray453 commented 1 year ago

And the following works but with a lot of warnings:

> sudo python3 setup.py install
[sudo] password for ismail:
running install
/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` and ``easy_install``.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://github.com/pypa/setuptools/issues/917 for details.
        ********************************************************************************

!!
  self.initialize_options()
running bdist_egg
running egg_info
writing nemo_compare.egg-info/PKG-INFO
writing dependency_links to nemo_compare.egg-info/dependency_links.txt
writing top-level names to nemo_compare.egg-info/top_level.txt
reading manifest file 'nemo_compare.egg-info/SOURCES.txt'
writing manifest file 'nemo_compare.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
warning: install_lib: 'build/lib' does not exist -- no Python modules to install

installing package data to build/bdist.linux-x86_64/egg
running install_data
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying nemo_compare.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying nemo_compare.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying nemo_compare.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying nemo_compare.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/nemo_compare-5.8.1-py3.11.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing nemo_compare-5.8.1-py3.11.egg
Removing /usr/local/lib/python3.11/dist-packages/nemo_compare-5.8.1-py3.11.egg
Copying nemo_compare-5.8.1-py3.11.egg to /usr/local/lib/python3.11/dist-packages
Adding nemo-compare 5.8.1 to easy-install.pth file

Installed /usr/local/lib/python3.11/dist-packages/nemo_compare-5.8.1-py3.11.egg
Processing dependencies for nemo-compare==5.8.1
Finished processing dependencies for nemo-compare==5.8.1