oneAPI Registration, Download, Licensing and Installation
Support for Getting Started questions related to download, Installation and licensing for Intel oneAPI Toolkits and software development tools.
1345 Discussions

Broken: intel-oneapi-neural-compressor package Version 2.1.0-48866

uwmthdpt
Novice
1,684 Views

At the end of installing this package this is printed:

 

done
/opt/intel/oneapi/pytorch/1.13.10.2/../../neural-compressor/latest/install_neural-compressor.sh: 3: /opt/intel/oneapi/intelpython/latest/envs/pytorch-gpu/etc/conda/deactivate.d/deactivate-opencl-rt.sh: [[: not found
/opt/intel/oneapi/pytorch/1.13.10.2/../../neural-compressor/latest/install_neural-compressor.sh: 10: /opt/intel/oneapi/intelpython/latest/envs/pytorch-gpu/etc/conda/deactivate.d/deactivate-opencl-rt.sh: [[: not found
/opt/intel/oneapi/pytorch/1.13.10.2/../../neural-compressor/latest/install_neural-compressor.sh: 24: /opt/intel/oneapi/intelpython/latest/envs/pytorch-gpu/etc/conda/deactivate.d/deactivate-libstdcxx-patch.sh: [[: not found
/opt/intel/oneapi/pytorch/1.13.10.2/../../neural-compressor/latest/install_neural-compressor.sh: 24: /opt/intel/oneapi/intelpython/latest/envs/pytorch-gpu/etc/conda/activate.d/activate-libstdcxx-patch.sh: [[: not found
0
Success to install neural-compressor in pytorch-gpu.
/

 

Those scripts have a shebang of #!/bin/sh.  On my Ubuntu 22.04 machines that points to the Dash shell which does not support the Bash [[ ]] compound command syntax. Even if /bin/sh were to be symlinked to /bin/bash, Bash would see this and act like a POSIX compliant shell and behave the same. The scripts need fixing.

This version of this package is getting reinstalled over and over again(many times per day) on all our machines due  - I assume - these package issues.

Is anybody else seeing this?

 

0 Kudos
7 Replies
ArpanB_Intel
Moderator
1,565 Views

Hi Erik, thank you for sharing this with us. Please let us now if you are still facing this issue now.

 

We would like to know.

0 Kudos
uwmthdpt
Novice
1,559 Views

Yes, this is still an issue on multiple machines.

The metadata differences between the current and previous package versions are generally only relating to versioning(Depends,Provides,Replaces,Breaks fields).

intel-oneapi-neural-compressor-2.1.0-47239_amd64.deb
intel-oneapi-neural-compressor-2.1.0-48866_amd64.deb

The new bundled installer script only changes the version of the package installed by Conda and omits the packaging package:

diff 47239/opt/intel/oneapi/neural-compressor/2.1.0/install_neural-compressor.sh 48866/opt/intel/oneapi/neural-compressor/2.1.0/install_neural-compressor.sh
53c53
<         conda install -c "${ONEAPI_PATH}/conda_channel" -y -q neural-compressor-full=1.14.2 packaging --offline
---
>         conda install -c "${ONEAPI_PATH}/conda_channel" -y -q neural-compressor-full=2.1 --offline
0 Kudos
ArpanB_Intel
Moderator
1,423 Views

Erik, we have been intimated that this issue might be addressed now. Please let us know if you are still encountering the issue.


We would like to know.


0 Kudos
uwmthdpt
Novice
1,416 Views

This is still a problem. Not sure if it is related but there are 14 errors due to incorrect shell script syntax. See attached log.

 

0 Kudos
ArpanB_Intel
Moderator
1,385 Views

Erik, thank you for the update. We will share a workaround on this issue very soon.


We appreciate your patience.


0 Kudos
ArpanB_Intel
Moderator
1,337 Views

Erik, could you try using the following commands:

 

sudo apt remove neural-compressor

sudo apt autoremove

 

and reinstalling with :

 

sudo apt install neural-compressor

 

We would like to know.

 

0 Kudos
ArpanB_Intel
Moderator
1,294 Views

Erik, unfortunately we were unable to hear back from you.


If you have any further queries, please post a new question as this thread will no longer be monitored by Intel®.


0 Kudos
Reply