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

cannot install openmesh on Windows #3

Open
franaudo opened this issue Dec 16, 2021 · 0 comments
Open

cannot install openmesh on Windows #3

franaudo opened this issue Dec 16, 2021 · 0 comments

Comments

@franaudo
Copy link

Describe the bug
A clear and concise description of what the bug is.

When running the plate.py example, I get this error:

(fea2) λ C:/Miniconda3/envs/fea2/python.exe c:/Code/COMPAS/compas_gmsh/docs/examples/plate.py
True
0.010405040949193624
1.2481820702211406
OpenMesh is not installed. Install using `pip install openmesh`.
Traceback (most recent call last):
  File "c:\Code\COMPAS\compas_gmsh\docs\examples\plate.py", line 48, in <module>
    omesh = model.mesh_to_openmesh()
  File "c:\code\compas\compas_gmsh\src\compas_gmsh\models\model.py", line 154, in mesh_to_openmesh
    import openmesh as om  # noqa: F401
ModuleNotFoundError: No module named 'openmesh'

then I tried to install openmesh using both conda and pip, but with no luck.

To Reproduce

with conda:

C:\Code\COMPAS\compas_gmsh (main -> origin)
(fea2) λ conda install openmesh

not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.


Note that strict channel priority may have removed packages required for satisfiability.

and with pip:


C:\Code\COMPAS\compas_gmsh (main -> origin)
(fea2) λ pip install openmesh
Collecting openmesh                                                                                                                                                           Downloading openmesh-1.1.6.tar.gz (9.1 MB)
     |████████████████████████████████| 9.1 MB 6.4 MB/s
  Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in c:\miniconda3\envs\fea2\lib\site-packages (from openmesh) (1.20.3)
