- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Erik, thank you for the update. We will share a workaround on this issue very soon.
We appreciate your patience.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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®.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page