Code Monkey home page Code Monkey logo

compas_gmsh's Introduction

COMPAS GMSH

build GitHub - License PyPI - Python Version PyPI - Latest Release

COMPAS friendly interface for Gmsh.

Installation

conda create -n gmsh -c conda-forge compas
conda activate gmsh
pip install compas_gmsh

Getting Started

Have a look at some of the first examples in the documentation.

License

compas_gmsh provides a COMPAS friendly interface to Gmsh. Gmsh is released under GPL-2.0-or-later.

compas_gmsh's People

Contributors

licini avatar tomvanmele avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

franaudo

compas_gmsh's Issues

installation error

launched anaconda 3 as administrator and followed the installation instructions but without compas_view2
conda create -n gmsh -c conda-forge python=3.8 python-gmsh compas --yes
then followed next step:
(gmsh) C:\WINDOWS\system32>pip install -e .
got error:
ERROR: File "setup.py" or "setup.cfg" not found. Directory cannot be installed in editable mode: C:\WINDOWS\system32

if i run the example , Mesh Remeshing, i get error:

from compas_gmsh.models import MeshModel
ModuleNotFoundError: No module named 'compas_gmsh'

cannot install `openmesh` on Windows

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.