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

Unable to install it #21

Open
MinoUQ opened this issue Jul 5, 2024 · 0 comments
Open

Unable to install it #21

MinoUQ opened this issue Jul 5, 2024 · 0 comments

Comments

@MinoUQ
Copy link

MinoUQ commented Jul 5, 2024

Hey. I have troubles installing the module using pip on Ubuntu 22.04.3. When I try to install it, I get the following error:

Building wheel for miepy (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [31 lines of output]
running bdist_wheel
running build
gfortran -O3 -c Parameters.f90 -o ../../../build/temp.linux-x86_64-3.10/nfmds/Parameters.o
make: gfortran: No such file or directory
make: *** [makefile:69: ../../../build/temp.linux-x86_64-3.10/nfmds/Parameters.o] Error 127
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-install-evu7sxq0/miepy_a458b34f9d3742c9bab51090acf52865/setup.py", line 130, in
setup(
File "/usr/lib/python3/dist-packages/setuptools/init.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.10/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.10/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-evu7sxq0/miepy_a458b34f9d3742c9bab51090acf52865/setup.py", line 84, in run
build_nfmds(self.build_temp, self.build_lib)
File "/tmp/pip-install-evu7sxq0/miepy_a458b34f9d3742c9bab51090acf52865/setup.py", line 73, in build_nfmds
subprocess.check_call(' '.join(command), cwd=src_dir, shell=True)
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'make objdir=../../../build/temp.linux-x86_64-3.10/nfmds exedir=../../bin' returned non-zero exit status 2.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for miepy
Running setup.py clean for miepy
Failed to build miepy
Installing collected packages: miepy
Running setup.py install for miepy ... error
error: subprocess-exited-with-error

× Running setup.py install for miepy did not run successfully.
│ exit code: 1
╰─> [35 lines of output]
running install
/usr/lib/python3/dist-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
gfortran -O3 -c Parameters.f90 -o ../../../build/temp.linux-x86_64-3.10/nfmds/Parameters.o
make: gfortran: No such file or directory
make: *** [makefile:69: ../../../build/temp.linux-x86_64-3.10/nfmds/Parameters.o] Error 127
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-install-evu7sxq0/miepy_a458b34f9d3742c9bab51090acf52865/setup.py", line 130, in
setup(
File "/usr/lib/python3/dist-packages/setuptools/init.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.10/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.10/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 68, in run
return orig.install.run(self)
File "/usr/lib/python3.10/distutils/command/install.py", line 619, in run
self.run_command('build')
File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-evu7sxq0/miepy_a458b34f9d3742c9bab51090acf52865/setup.py", line 84, in run
build_nfmds(self.build_temp, self.build_lib)
File "/tmp/pip-install-evu7sxq0/miepy_a458b34f9d3742c9bab51090acf52865/setup.py", line 73, in build_nfmds
subprocess.check_call(' '.join(command), cwd=src_dir, shell=True)
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'make objdir=../../../build/temp.linux-x86_64-3.10/nfmds exedir=../../bin' returned non-zero exit status 2.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> miepy

Do you have any suggestion? ...

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