hyphanet / pyFreenet

Python FCPv2 library and utilities
https://freenetproject.org/
Other
60 stars 24 forks source link

Error on windows #39

Open ThePlantEater opened 1 month ago

ThePlantEater commented 1 month ago

Normal pip3 install --upgrade --user pyFreenet3

C:\###\Freenet\pyFreenet>pip3 install --upgrade --user pyFreenet3
Collecting pyFreenet3
  Using cached pyFreenet3-0.6.1.tar.gz (371 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: pyFreenet3
  Building wheel for pyFreenet3 (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [16 lines of output]
      C:\###\Python\Python312\site-packages\setuptools\dist.py:472: SetuptoolsDeprecationWarning: Invalid dash-separated options
      !!

              ********************************************************************************
              Usage of dash-separated 'description-file' will not be supported in future
              versions. Please use the underscore name 'description_file' instead.

              By 2024-Sep-26, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.

              See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
              ********************************************************************************

      !!
        opt = self.warn_dash_deprecation(opt, section)
      error: [Errno 2] No such file or directory: 'freesitemgr.py'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyFreenet3
  Running setup.py clean for pyFreenet3
Failed to build pyFreenet3
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pyFreenet3)
ThePlantEater commented 1 month ago

I cloned this repository and changed in the setup.py:

#if doze:
#    for i in range(len(scripts)):
#        scripts[i] += ".py"

Then i only get 1000 warnings