question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installing PyMAPDL and Python 3.10

See original GitHub issue

Context

Trying to fix #788 I decided to install another python environment so I installed python 3.10 using:

conda env create -n pymapdl3.10 python=3.10

That was fine.

Then I tried to install PyMADPL in edit mode:

pip install -e .

and I got the next error:

  ERROR: Command errored out with exit status 1:
     command: 'C:\ProgramData\Miniconda3\envs\pymapdl3.10\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\gayuso\\AppData\\Local\\Temp\\pip-install-uu35b3io\\ansys-mapdl-reader_22c60153026d4d7a8cd41edf27553703\\setup.py'"'"'; __file__='"'"'C:\\Users\\gayuso\\AppData\\Local\\Temp\\pip-install-uu35b3io\\ansys-mapdl-reader_22c60153026d4d7a8cd41edf27553703\\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'"'"'))' egg_info --egg-base 'C:\Users\gayuso\AppData\Local\Temp\pip-pip-egg-info-1g4o0iz4'
         cwd: C:\Users\gayuso\AppData\Local\Temp\pip-install-uu35b3io\ansys-mapdl-reader_22c60153026d4d7a8cd41edf27553703\
    Complete output (12 lines):
    Traceback (most recent call last):
      File "C:\Users\gayuso\AppData\Local\Temp\pip-install-uu35b3io\ansys-mapdl-reader_22c60153026d4d7a8cd41edf27553703\setup.py", line 14, in <module>
        import numpy as np
    ModuleNotFoundError: No module named 'numpy'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\gayuso\AppData\Local\Temp\pip-install-uu35b3io\ansys-mapdl-reader_22c60153026d4d7a8cd41edf27553703\setup.py", line 16, in <module>
        raise Exception('Please install numpy first with "pip install numpy"')
    Exception: Please install numpy first with "pip install numpy"
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/66/4a/044e8306cb4e6831f3196ea99f8a77c30946bd8f4d0bfa61a64d1a774ca7/ansys-mapdl-reader-0.51.5.tar.gz#sha256=2ee95979b2aeb0eb9c615056ed189c68078fffca565999b08c12470102f20417 (from https://pypi.org/simple/ansys-mapdl-reader/) (requires-python:>=3.6.*). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
  Downloading ansys-mapdl-reader-0.51.4.tar.gz (1.4 MB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1.4 MB ...
    ERROR: Command errored out with exit status 1:
     command: 'C:\ProgramData\Miniconda3\envs\pymapdl3.10\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\gayuso\\AppData\\Local\\Temp\\pip-install-uu35b3io\\ansys-mapdl-reader_4605f8333a184a3bbbf7fb974be5bef5\\setup.py'"'"'; __file__='"'"'C:\\Users\\gayuso\\AppData\\Local\\Temp\\pip-install-uu35b3io\\ansys-mapdl-reader_4605f8333a184a3bbbf7fb974be5bef5\\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'"'"'))' egg_info --egg-base 'C:\Users\gayuso\AppData\Local\Temp\pip-pip-egg-info-yaxre40_'
         cwd: C:\Users\gayuso\AppData\Local\Temp\pip-install-uu35b3io\ansys-mapdl-reader_4605f8333a184a3bbbf7fb974be5bef5\
    Complete output (12 lines):
    Traceback (most recent call last):
      File "C:\Users\gayuso\AppData\Local\Temp\pip-install-uu35b3io\ansys-mapdl-reader_4605f8333a184a3bbbf7fb974be5bef5\setup.py", line 11, in <module>
        import numpy as np
    ModuleNotFoundError: No module named 'numpy'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\gayuso\AppData\Local\Temp\pip-install-uu35b3io\ansys-mapdl-reader_4605f8333a184a3bbbf7fb974be5bef5\setup.py", line 13, in <module>
        raise Exception('Please install numpy first with "pip install numpy"')
    Exception: Please install numpy first with "pip install numpy"
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/7a/da/3b80fd9d02f72adb8a52b22cf73f4b7f32958b27d8cf2fba073cfb5c3765/ansys-mapdl-reader-0.51.4.tar.gz#sha256=c86ed1cb798c3dad829df36731ca4a9ce630ad05f1fef27ce7eb407e5ef081a2 (from https://pypi.org/simple/ansys-mapdl-reader/) (requires-python:>=3.6.*). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
  Downloading ansys-mapdl-reader-0.51.3.tar.gz (1.4 MB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1.4 MB 6.4 MB/s
    ERROR: Command errored out with exit status 1:
     command: 'C:\ProgramData\Miniconda3\envs\pymapdl3.10\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\gayuso\\AppData\\Local\\Temp\\pip-install-uu35b3io\\ansys-mapdl-reader_c93a7309271e419881f25c1572fe5f40\\setup.py'"'"'; __file__='"'"'C:\\Users\\gayuso\\AppData\\Local\\Temp\\pip-install-uu35b3io\\ansys-mapdl-reader_c93a7309271e419881f25c1572fe5f40\\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'"'"'))' egg_info --egg-base 'C:\Users\gayuso\AppData\Local\Temp\pip-pip-egg-info-yz774507'
         cwd: C:\Users\gayuso\AppData\Local\Temp\pip-install-uu35b3io\ansys-mapdl-reader_c93a7309271e419881f25c1572fe5f40\
    Complete output (12 lines):
    Traceback (most recent call last):
      File "C:\Users\gayuso\AppData\Local\Temp\pip-install-uu35b3io\ansys-mapdl-reader_c93a7309271e419881f25c1572fe5f40\setup.py", line 11, in <module>
        import numpy as np
    ModuleNotFoundError: No module named 'numpy'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\gayuso\AppData\Local\Temp\pip-install-uu35b3io\ansys-mapdl-reader_c93a7309271e419881f25c1572fe5f40\setup.py", line 13, in <module>
        raise Exception('Please install numpy first with "pip install numpy"')
    Exception: Please install numpy first with "pip install numpy"
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/02/b9/495f02904c37043be12c88a267f9bfc910fdfe3e7c649bbae20a1bfa17ac/ansys-mapdl-reader-0.51.3.tar.gz#sha256=f89f1ddeb6303d16dcc24326f3d7e6a856e560124e35e9e7ed9869e47ad367f5 (from https://pypi.org/simple/ansys-mapdl-reader/) (requires-python:>=3.6.*). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
  Downloading ansys-mapdl-reader-0.51.2.tar.gz (1.4 MB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1.4 MB 6.8 MB/s
    ERROR: Command errored out with exit status 1:
     command: 'C:\ProgramData\Miniconda3\envs\pymapdl3.10\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\gayuso\\AppData\\Local\\Temp\\pip-install-uu35b3io\\ansys-mapdl-reader_0050a35561704271a66feeb08620aa61\\setup.py'"'"'; __file__='"'"'C:\\Users\\gayuso\\AppData\\Local\\Temp\\pip-install-uu35b3io\\ansys-mapdl-reader_0050a35561704271a66feeb08620aa61\\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'"'"'))' egg_info --egg-base 'C:\Users\gayuso\AppData\Local\Temp\pip-pip-egg-info-4ywltytn'
         cwd: C:\Users\gayuso\AppData\Local\Temp\pip-install-uu35b3io\ansys-mapdl-reader_0050a35561704271a66feeb08620aa61\
    Complete output (12 lines):
    Traceback (most recent call last):
      File "C:\Users\gayuso\AppData\Local\Temp\pip-install-uu35b3io\ansys-mapdl-reader_0050a35561704271a66feeb08620aa61\setup.py", line 11, in <module>
        import numpy as np
    ModuleNotFoundError: No module named 'numpy'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\gayuso\AppData\Local\Temp\pip-install-uu35b3io\ansys-mapdl-reader_0050a35561704271a66feeb08620aa61\setup.py", line 13, in <module>
        raise Exception('Please install numpy first with "pip install numpy"')
    Exception: Please install numpy first with "pip install numpy"
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/51/e1/f8f69569b6f068ce06e34357a60de2b13feb0a70d8fa171a08f213caca50/ansys-mapdl-reader-0.51.2.tar.gz#sha256=66e5a9ecccf64064882c212652483ca48e87a39716c1fa9afdb940bbad6637b6 (from https://pypi.org/simple/ansys-mapdl-reader/) (requires-python:>=3.6.*). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
  Downloading ansys-mapdl-reader-0.51.1.tar.gz (1.4 MB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1.4 MB 6.4 MB/s
    ERROR: Command errored out with exit status 1:
     command: 'C:\ProgramData\Miniconda3\envs\pymapdl3.10\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\gayuso\\AppData\\Local\\Temp\\pip-install-uu35b3io\\ansys-mapdl-reader_c1c067f8f2db4b11ae04ee8021979349\\setup.py'"'"'; __file__='"'"'C:\\Users\\gayuso\\AppData\\Local\\Temp\\pip-install-uu35b3io\\ansys-mapdl-reader_c1c067f8f2db4b11ae04ee8021979349\\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'"'"'))' egg_info --egg-base 'C:\Users\gayuso\AppData\Local\Temp\pip-pip-egg-info-wrahh3tj'
         cwd: C:\Users\gayuso\AppData\Local\Temp\pip-install-uu35b3io\ansys-mapdl-reader_c1c067f8f2db4b11ae04ee8021979349\
    Complete output (12 lines):
    Traceback (most recent call last):
      File "C:\Users\gayuso\AppData\Local\Temp\pip-install-uu35b3io\ansys-mapdl-reader_c1c067f8f2db4b11ae04ee8021979349\setup.py", line 11, in <module>
        import numpy as np
    ModuleNotFoundError: No module named 'numpy'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\gayuso\AppData\Local\Temp\pip-install-uu35b3io\ansys-mapdl-reader_c1c067f8f2db4b11ae04ee8021979349\setup.py", line 13, in <module>
        raise Exception('Please install numpy first with "pip install numpy"')
    Exception: Please install numpy first with "pip install numpy"
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/3b/9c/82fa55492aec2e19c7ce8c6d02c49118f61073fc2cd198dfd864d40b5858/ansys-mapdl-reader-0.51.1.tar.gz#sha256=d8a33d7f5f3e45eeef5f646f404833c28a4f8b3def38e0a4a8fe1160322d172d (from https://pypi.org/simple/ansys-mapdl-reader/) (requires-python:>=3.6.*). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
  Downloading ansys-mapdl-reader-0.51.0.tar.gz (1.4 MB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1.4 MB 6.4 MB/s
    ERROR: Command errored out with exit status 1:
     command: 'C:\ProgramData\Miniconda3\envs\pymapdl3.10\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\gayuso\\AppData\\Local\\Temp\\pip-install-uu35b3io\\ansys-mapdl-reader_d04daf80200344248bf7b8125b81dc8d\\setup.py'"'"'; __file__='"'"'C:\\Users\\gayuso\\AppData\\Local\\Temp\\pip-install-uu35b3io\\ansys-mapdl-reader_d04daf80200344248bf7b8125b81dc8d\\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'"'"'))' egg_info --egg-base 'C:\Users\gayuso\AppData\Local\Temp\pip-pip-egg-info-2ekofy_g'
         cwd: C:\Users\gayuso\AppData\Local\Temp\pip-install-uu35b3io\ansys-mapdl-reader_d04daf80200344248bf7b8125b81dc8d\
    Complete output (12 lines):
    Traceback (most recent call last):
      File "C:\Users\gayuso\AppData\Local\Temp\pip-install-uu35b3io\ansys-mapdl-reader_d04daf80200344248bf7b8125b81dc8d\setup.py", line 10, in <module>
        import numpy as np
    ModuleNotFoundError: No module named 'numpy'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\gayuso\AppData\Local\Temp\pip-install-uu35b3io\ansys-mapdl-reader_d04daf80200344248bf7b8125b81dc8d\setup.py", line 12, in <module>
        raise Exception('Please install numpy first with "pip install numpy"')
    Exception: Please install numpy first with "pip install numpy"
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/11/c5/24902eb907da6c33649a791621b4133d1016c6d4c3a57dda2c4cbad97b19/ansys-mapdl-reader-0.51.0.tar.gz#sha256=601fc5fa6518e1e3f30c8a59d0ae688d9fc26aca9fe17e17563a78beed8be800 (from https://pypi.org/simple/ansys-mapdl-reader/) (requires-python:>=3.6.*). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
  Downloading ansys-mapdl-reader-0.50.16.tar.gz (1.4 MB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1.4 MB ...
    ERROR: Command errored out with exit status 1:
     command: 'C:\ProgramData\Miniconda3\envs\pymapdl3.10\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\gayuso\\AppData\\Local\\Temp\\pip-install-uu35b3io\\ansys-mapdl-reader_181b3e6c62774594b193276ec8fbb8a2\\setup.py'"'"'; __file__='"'"'C:\\Users\\gayuso\\AppData\\Local\\Temp\\pip-install-uu35b3io\\ansys-mapdl-reader_181b3e6c62774594b193276ec8fbb8a2\\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'"'"'))' egg_info --egg-base 'C:\Users\gayuso\AppData\Local\Temp\pip-pip-egg-info-kqfmvp3j'
         cwd: C:\Users\gayuso\AppData\Local\Temp\pip-install-uu35b3io\ansys-mapdl-reader_181b3e6c62774594b193276ec8fbb8a2\
    Complete output (12 lines):
    Traceback (most recent call last):
      File "C:\Users\gayuso\AppData\Local\Temp\pip-install-uu35b3io\ansys-mapdl-reader_181b3e6c62774594        import numpy as np
    ModuleNotFoundError: No module named 'numpy'
    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\gayuso\AppData\Local\Temp\pip-install-uu35b3io\ansys-mapdl-reader_181b3e6c62774594b193276ec8fbb8a2\setup.py", line 12, in <module>
        raise Exception('Please install numpy first with "pip install numpy"')
    Exception: Please install numpy first with "pip install numpy"
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/da/02/d68110a72a19e4b9137e18f5114eb89bca954beea55ba9aa7cd2efbeccbd/ansys-mapdl-reader-0.50.16.tar.gz#sha256=2aedc4412e1c78fecdaac7187cfdf6f454b7a15ae4c28cfdbd05c2d49ab67c37 (from https://pypi.org/simple/ansys-mapdl-reader/) (requires-python:>=3.6.*). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
  Downloading ansys-mapdl-reader-0.50.15.tar.gz (1.4 MB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1.4 MB 6.8 MB/s
    ERROR: Command errored out with exit status 1:
     command: 'C:\ProgramData\Miniconda3\envs\pymapdl3.10\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\gayuso\\AppData\\Local\\Temp\\pip-install-uu35b3io\\ansys-mapdl-reader_0302950037814e5cbee99b6b3692907c\\setup.py'"'"'; __file__='"'"'C:\\Users\\gayuso\\AppData\\Local\\Temp\\pip-install-uu35b3io\\ansys-mapdl-reader_0302950037814e5cbee99b6b3692907c\\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'"'"'))' egg_info --egg-base 'C:\Users\gayuso\AppData\Local\Temp\pip-pip-egg-info-g0llb0ty'
         cwd: C:\Users\gayuso\AppData\Local\Temp\pip-install-uu35b3io\ansys-mapdl-reader_0302950037814e5cbee99b6b3692907c\
    Complete output (12 lines):
    Traceback (most recent call last):
      File "C:\Users\gayuso\AppData\Local\Temp\pip-install-uu35b3io\ansys-mapdl-reader_0302950037814e5cbee99b6b3692907c\setup.py", line 10, in <module>
        import numpy as np
    ModuleNotFoundError: No module named 'numpy'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\gayuso\AppData\Local\Temp\pip-install-uu35b3io\ansys-mapdl-reader_0302950037814e5cbee99b6b3692907c\setup.py", line 12, in <module>
        raise Exception('Please install numpy first with "pip install numpy"')
    Exception: Please install numpy first with "pip install numpy"
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/20/40/1b5df899142486c6274193acc9f810f23856155f97f0a987fb440e31c22c/ansys-mapdl-reader-0.50.15.tar.gz#sha256=c9352d6a69e027c15d1d465fe2350f085b47c402dc42bd3d8bdb52e6e3aaab0d (from https://pypi.org/simple/ansys-mapdl-reader/) (requires-python:>=3.6.*). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement ansys-mapdl-reader>=0.50.15 (from ansys-mapdl-core) (from versions: 0.50.0, 0.50.1, 0.50.2, 0.50.3, 0.50.4, 0.50.5, 0.50.6, 0.50.7, 0.50.8, 0.50.9, 0.50.10, 0.50.11, 0.50.12, 0.50.13, 0.50.14, 0.50.15, 0.50.16, 0.51.0, 0.51.1, 0.51.2, 0.51.3, 0.51.4, 0.51.5)
ERROR: No matching distribution found for ansys-mapdl-reader>=0.50.15

Describe the bug

ModuleNotFoundError: No module named β€˜numpy’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\gayuso\AppData\Local\Temp\pip-install-uu35b3io\ansys-mapdl-reader_22c60153026d4d7a8cd41edf27553703\setup.py", line 16, in <module>
    raise Exception('Please install numpy first with "pip install numpy"')
Exception: Please install numpy first with "pip install numpy"

It seems that Numpy is required before it is installed??

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
akaszynskicommented, Dec 30, 2021

Issue is there’s no vtk for Python 3.10 at the moment. We’re going to have to wait until that’s supported.

VTK support is a common issue that we’ve had in the past and we’ve considered dropping support for vtk and making it a soft dependency as not everyone can install VTK.

1reaction
germa89commented, Jun 30, 2022

I just test it, and it works! Thank you @akaszynski !

Python version

(pymapdlpy310) PS C:\Users\gayuso\pymapdl> python --version
Python 3.10.4

Windows version:

Windows 11

List of packages:

Package                               Version   Editable project location
------------------------------------- --------- -------------------------
aiohttp                               3.8.1
aiosignal                             1.2.0
ansys-api-mapdl                       0.5.1
ansys-api-platform-instancemanagement 1.0.0b3
ansys-mapdl-core                      0.63.dev0 C:\Users\gayuso\pymapdl
ansys-mapdl-reader                    0.51.14
ansys-platform-instancemanagement     1.0.2
appdirs                               1.4.4
async-timeout                         4.0.2
attrs                                 21.4.0
certifi                               2022.6.15
charset-normalizer                    2.1.0
colorama                              0.4.5
cycler                                0.11.0
fonttools                             4.33.3
frozenlist                            1.3.0
geomdl                                5.3.1
googleapis-common-protos              1.56.3
grpcio                                1.47.0
idna                                  3.3
imageio                               2.19.3
importlib-metadata                    4.12.0
kiwisolver                            1.4.3
matplotlib                            3.5.2
multidict                             6.0.2
numpy                                 1.23.0
packaging                             21.3
Pillow                                9.1.1
pip                                   22.1.2
protobuf                              3.20.1
protoc-gen-swagger                    0.1.0
pyiges                                0.2.1
pyparsing                             3.0.9
python-dateutil                       2.8.2
pyvista                               0.34.2   <========This!
scipy                                 1.8.1
scooby                                0.5.12
setuptools                            61.2.0
six                                   1.16.0
tqdm                                  4.64.0
vtk                                   9.2.0rc1
wheel                                 0.37.1
wincertstore                          0.2
wslink                                1.6.5
yarl                                  1.7.2
zipp                                  3.8.0
Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting Started β€” PyMAPDL
The ansys.mapdl.core package currently supports Python 3.7 through Python 3.10 on Windows, Mac OS, and Linux. Install the latest release from PyPi with:....
Read more >
pyansys/pymapdl: Pythonic interface to MAPDL - GitHub
The ansys-mapdl-core package currently supports Python 3.7 through Python 3.10 on Windows, Mac OS, and Linux. Install the latest release from PyPi with:...
Read more >
ansys-mapdl-reader - PyPI
If you wish to install PyMAPDL-Reader in Python 3.10, you can still do it by using the unofficial VTK wheel from PyVista using...
Read more >
Installing PyAnsys modules in a Virtual Environment - LinkedIn
In short, the PyAnsys initiative is a collection of Python ... already installed to make use of the PyAnsys modules such as PyMAPDL...
Read more >
pyansys - PyDigger
`PyMAPDL Reader <https://reader.docs.pyansys.com/>`_: Pythonic interface to read legacy ... You can install this on an isolated system with a fresh Python ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found