gregmoille / pyLLE

Lugiato Lefever Equation Solver in Python/Julia
Other
66 stars 39 forks source link

Fail to install #49

Closed Armaroli closed 9 months ago

Armaroli commented 10 months ago

Describe the bug Fail install To Reproduce pip install pyLLE on clean environment

Expected behavior Expect to install

Error or Screenshots python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [66 lines of output] Warning: 'classifiers' should be a list, got type 'tuple' running bdist_wheel running build running build_py creating build creating build\lib creating build\lib\pyLLE copying pyLLE_analyzedisp.py -> build\lib\pyLLE copying pyLLE_llesolver.py -> build\lib\pyLLE copying pyLLE__init__.py -> build\lib\pyLLE running egg_info writing pyLLE.egg-info\PKG-INFO writing dependency_links to pyLLE.egg-info\dependency_links.txt writing requirements to pyLLE.egg-info\requires.txt writing top-level names to pyLLE.egg-info\top_level.txt reading manifest file 'pyLLE.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'pyLLE.egg-info\SOURCES.txt' copying pyLLE\ComputeLLE.jl -> build\lib\pyLLE C:\Users\andre\anaconda3\envs\LLEenv\Lib\site-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()
  installing to build\bdist.win-amd64\wheel
  running install
  running install_lib
  creating build\bdist.win-amd64
  creating build\bdist.win-amd64\wheel
  creating build\bdist.win-amd64\wheel\pyLLE
  copying build\lib\pyLLE\ComputeLLE.jl -> build\bdist.win-amd64\wheel\.\pyLLE
  copying build\lib\pyLLE\_analyzedisp.py -> build\bdist.win-amd64\wheel\.\pyLLE
  copying build\lib\pyLLE\_llesolver.py -> build\bdist.win-amd64\wheel\.\pyLLE
  copying build\lib\pyLLE\__init__.py -> build\bdist.win-amd64\wheel\.\pyLLE
  running install_egg_info
  Copying pyLLE.egg-info to build\bdist.win-amd64\wheel\.\pyLLE-4.1.1-py3.12.egg-info
  running install_scripts
  ----------
  ----------
  ----------
  ----------
  ----------
  ----------
  ----------
  ----------
  ----------
  ----------
  ----------
  ----------
  ----------
  ----------
  ----------
  ----------
  ----------
  ----------
  ----------
  ----------
  error: [WinError 2] Impossibile trovare il file specificato
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pyLLE Running setup.py clean for pyLLE Failed to build pyLLE ERROR: Could not build wheels for pyLLE, which is required to install pyproject.toml-based projects

Desktop (please complete the following information):

Thank you!

gregmoille commented 9 months ago

Duplicate from #48, will fix it later

Armaroli commented 9 months ago

Dear Greg,

I found a workaround: I changed the path in the setup.py.

The problem persists, julia has to be specified each time the solver is invoked. I presume because a hard path is specified in the following method

def LaunchJulia(bin): if bin is None: julia = "/opt/bin/julia" else: julia = bin

        ...

Thank you!

Have a nice day!

gregmoille commented 9 months ago

Thanks a bunch for the update! I was too busy with experiment I didn't have the time to check the issue earlier. This is essentially what I did in the new setup.py file, where Windows users would have to install manually 3 Julia packages and that will avoid a lot of issue when pip install it, since it seems Julia doesn't create a nice simlink every time when installed on Windows.