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

Error while installing nest2D with pip3 install nest2D #6

Open
aman-17 opened this issue Nov 18, 2020 · 12 comments
Open

Error while installing nest2D with pip3 install nest2D #6

aman-17 opened this issue Nov 18, 2020 · 12 comments

Comments

@aman-17
Copy link

aman-17 commented Nov 18, 2020

Hey there, I'm using Linux and when try to install it by pip3 install nest2D it gives me the below error

Defaulting to user installation because normal site-packages is not writeable
Collecting nest2D
Using cached nest2D-0.4.5.tar.gz (315 kB)
Building wheels for collected packages: nest2D
Building wheel for nest2D (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-d14338fw/nest2d/setup.py'"'"'; file='"'"'/tmp/pip-install-d14338fw/nest2d/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-6y1uy_mu
cwd: /tmp/pip-install-d14338fw/nest2d/
Complete output (78 lines):
/tmp/pip-install-d14338fw/nest2d/setup.py:16: DeprecationWarning: Due to possible ambiguity, 'convert()' is deprecated. Use 'convert_file()' or 'convert_text()'.
long_description = pypandoc.convert('README.md', format='md', to='rst')
running bdist_wheel
running build

CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
NLopt library cannot be found. Consider set NLopt_PATH environment
variable (missing: NLopt_INCLUDE_DIRS)
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
lib/libnest2d/cmake_modules/FindNLopt.cmake:62 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
lib/libnest2d/cmake_modules/RequirePackage.cmake:252 (find_package)
lib/libnest2d/include/libnest2d/optimizers/nlopt/CMakeLists.txt:3 (require_package)

-- Configuring incomplete, errors occurred!
See also "/tmp/pip-install-d14338fw/nest2d/build/temp.linux-x86_64-3.8/CMakeFiles/CMakeOutput.log".
See also "/tmp/pip-install-d14338fw/nest2d/build/temp.linux-x86_64-3.8/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-d14338fw/nest2d/setup.py", line 69, in
setup(
File "/usr/lib/python3/dist-packages/setuptools/init.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 223, in run
self.run_command('build')
File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3.8/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-d14338fw/nest2d/setup.py", line 42, in run
self.build_extension(ext)
File "/tmp/pip-install-d14338fw/nest2d/setup.py", line 66, in build_extension
subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-install-d14338fw/nest2d', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-d14338fw/nest2d/build/lib.linux-x86_64-3.8', '-DPYTHON_EXECUTABLE=/usr/bin/python3', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.

ERROR: Failed building wheel for nest2D
Running setup.py clean for nest2D
Failed to build nest2D
Installing collected packages: nest2D
Running setup.py install for nest2D ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-d14338fw/nest2d/setup.py'"'"'; file='"'"'/tmp/pip-install-d14338fw/nest2d/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-zi_zzeu_/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/aman17/.local/include/python3.8/nest2D
cwd: /tmp/pip-install-d14338fw/nest2d/
Complete output (80 lines):
/tmp/pip-install-d14338fw/nest2d/setup.py:16: DeprecationWarning: Due to possible ambiguity, 'convert()' is deprecated. Use 'convert_file()' or 'convert_text()'.
long_description = pypandoc.convert('README.md', format='md', to='rst')

-- CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
NLopt library cannot be found. Consider set NLopt_PATH environment
variable (missing: NLopt_INCLUDE_DIRS)
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
lib/libnest2d/cmake_modules/FindNLopt.cmake:62 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
lib/libnest2d/cmake_modules/RequirePackage.cmake:252 (find_package)
lib/libnest2d/include/libnest2d/optimizers/nlopt/CMakeLists.txt:3 (require_package)

   -- Configuring incomplete, errors occurred!
See also "/tmp/pip-install-d14338fw/nest2d/build/temp.linux-x86_64-3.8/CMakeFiles/CMakeOutput.log".
See also "/tmp/pip-install-d14338fw/nest2d/build/temp.linux-x86_64-3.8/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-d14338fw/nest2d/setup.py", line 69, in <module>
    setup(
  File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.8/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 61, in run
    return orig.install.run(self)
  File "/usr/lib/python3.8/distutils/command/install.py", line 589, in run
    self.run_command('build')
  File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.8/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/tmp/pip-install-d14338fw/nest2d/setup.py", line 42, in run
    self.build_extension(ext)
  File "/tmp/pip-install-d14338fw/nest2d/setup.py", line 66, in build_extension
    subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-install-d14338fw/nest2d', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-d14338fw/nest2d/build/lib.linux-x86_64-3.8', '-DPYTHON_EXECUTABLE=/usr/bin/python3', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.

-- ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-d14338fw/nest2d/setup.py'"'"'; file='"'"'/tmp/pip-install-d14338fw/nest2d/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-zi_zzeu_/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/aman17/.local/include/python3.8/nest2D Check the logs for full command output.

@Jordan0990
Copy link

hi aman-17 i have the same problem could you solve it?

@aman-17
Copy link
Author

aman-17 commented Nov 26, 2020

hi aman-17 i have the same problem could you solve it?

I have used other package instead of nest2D
Search for “maxrect” on github, clone it. I feel it is not as complicated as nest2D

@Jordan0990
Copy link

@aman-17 thank you very much.

@derekcbr
Copy link

Also can not install on Windows. It shows building wheel for nest2d(setup.py) ... error

@shirishd27
Copy link

hi aman-17 i have the same problem could you solve it?

I have used other package instead of nest2D Search for “maxrect” on github, clone it. I feel it is not as complicated as nest2D

can we use maxrect for nesting multiple shapes into a one rectangle.

@aman-17
Copy link
Author

aman-17 commented Jul 23, 2024

I am not sure but I guess we can use maxrect for nesting multiple shapes into a one rectangle.. The problem with nest2d not getting installed is because of python version. Nest2d can be installed on python3.6 or lower I guess. Its been long time I am not 100% sure about nest3d supporting python versions.

@shirishd27
Copy link

but in maxrect can we also nest irregular shapes?

@aman-17
Copy link
Author

aman-17 commented Jul 23, 2024

Yes you can, you can check this out: https://github.com/planetlabs/maxrect

@shirishd27
Copy link

if i want to contact you, how can i connect with you?

@aman-17
Copy link
Author

aman-17 commented Jul 23, 2024 via email

@balcklive
Copy link

if i want to contact you, how can i connect with you?

have you guys fix this problem? or just to switch a package?

@aman-17
Copy link
Author

aman-17 commented Oct 25, 2024

Hello @balcklive use python 3.6

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

5 participants