Building wheels for collected packages: openmesh
  Building wheel for openmesh (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:\Miniconda3\envs\fea2\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\franaudo\\AppData\\Local\\Temp\\pip-install-fb448nab\\openmesh_acd12813e2904304a07040b057123c99\\setup.py'"'"'; __file__='"'"'C:\\Users\\franaudo\\AppData\\Local\\Temp\\pip-install-fb448nab\\openmesh_acd12813e2904304a07040b057123c99\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\franaudo\AppData\Local\Temp\pip-wheel-pgieumza'
       cwd: C:\Users\franaudo\AppData\Local\Temp\pip-install-fb448nab\openmesh_acd12813e2904304a07040b057123c99\
  Complete output (47 lines):
  C:\Miniconda3\envs\fea2\lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
    warnings.warn(
  running bdist_wheel
  running build
  running build_ext
  Traceback (most recent call last):
    File "C:\Users\franaudo\AppData\Local\Temp\pip-install-fb448nab\openmesh_acd12813e2904304a07040b057123c99\setup.py", line 25, in run
      out = subprocess.check_output(['cmake', '--version'])
    File "C:\Miniconda3\envs\fea2\lib\subprocess.py", line 424, in check_output
      return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
    File "C:\Miniconda3\envs\fea2\lib\subprocess.py", line 505, in run
      with Popen(*popenargs, **kwargs) as process:
    File "C:\Miniconda3\envs\fea2\lib\subprocess.py", line 951, in __init__
      self._execute_child(args, executable, preexec_fn, close_fds,
    File "C:\Miniconda3\envs\fea2\lib\subprocess.py", line 1420, in _execute_child
      hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
  FileNotFoundError: [WinError 2] The system cannot find the file specified

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "C:\Users\franaudo\AppData\Local\Temp\pip-install-fb448nab\openmesh_acd12813e2904304a07040b057123c99\setup.py", line 82, in <module>
      setup(
    File "C:\Miniconda3\envs\fea2\lib\site-packages\setuptools\__init__.py", line 153, in setup
      return distutils.core.setup(**attrs)
    File "C:\Miniconda3\envs\fea2\lib\distutils\core.py", line 148, in setup
      dist.run_commands()
    File "C:\Miniconda3\envs\fea2\lib\distutils\dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "C:\Miniconda3\envs\fea2\lib\distutils\dist.py", line 985, in run_command
      cmd_obj.run()
    File "C:\Miniconda3\envs\fea2\lib\site-packages\wheel\bdist_wheel.py", line 299, in run
      self.run_command('build')
    File "C:\Miniconda3\envs\fea2\lib\distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "C:\Miniconda3\envs\fea2\lib\distutils\dist.py", line 985, in run_command
      cmd_obj.run()
    File "C:\Miniconda3\envs\fea2\lib\distutils\command\build.py", line 135, in run
      self.run_command(cmd_name)
    File "C:\Miniconda3\envs\fea2\lib\distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "C:\Miniconda3\envs\fea2\lib\distutils\dist.py", line 985, in run_command
      cmd_obj.run()
    File "C:\Users\franaudo\AppData\Local\Temp\pip-install-fb448nab\openmesh_acd12813e2904304a07040b057123c99\setup.py", line 27, in run
      raise RuntimeError("CMake must be installed to build the following extensions: " +
  RuntimeError: CMake must be installed to build the following extensions: openmesh
  ----------------------------------------
  ERROR: Failed building wheel for openmesh
  Running setup.py clean for openmesh
Failed to build openmesh
Installing collected packages: openmesh
    Running setup.py install for openmesh ... error
    ERROR: Command errored out with exit status 1:
     command: 'C:\Miniconda3\envs\fea2\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\franaudo\\AppData\\Local\\Temp\\pip-install-fb448nab\\openmesh_acd12813e2904304a07040b057123c99\\setup.py'"'"'; __file__='"'"'C:\\Users\\franaudo\\AppData\\Local\\Temp\\pip-install-fb448nab\\openmesh_acd12813e2904304a07040b057123c99\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\franaudo\AppData\Local\Temp\pip-record-d0sznf89\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Miniconda3\envs\fea2\Include\openmesh'
         cwd: C:\Users\franaudo\AppData\Local\Temp\pip-install-fb448nab\openmesh_acd12813e2904304a07040b057123c99\
    Complete output (51 lines):
    C:\Miniconda3\envs\fea2\lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
      warnings.warn(
    running install
    C:\Miniconda3\envs\fea2\lib\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_ext
    Traceback (most recent call last):
      File "C:\Users\franaudo\AppData\Local\Temp\pip-install-fb448nab\openmesh_acd12813e2904304a07040b057123c99\setup.py", line 25, in run
        out = subprocess.check_output(['cmake', '--version'])
      File "C:\Miniconda3\envs\fea2\lib\subprocess.py", line 424, in check_output
        return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
      File "C:\Miniconda3\envs\fea2\lib\subprocess.py", line 505, in run
        with Popen(*popenargs, **kwargs) as process:
      File "C:\Miniconda3\envs\fea2\lib\subprocess.py", line 951, in __init__
        self._execute_child(args, executable, preexec_fn, close_fds,
      File "C:\Miniconda3\envs\fea2\lib\subprocess.py", line 1420, in _execute_child
        hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
    FileNotFoundError: [WinError 2] The system cannot find the file specified

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\franaudo\AppData\Local\Temp\pip-install-fb448nab\openmesh_acd12813e2904304a07040b057123c99\setup.py", line 82, in <module>
        setup(
      File "C:\Miniconda3\envs\fea2\lib\site-packages\setuptools\__init__.py", line 153, in setup
        return distutils.core.setup(**attrs)
      File "C:\Miniconda3\envs\fea2\lib\distutils\core.py", line 148, in setup
        dist.run_commands()
      File "C:\Miniconda3\envs\fea2\lib\distutils\dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "C:\Miniconda3\envs\fea2\lib\distutils\dist.py", line 985, in run_command
        cmd_obj.run()
      File "C:\Miniconda3\envs\fea2\lib\site-packages\setuptools\command\install.py", line 68, in run
        return orig.install.run(self)
      File "C:\Miniconda3\envs\fea2\lib\distutils\command\install.py", line 546, in run
        self.run_command('build')
      File "C:\Miniconda3\envs\fea2\lib\distutils\cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "C:\Miniconda3\envs\fea2\lib\distutils\dist.py", line 985, in run_command
        cmd_obj.run()
      File "C:\Miniconda3\envs\fea2\lib\distutils\command\build.py", line 135, in run
        self.run_command(cmd_name)
      File "C:\Miniconda3\envs\fea2\lib\distutils\cmd.py", line 313, in run_command
        self.distribution.run_command(command)
version-externally-managed --compile --install-headers 'C:\Miniconda3\envs\fea2\Include\openmesh' Check the logs for full command output.

Desktop (please complete the following information):

  • OS: Windows 11
  • Python version 3.9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant