Error: Cannot find module @rollup/rollup-linux-x64-gnu on Docker container

Describe the bug
I researched and tried on the sites below and on many different platforms, but I could not find a solution. I am using node:lts and also I cannot download this module in my docker container due to system incompatibility.
So I honestly don't know what to do right now.
https://github.com/vitejs/vite/issues/15120
https://github.com/rollup/rollup/issues/5194
https://github.com/vitejs/vite/issues/15167
Reproduction
https://stackblitz.com/edit/vite-yxshfw?file=docker-compose.yml,package.json
Steps to reproduce
No response
System Info
System:
2024-01-03 10:37:37 my-app  |     OS: Linux 5.15 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
2024-01-03 10:37:37 my-app  |     CPU: (12) x64 AMD Ryzen 5 4600H with Radeon Graphics
2024-01-03 10:37:37 my-app  |     Memory: 5.12 GB / 7.45 GB
2024-01-03 10:37:37 my-app  |     Container: Yes
2024-01-03 10:37:37 my-app  |     Shell: 5.2.15 - /bin/bash
2024-01-03 10:37:37 my-app  |   Binaries:
2024-01-03 10:37:37 my-app  |     Node: 20.10.0 - /usr/local/bin/node
2024-01-03 10:37:37 my-app  |     Yarn: 1.22.19 - /usr/local/bin/yarn
2024-01-03 10:37:37 my-app  |     npm: 10.2.3 - /usr/local/bin/npm
2024-01-03 10:37:37 my-app  |   npmPackages:
2024-01-03 10:37:37 my-app  |     @vitejs/plugin-vue: ^4.5.2 => 4.5.2
2024-01-03 10:37:37 my-app  |     vite: ^5.0.10 => 5.0.10

Used Package Manager
npm
Logs
2024-01-03 11:02:35 my-app  |
2024-01-03 11:02:35 my-app  | ><EMAIL_ADDRESS>dev
2024-01-03 11:02:35 my-app  | > npx vite
2024-01-03 11:02:35 my-app  |
2024-01-03 11:02:37 my-app  | /usr/src/app/node_modules/rollup/dist/native.js:87
2024-01-03 11:02:37 my-app  |             throw new Error(
2024-01-03 11:02:37 my-app  |                   ^
2024-01-03 11:02:37 my-app  |
2024-01-03 11:02:37 my-app  | Error: Cannot find module @rollup/rollup-linux-x64-gnu. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
2024-01-03 11:02:37 my-app  |     at requireWithFriendlyError (/usr/src/app/node_modules/rollup/dist/native.js:87:9)
2024-01-03 11:02:37 my-app  |     at Object.<anonymous> (/usr/src/app/node_modules/rollup/dist/native.js:96:48)
2024-01-03 11:02:37 my-app  |     ... 3 lines matching cause stack trace ...
2024-01-03 11:02:37 my-app  |     at Module._load (node:internal/modules/cjs/loader:1023:12)
2024-01-03 11:02:37 my-app  |     at cjsLoader (node:internal/modules/esm/translators:345:17)
2024-01-03 11:02:37 my-app  |     at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:294:7)
2024-01-03 11:02:37 my-app  |     at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
2024-01-03 11:02:37 my-app  |     at async ModuleLoader.import (node:internal/modules/esm/loader:329:24) {
2024-01-03 11:02:37 my-app  |   [cause]: Error: Cannot find module '@rollup/rollup-linux-x64-gnu'
2024-01-03 11:02:37 my-app  |   Require stack:
2024-01-03 11:02:37 my-app  |   - /usr/src/app/node_modules/rollup/dist/native.js
2024-01-03 11:02:37 my-app  |       at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
2024-01-03 11:02:37 my-app  |       at Module._load (node:internal/modules/cjs/loader:985:27)
2024-01-03 11:02:37 my-app  |       at Module.require (node:internal/modules/cjs/loader:1235:19)
2024-01-03 11:02:37 my-app  |       at require (node:internal/modules/helpers:176:18)
2024-01-03 11:02:37 my-app  |       at requireWithFriendlyError (/usr/src/app/node_modules/rollup/dist/native.js:69:10)
2024-01-03 11:02:37 my-app  |       at Object.<anonymous> (/usr/src/app/node_modules/rollup/dist/native.js:96:48)
2024-01-03 11:02:37 my-app  |       at Module._compile (node:internal/modules/cjs/loader:1376:14)
2024-01-03 11:02:37 my-app  |       at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
2024-01-03 11:02:37 my-app  |       at Module.load (node:internal/modules/cjs/loader:1207:32)
2024-01-03 11:02:37 my-app  |       at Module._load (node:internal/modules/cjs/loader:1023:12) {
2024-01-03 11:02:37 my-app  |     code: 'MODULE_NOT_FOUND',
2024-01-03 11:02:37 my-app  |     requireStack: [ '/usr/src/app/node_modules/rollup/dist/native.js' ]
2024-01-03 11:02:37 my-app  |   }
2024-01-03 11:02:37 my-app  | }
2024-01-03 11:02:37 my-app  |
2024-01-03 11:02:37 my-app  | Node.js v20.10.0
my-app exited with code 1

Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

If i try yarn rollup fixing but esbuild giving error :D
yarn run v1.22.19
$ vite
2024-01-03 12:45:46 my-app  | failed to load config from /usr/src/app/vite.config.js
2024-01-03 12:45:46 my-app  | error when starting dev server:
2024-01-03 12:45:46 my-app  | Error:
2024-01-03 12:45:46 my-app  | You installed esbuild for another platform than the one you're currently using.
2024-01-03 12:45:46 my-app  | This won't work because esbuild is written with native code and needs to
2024-01-03 12:45:46 my-app  | install a platform-specific binary executable.
2024-01-03 12:45:46 my-app  |
2024-01-03 12:45:46 my-app  | Specifically the "@esbuild/win32-x64" package is present but this platform
2024-01-03 12:45:46 my-app  | needs the "@esbuild/linux-x64" package instead. People often get into this
2024-01-03 12:45:46 my-app  | situation by installing esbuild on Windows or macOS and copying "node_modules"
2024-01-03 12:45:46 my-app  | into a Docker image that runs Linux, or by copying "node_modules" between
2024-01-03 12:45:46 my-app  | Windows and WSL environments.
2024-01-03 12:45:46 my-app  |
2024-01-03 12:45:46 my-app  | If you are installing with npm, you can try not copying the "node_modules"
2024-01-03 12:45:46 my-app  | directory when you copy the files over, and running "npm ci" or "npm install"
2024-01-03 12:45:46 my-app  | on the destination platform after the copy. Or you could consider using yarn
2024-01-03 12:45:46 my-app  | instead of npm which has built-in support for installing a package on multiple
2024-01-03 12:45:46 my-app  | platforms simultaneously.
2024-01-03 12:45:46 my-app  |
2024-01-03 12:45:46 my-app  | If you are installing with yarn, you can try listing both this platform and the
2024-01-03 12:45:46 my-app  | other platform in your ".yarnrc.yml" file using the "supportedArchitectures"
2024-01-03 12:45:46 my-app  | feature: https://yarnpkg.com/configuration/yarnrc/#supportedArchitectures
2024-01-03 12:45:46 my-app  | Keep in mind that this means multiple copies of esbuild will be present.
2024-01-03 12:45:46 my-app  |
2024-01-03 12:45:46 my-app  | Another alternative is to use the "esbuild-wasm" package instead, which works
2024-01-03 12:45:46 my-app  | the same way on all platforms. But it comes with a heavy performance cost and
2024-01-03 12:45:46 my-app  | can sometimes be 10x slower than the "esbuild" package, so you may also not
2024-01-03 12:45:46 my-app  | want to do that.
2024-01-03 12:45:46 my-app  |
2024-01-03 12:45:46 my-app  |     at generateBinPath (/usr/src/app/node_modules/esbuild/lib/main.js:1910:17)
2024-01-03 12:45:46 my-app  |     at esbuildCommandAndArgs (/usr/src/app/node_modules/esbuild/lib/main.js:1991:33)
2024-01-03 12:45:46 my-app  |     at ensureServiceIsRunning (/usr/src/app/node_modules/esbuild/lib/main.js:2162:25)
2024-01-03 12:45:46 my-app  |     at build (/usr/src/app/node_modules/esbuild/lib/main.js:2047:26)
2024-01-03 12:45:46 my-app  |     at bundleConfigFile (file:///usr/src/app/node_modules/vite/dist/node/chunks/dep-R0I0XnyH.js:67897:26)
2024-01-03 12:45:46 my-app  |     at loadConfigFromFile (file:///usr/src/app/node_modules/vite/dist/node/chunks/dep-R0I0XnyH.js:67873:31)
2024-01-03 12:45:46 my-app  |     at resolveConfig (file:///usr/src/app/node_modules/vite/dist/node/chunks/dep-R0I0XnyH.js:67475:34)
2024-01-03 12:45:46 my-app  |     at _createServer (file:///usr/src/app/node_modules/vite/dist/node/chunks/dep-R0I0XnyH.js:59972:26)
2024-01-03 12:45:46 my-app  |     at createServer (file:///usr/src/app/node_modules/vite/dist/node/chunks/dep-R0I0XnyH.js:59969:12)
2024-01-03 12:45:46 my-app  |     at CAC.<anonymous> (file:///usr/src/app/node_modules/vite/dist/node/cli.js:764:30)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
my-app exited with code 1

Hi- Has anyone started working on this issue?

@Lymah123 You can change package manager to yarn and this line add to package.json
"resolutions": {
  "rollup": "npm:@rollup/wasm-node"
}
```

and for vite.config.js you can try this

```
export default defineConfig({
  // Other Vite config options...
  esbuild: {
    target: 'esnext',
    platform: 'linux',
  }
  // Other Vite config options...
});
```

Can you confirm is works or not for you?

@Lymah123 You can change package manager to yarn and this line add to package.json
"resolutions": {
  "rollup": "npm:@rollup/wasm-node"
}

and for vite.config.js you can try this
export default defineConfig({
  // Other Vite config options...
  esbuild: {
    target: 'esnext',
    platform: 'linux',
  }
  // Other Vite config options...
});

Can you confirm is works or not for you?

Hi @BeycanDeveloper, sorry for the late response.  I will check it out and let you know.


fail to backpropagate after proj.fbp

Similar to issue61, I also want to propagate the loss after fbp, but find the grad_data of CT image after proj.fbp was not been saved. I find some update about this issue in test_recon_projections_NN.py, while failed to "# from leaptorch import FBP". Was the function "FBP" loaded to github?(I have uninstalled the old version and update to 1.16)
Actually, it's really import to use the loss in image domain in training process in some NNs, e.g. synthesis DECT from basis images. which means we hope proj.fbp to save the grad information.
I'm really thankful to your kind attention and I have cited this project in my sooner publication. Looking forward to your reply~

Would you verify that an older version of LEAP is not being loaded by running this function: leapt.about() and make sure it says v1.16?

Sorry. Where to run this function? shell or .py? I can't run  leapt.about() in .py doc.
I just uninstall ant install the v1.16. Here is the history in linux terminal.

Run this in the python script. I think you actually need to do: proj.leapct.about()

Also note that version 0.99 is very very old and the API has changed since this version.

yeah, you are right.
I get the wrong version.

So how can i fit it please? As is shown above, I have run the uninstall and install. How can I change to the right version?

Navigate to your site-packages folder and delete all files with the word “leap” in them.

thanks but it seems not work.
Here is the detailed information when i run pip install -v .
Processing /data4/liqiaoxin/code/LEAP2/LEAP-main
Running command python setup.py egg_info
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The CUDA compiler identification is NVIDIA 12.0.76
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc - skipped
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found CUDA: /usr/local/cuda (found suitable version "12.0", minimum required is "11.7")
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Configuring done
-- Generating done
-- Build files have been written to: /data4/liqiaoxin/code/LEAP2/LEAP-main/build
[  5%] Building CXX object src/CMakeFiles/leapct.dir/tomographic_models_c_interface.cpp.o
[  5%] Building CXX object src/CMakeFiles/leapct.dir/list_of_tomographic_models.cpp.o
[  7%] Building CXX object src/CMakeFiles/leapct.dir/tomographic_models.cpp.o
[ 10%] Building CXX object src/CMakeFiles/leapct.dir/parameters.cpp.o
[ 12%] Building CXX object src/CMakeFiles/leapct.dir/filtered_backprojection.cpp.o
[ 15%] Building CXX object src/CMakeFiles/leapct.dir/projectors.cpp.o
[ 20%] Building CXX object src/CMakeFiles/leapct.dir/projectors_SF_cpu.cpp.o
[ 20%] Building CXX object src/CMakeFiles/leapct.dir/projectors_Joseph_cpu.cpp.o
[ 22%] Building CXX object src/CMakeFiles/leapct.dir/projectors_symmetric_cpu.cpp.o
[ 25%] Building CXX object src/CMakeFiles/leapct.dir/projectors_Siddon_cpu.cpp.o
[ 27%] Building CXX object src/CMakeFiles/leapct.dir/sensitivity_cpu.cpp.o
[ 30%] Building CXX object src/CMakeFiles/leapct.dir/ramp_filter_cpu.cpp.o
[ 32%] Building CXX object src/CMakeFiles/leapct.dir/ray_weighting_cpu.cpp.o
[ 35%] Building CXX object src/CMakeFiles/leapct.dir/find_center_cpu.cpp.o
[ 37%] Building CXX object src/CMakeFiles/leapct.dir/sinogram_replacement.cpp.o
[ 40%] Building CXX object src/CMakeFiles/leapct.dir/resample_cpu.cpp.o
[ 42%] Building CXX object src/CMakeFiles/leapct.dir/cpu_utils.cpp.o
[ 45%] Building CXX object src/CMakeFiles/leapct.dir/phantom.cpp.o
[ 47%] Building CXX object src/CMakeFiles/leapct.dir/analytic_ray_tracing.cpp.o
[ 50%] Building CXX object src/CMakeFiles/leapct.dir/rebin.cpp.o
[ 52%] Building CXX object src/CMakeFiles/leapct.dir/file_io.cpp.o
[ 55%] Building CUDA object src/CMakeFiles/leapct.dir/projectors_SF.cu.o
[ 57%] Building CUDA object src/CMakeFiles/leapct.dir/projectors_extendedSF.cu.o
[ 60%] Building CUDA object src/CMakeFiles/leapct.dir/projectors_Joseph.cu.o
[ 62%] Building CUDA object src/CMakeFiles/leapct.dir/projectors_symmetric.cu.o
[ 65%] Building CUDA object src/CMakeFiles/leapct.dir/projectors_attenuated.cu.o
[ 67%] Building CUDA object src/CMakeFiles/leapct.dir/projectors_Siddon.cu.o
[ 70%] Building CUDA object src/CMakeFiles/leapct.dir/sensitivity.cu.o
[ 72%] Building CUDA object src/CMakeFiles/leapct.dir/ramp_filter.cu.o
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/ramp_filter.cu(744): warning #550-D: variable "result" was set but never used
Remark: The warnings can be suppressed with "-diag-suppress "
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/ramp_filter.cu(811): warning #550-D: variable "result" was set but never used
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/ramp_filter.cu(1149): warning #550-D: variable "result" was set but never used
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/ramp_filter.cu(1331): warning #550-D: variable "result" was set but never used
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/ramp_filter.cu(1456): warning #550-D: variable "result" was set but never used
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/ramp_filter.cu(1920): warning #550-D: variable "cudaStatus" was set but never used
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_symmetric.cu: In function ‘bool project_symmetric(float*&, float*, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_symmetric.cu:768:48: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
768 |         cudaTextureObject_t d_data_txt = NULL;
|                                                ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_symmetric.cu: In function ‘bool backproject_symmetric(float*, float*&, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_symmetric.cu:848:48: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
848 |         cudaTextureObject_t d_data_txt = NULL;
|                                                ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_symmetric.cu: In function ‘bool inverse_symmetric(float*, float*&, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_symmetric.cu:927:48: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
927 |         cudaTextureObject_t d_data_txt = NULL;
|                                                ^
[ 75%] Building CUDA object src/CMakeFiles/leapct.dir/resample.cu.o
[ 77%] Building CUDA object src/CMakeFiles/leapct.dir/noise_filters.cu.o
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_SF.cu: In function ‘bool project_SF(float*&, float*, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_SF.cu:1603:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
1603 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_SF.cu: In function ‘bool backproject_SF(float*, float*&, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_SF.cu:1712:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
1712 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_extendedSF.cu: In function ‘bool project_eSF(float*&, float*, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_extendedSF.cu:1562:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
1562 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_extendedSF.cu: In function ‘bool backproject_eSF(float*, float*&, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_extendedSF.cu:1655:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
1655 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_extendedSF.cu:1666:57: warning: NULL used in arithmetic [-Wpointer-arith]
1666 |     if (d_data_array == NULL || d_data_txt == NULL)
|                                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_Joseph.cu: In function ‘bool project_Joseph_modular(float*&, float*, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_Joseph.cu:1815:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
1815 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_Joseph.cu: In function ‘bool backproject_Joseph_modular(float*, float*&, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_Joseph.cu:1969:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
1969 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
[ 80%] Building CUDA object src/CMakeFiles/leapct.dir/total_variation.cu.o
[ 82%] Building CUDA object src/CMakeFiles/leapct.dir/matching_pursuit.cu.o
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/ramp_filter.cu: In function ‘bool parallelRay_derivative(float*&, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/ramp_filter.cu:1754:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
1754 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/ramp_filter.cu: In function ‘bool parallelRay_derivative_chunk(float*&, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/ramp_filter.cu:1841:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
1841 |         cudaTextureObject_t d_data_txt = NULL;
|                                         ^
[ 85%] Building CUDA object src/CMakeFiles/leapct.dir/bilateral_filter.cu.o
[ 87%] Building CUDA object src/CMakeFiles/leapct.dir/guided_filter.cu.o
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_attenuated.cu: In function ‘bool project_attenuated(float*&, float*, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_attenuated.cu:916:39: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
916 |     cudaTextureObject_t d_mu_txt = NULL;
|                                       ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_attenuated.cu:928:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
928 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_attenuated.cu: In function ‘bool backproject_attenuated(float*, float*&, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_attenuated.cu:1030:39: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
1030 |     cudaTextureObject_t d_mu_txt = NULL;
|                                       ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_attenuated.cu:1045:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
1045 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
[ 90%] Building CUDA object src/CMakeFiles/leapct.dir/geometric_calibration.cu.o
[ 92%] Building CUDA object src/CMakeFiles/leapct.dir/ray_weighting.cu.o
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/resample.cu: In function ‘bool downSample(float*, int*, float*, int*, float*, int)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/resample.cu:119:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
119 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/resample.cu: In function ‘bool upSample(float*, int*, float*, int*, float*, int)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/resample.cu:161:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
161 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
[ 95%] Building CUDA object src/CMakeFiles/leapct.dir/scatter_models.cu.o
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/bilateral_filter.cu: In function ‘bool bilateralFilter(float*, int, int, int, float, float, bool, int)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/bilateral_filter.cu:286:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
286 |     cudaTextureObject_t f_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/bilateral_filter.cu: In function ‘bool priorBilateralFilter(float*, int, int, int, float, float, float*, bool, int)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/bilateral_filter.cu:391:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
391 |     cudaTextureObject_t f_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/bilateral_filter.cu:393:42: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
393 |     cudaTextureObject_t Bf_data_txt = NULL;
|                                          ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/bilateral_filter.cu: In function ‘bool scaledBilateralFilter(float*, int, int, int, float, float, float, bool, int)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/bilateral_filter.cu:505:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
505 |     cudaTextureObject_t f_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/bilateral_filter.cu:507:42: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
507 |     cudaTextureObject_t Bf_data_txt = NULL;
|                                          ^
[ 97%] Building CUDA object src/CMakeFiles/leapct.dir/cuda_utils.cu.o
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/guided_filter.cu: In function ‘bool guidedFilter(float*, int, int, int, int, float, bool, int)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/guided_filter.cu:144:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
144 |     cudaTextureObject_t f_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/noise_filters.cu: In function ‘bool lowOrHighPassFilter_txt(float*, int, int, int, float, int, bool, int, int, int, float*)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/noise_filters.cu:861:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
861 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/matching_pursuit.cu: In function ‘bool matchingPursuit(float*, int, int, int, float*, int, int, int, int, float, int, bool, int)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/matching_pursuit.cu:531:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
531 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/matching_pursuit.cu: In function ‘bool matchingPursuit_basis(float*, int, int, int, float*, int, int, int, int, float, int, bool, int)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/matching_pursuit.cu:670:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
670 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/cuda_utils.cu(630): warning #550-D: variable "cudaStatus" was set but never used
Remark: The warnings can be suppressed with "-diag-suppress "
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/cuda_utils.cu(666): warning #550-D: variable "cudaStatus" was set but never used
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/cuda_utils.cu(702): warning #550-D: variable "cudaStatus" was set but never used
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/scatter_models.cu(749): warning #177-D: variable "cudaStatus" was declared but never referenced
Remark: The warnings can be suppressed with "-diag-suppress "
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/geometric_calibration.cu: In function ‘float consistencyCost(float*, parameters*, bool, float, float, float, float)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/geometric_calibration.cu:275:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
275 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_Siddon.cu: In function ‘bool project_Siddon(float*&, float*, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_Siddon.cu:1505:48: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
1505 |         cudaTextureObject_t d_data_txt = NULL;
|                                                ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_Siddon.cu: In function ‘bool backproject_Siddon(float*, float*&, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_Siddon.cu:1591:48: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
1591 |         cudaTextureObject_t d_data_txt = NULL;
|                                                ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_Siddon.cu: In function ‘bool project_modular(float*&, float*, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_Siddon.cu:1720:48: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
1720 |         cudaTextureObject_t d_data_txt = NULL;
|                                                ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_Siddon.cu: In function ‘bool backproject_modular(float*, float*&, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_Siddon.cu:1818:48: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
1818 |         cudaTextureObject_t d_data_txt = NULL;
|                                                ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/cuda_utils.cu: In function ‘cudaArray* loadTexture1D(cudaTextureObject_t&, float*, int, bool, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/cuda_utils.cu:911:36: warning: ‘cudaError_t cudaMemcpyToArray(cudaArray_t, size_t, size_t, const void*, size_t, cudaMemcpyKind)’ is deprecated [-Wdeprecated-declarations]
911 |     if ((cudaStatus = cudaMemcpyToArray(d_data_array, 0, 0, data, sizeof(float) * N_txt, cudaMemcpyHostToDevice)) != cudaSuccess)
|                   ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/cuda/include/cuda_runtime_api.h:7696:46: note: declared here
7696 | extern __CUDA_DEPRECATED host cudaError_t CUDARTAPI cudaMemcpyToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void src, size_t count, enum cudaMemcpyKind kind);
|                                              ^~~~~~~~~~~~~~~~~
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/scatter_models.cu: In function ‘bool simulateScatter_firstOrder_singleMaterial(float, float*, parameters*, float*, float*, int, float*, float*, float*, bool, int)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/scatter_models.cu:550:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
550 |     cudaTextureObject_t f_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/scatter_models.cu:566:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
566 |     cudaTextureObject_t source_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/scatter_models.cu:570:43: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
570 |     cudaTextureObject_t energies_txt = NULL;
|                                           ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/scatter_models.cu:577:43: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
577 |     cudaTextureObject_t detector_txt = NULL;
|                                           ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/scatter_models.cu:581:43: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
581 |     cudaTextureObject_t sigma_PE_txt = NULL;
|                                           ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/scatter_models.cu:583:43: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
583 |     cudaTextureObject_t sigma_CS_txt = NULL;
|                                           ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/scatter_models.cu:585:43: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
585 |     cudaTextureObject_t sigma_RS_txt = NULL;
|                                           ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/scatter_models.cu:589:46: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
589 |     cudaTextureObject_t scatterDist_txt = NULL;
|                                              ^
[100%] Linking CXX shared library ../lib/libleapct.so
[100%] Built target leapct
running egg_info
creating /tmp/pip-pip-egg-info-rxkosz6c/leapct.egg-info
writing /tmp/pip-pip-egg-info-rxkosz6c/leapct.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-rxkosz6c/leapct.egg-info/dependency_links.txt
writing requirements to /tmp/pip-pip-egg-info-rxkosz6c/leapct.egg-info/requires.txt
writing top-level names to /tmp/pip-pip-egg-info-rxkosz6c/leapct.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-rxkosz6c/leapct.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-pip-egg-info-rxkosz6c/leapct.egg-info/SOURCES.txt'
writing manifest file '/tmp/pip-pip-egg-info-rxkosz6c/leapct.egg-info/SOURCES.txt'
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in /home/liqiaoxin/anaconda3/lib/python3.11/site-packages (from leapct==1.16) (1.24.3)
Requirement already satisfied: torch in /home/liqiaoxin/anaconda3/lib/python3.11/site-packages (from leapct==1.16) (2.1.2)
Requirement already satisfied: filelock in /home/liqiaoxin/anaconda3/lib/python3.11/site-packages (from torch->leapct==1.16) (3.9.0)
Requirement already satisfied: typing-extensions in /home/liqiaoxin/anaconda3/lib/python3.11/site-packages (from torch->leapct==1.16) (4.7.1)
Requirement already satisfied: sympy in /home/liqiaoxin/anaconda3/lib/python3.11/site-packages (from torch->leapct==1.16) (1.11.1)
Requirement already satisfied: networkx in /home/liqiaoxin/anaconda3/lib/python3.11/site-packages (from torch->leapct==1.16) (3.1)
Requirement already satisfied: jinja2 in /home/liqiaoxin/anaconda3/lib/python3.11/site-packages (from torch->leapct==1.16) (3.1.2)
Requirement already satisfied: fsspec in /home/liqiaoxin/anaconda3/lib/python3.11/site-packages (from torch->leapct==1.16) (2023.4.0)
Requirement already satisfied: nvidia-cuda-nvrtc-cu12==12.1.105 in /home/liqiaoxin/anaconda3/lib/python3.11/site-packages (from torch->leapct==1.16) (12.1.105)
Requirement already satisfied: nvidia-cuda-runtime-cu12==12.1.105 in /home/liqiaoxin/anaconda3/lib/python3.11/site-packages (from torch->leapct==1.16) (12.1.105)
Requirement already satisfied: nvidia-cuda-cupti-cu12==12.1.105 in /home/liqiaoxin/anaconda3/lib/python3.11/site-packages (from torch->leapct==1.16) (12.1.105)
Requirement already satisfied: nvidia-cudnn-cu12==<IP_ADDRESS> in /home/liqiaoxin/anaconda3/lib/python3.11/site-packages (from torch->leapct==1.16) (<IP_ADDRESS>)
Requirement already satisfied: nvidia-cublas-cu12==<IP_ADDRESS> in /home/liqiaoxin/anaconda3/lib/python3.11/site-packages (from torch->leapct==1.16) (<IP_ADDRESS>)
Requirement already satisfied: nvidia-cufft-cu12==<IP_ADDRESS> in /home/liqiaoxin/anaconda3/lib/python3.11/site-packages (from torch->leapct==1.16) (<IP_ADDRESS>)
Requirement already satisfied: nvidia-curand-cu12==<IP_ADDRESS> in /home/liqiaoxin/anaconda3/lib/python3.11/site-packages (from torch->leapct==1.16) (<IP_ADDRESS>)
Requirement already satisfied: nvidia-cusolver-cu12==<IP_ADDRESS> in /home/liqiaoxin/anaconda3/lib/python3.11/site-packages (from torch->leapct==1.16) (<IP_ADDRESS>)
Requirement already satisfied: nvidia-cusparse-cu12==<IP_ADDRESS> in /home/liqiaoxin/anaconda3/lib/python3.11/site-packages (from torch->leapct==1.16) (<IP_ADDRESS>)
Requirement already satisfied: nvidia-nccl-cu12==2.18.1 in /home/liqiaoxin/anaconda3/lib/python3.11/site-packages (from torch->leapct==1.16) (2.18.1)
Requirement already satisfied: nvidia-nvtx-cu12==12.1.105 in /home/liqiaoxin/anaconda3/lib/python3.11/site-packages (from torch->leapct==1.16) (12.1.105)
Requirement already satisfied: triton==2.1.0 in /home/liqiaoxin/anaconda3/lib/python3.11/site-packages (from torch->leapct==1.16) (2.1.0)
Requirement already satisfied: nvidia-nvjitlink-cu12 in /home/liqiaoxin/anaconda3/lib/python3.11/site-packages (from nvidia-cusolver-cu12==<IP_ADDRESS>->torch->leapct==1.16) (12.3.101)
Requirement already satisfied: MarkupSafe>=2.0 in /home/liqiaoxin/anaconda3/lib/python3.11/site-packages (from jinja2->torch->leapct==1.16) (2.1.1)
Requirement already satisfied: mpmath>=0.19 in /home/liqiaoxin/anaconda3/lib/python3.11/site-packages (from sympy->torch->leapct==1.16) (1.3.0)
Building wheels for collected packages: leapct
Running command python setup.py bdist_wheel
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The CUDA compiler identification is NVIDIA 12.0.76
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc - skipped
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found CUDA: /usr/local/cuda (found suitable version "12.0", minimum required is "11.7")
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Configuring done
-- Generating done
-- Build files have been written to: /data4/liqiaoxin/code/LEAP2/LEAP-main/build
[  2%] Building CXX object src/CMakeFiles/leapct.dir/tomographic_models.cpp.o
[  5%] Building CXX object src/CMakeFiles/leapct.dir/tomographic_models_c_interface.cpp.o
[  7%] Building CXX object src/CMakeFiles/leapct.dir/list_of_tomographic_models.cpp.o
[ 12%] Building CXX object src/CMakeFiles/leapct.dir/filtered_backprojection.cpp.o
[ 12%] Building CXX object src/CMakeFiles/leapct.dir/parameters.cpp.o
[ 15%] Building CXX object src/CMakeFiles/leapct.dir/projectors_Joseph_cpu.cpp.o
[ 17%] Building CXX object src/CMakeFiles/leapct.dir/projectors.cpp.o
[ 20%] Building CXX object src/CMakeFiles/leapct.dir/projectors_SF_cpu.cpp.o
[ 22%] Building CXX object src/CMakeFiles/leapct.dir/projectors_symmetric_cpu.cpp.o
[ 25%] Building CXX object src/CMakeFiles/leapct.dir/projectors_Siddon_cpu.cpp.o
[ 27%] Building CXX object src/CMakeFiles/leapct.dir/sensitivity_cpu.cpp.o
[ 30%] Building CXX object src/CMakeFiles/leapct.dir/ray_weighting_cpu.cpp.o
[ 32%] Building CXX object src/CMakeFiles/leapct.dir/ramp_filter_cpu.cpp.o
[ 35%] Building CXX object src/CMakeFiles/leapct.dir/find_center_cpu.cpp.o
[ 37%] Building CXX object src/CMakeFiles/leapct.dir/sinogram_replacement.cpp.o
[ 40%] Building CXX object src/CMakeFiles/leapct.dir/resample_cpu.cpp.o
[ 42%] Building CXX object src/CMakeFiles/leapct.dir/cpu_utils.cpp.o
[ 45%] Building CXX object src/CMakeFiles/leapct.dir/phantom.cpp.o
[ 47%] Building CXX object src/CMakeFiles/leapct.dir/analytic_ray_tracing.cpp.o
[ 50%] Building CXX object src/CMakeFiles/leapct.dir/rebin.cpp.o
[ 52%] Building CXX object src/CMakeFiles/leapct.dir/file_io.cpp.o
[ 55%] Building CUDA object src/CMakeFiles/leapct.dir/projectors_SF.cu.o
[ 57%] Building CUDA object src/CMakeFiles/leapct.dir/projectors_extendedSF.cu.o
[ 60%] Building CUDA object src/CMakeFiles/leapct.dir/projectors_Joseph.cu.o
[ 62%] Building CUDA object src/CMakeFiles/leapct.dir/projectors_symmetric.cu.o
[ 65%] Building CUDA object src/CMakeFiles/leapct.dir/projectors_attenuated.cu.o
[ 67%] Building CUDA object src/CMakeFiles/leapct.dir/projectors_Siddon.cu.o
[ 70%] Building CUDA object src/CMakeFiles/leapct.dir/sensitivity.cu.o
[ 72%] Building CUDA object src/CMakeFiles/leapct.dir/ramp_filter.cu.o
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/ramp_filter.cu(744): warning #550-D: variable "result" was set but never used
Remark: The warnings can be suppressed with "-diag-suppress "
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/ramp_filter.cu(811): warning #550-D: variable "result" was set but never used
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/ramp_filter.cu(1149): warning #550-D: variable "result" was set but never used
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/ramp_filter.cu(1331): warning #550-D: variable "result" was set but never used
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/ramp_filter.cu(1456): warning #550-D: variable "result" was set but never used
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/ramp_filter.cu(1920): warning #550-D: variable "cudaStatus" was set but never used
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_symmetric.cu: In function ‘bool project_symmetric(float*&, float*, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_symmetric.cu:768:48: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
768 |         cudaTextureObject_t d_data_txt = NULL;
|                                                ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_symmetric.cu: In function ‘bool backproject_symmetric(float*, float*&, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_symmetric.cu:848:48: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
848 |         cudaTextureObject_t d_data_txt = NULL;
|                                                ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_symmetric.cu: In function ‘bool inverse_symmetric(float*, float*&, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_symmetric.cu:927:48: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
927 |         cudaTextureObject_t d_data_txt = NULL;
|                                                ^
[ 75%] Building CUDA object src/CMakeFiles/leapct.dir/resample.cu.o
[ 77%] Building CUDA object src/CMakeFiles/leapct.dir/noise_filters.cu.o
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_extendedSF.cu: In function ‘bool project_eSF(float*&, float*, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_extendedSF.cu:1562:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
1562 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_extendedSF.cu: In function ‘bool backproject_eSF(float*, float*&, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_extendedSF.cu:1655:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
1655 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_extendedSF.cu:1666:57: warning: NULL used in arithmetic [-Wpointer-arith]
1666 |     if (d_data_array == NULL || d_data_txt == NULL)
|                                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_SF.cu: In function ‘bool project_SF(float*&, float*, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_SF.cu:1603:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
1603 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_SF.cu: In function ‘bool backproject_SF(float*, float*&, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_SF.cu:1712:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
1712 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
[ 80%] Building CUDA object src/CMakeFiles/leapct.dir/total_variation.cu.o
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/ramp_filter.cu: In function ‘bool parallelRay_derivative(float*&, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/ramp_filter.cu:1754:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
1754 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/ramp_filter.cu: In function ‘bool parallelRay_derivative_chunk(float*&, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/ramp_filter.cu:1841:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
1841 |         cudaTextureObject_t d_data_txt = NULL;
|                                         ^
[ 82%] Building CUDA object src/CMakeFiles/leapct.dir/matching_pursuit.cu.o
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_Joseph.cu: In function ‘bool project_Joseph_modular(float*&, float*, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_Joseph.cu:1815:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
1815 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_Joseph.cu: In function ‘bool backproject_Joseph_modular(float*, float*&, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_Joseph.cu:1969:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
1969 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
[ 85%] Building CUDA object src/CMakeFiles/leapct.dir/bilateral_filter.cu.o
[ 87%] Building CUDA object src/CMakeFiles/leapct.dir/guided_filter.cu.o
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_attenuated.cu: In function ‘bool project_attenuated(float*&, float*, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_attenuated.cu:916:39: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
916 |     cudaTextureObject_t d_mu_txt = NULL;
|                                       ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_attenuated.cu:928:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
928 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_attenuated.cu: In function ‘bool backproject_attenuated(float*, float*&, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_attenuated.cu:1030:39: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
1030 |     cudaTextureObject_t d_mu_txt = NULL;
|                                       ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_attenuated.cu:1045:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
1045 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
[ 90%] Building CUDA object src/CMakeFiles/leapct.dir/geometric_calibration.cu.o
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/resample.cu: In function ‘bool downSample(float*, int*, float*, int*, float*, int)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/resample.cu:119:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
119 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/resample.cu: In function ‘bool upSample(float*, int*, float*, int*, float*, int)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/resample.cu:161:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
161 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
[ 92%] Building CUDA object src/CMakeFiles/leapct.dir/ray_weighting.cu.o
[ 95%] Building CUDA object src/CMakeFiles/leapct.dir/scatter_models.cu.o
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/guided_filter.cu: In function ‘bool guidedFilter(float*, int, int, int, int, float, bool, int)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/guided_filter.cu:144:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
144 |     cudaTextureObject_t f_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/bilateral_filter.cu: In function ‘bool bilateralFilter(float*, int, int, int, float, float, bool, int)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/bilateral_filter.cu:286:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
286 |     cudaTextureObject_t f_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/bilateral_filter.cu: In function ‘bool priorBilateralFilter(float*, int, int, int, float, float, float*, bool, int)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/bilateral_filter.cu:391:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
391 |     cudaTextureObject_t f_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/bilateral_filter.cu:393:42: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
393 |     cudaTextureObject_t Bf_data_txt = NULL;
|                                          ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/bilateral_filter.cu: In function ‘bool scaledBilateralFilter(float*, int, int, int, float, float, float, bool, int)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/bilateral_filter.cu:505:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
505 |     cudaTextureObject_t f_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/bilateral_filter.cu:507:42: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
507 |     cudaTextureObject_t Bf_data_txt = NULL;
|                                          ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/noise_filters.cu: In function ‘bool lowOrHighPassFilter_txt(float*, int, int, int, float, int, bool, int, int, int, float*)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/noise_filters.cu:861:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
861 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
[ 97%] Building CUDA object src/CMakeFiles/leapct.dir/cuda_utils.cu.o
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/matching_pursuit.cu: In function ‘bool matchingPursuit(float*, int, int, int, float*, int, int, int, int, float, int, bool, int)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/matching_pursuit.cu:531:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
531 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/matching_pursuit.cu: In function ‘bool matchingPursuit_basis(float*, int, int, int, float*, int, int, int, int, float, int, bool, int)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/matching_pursuit.cu:670:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
670 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/scatter_models.cu(749): warning #177-D: variable "cudaStatus" was declared but never referenced
Remark: The warnings can be suppressed with "-diag-suppress "
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/cuda_utils.cu(630): warning #550-D: variable "cudaStatus" was set but never used
Remark: The warnings can be suppressed with "-diag-suppress "
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/cuda_utils.cu(666): warning #550-D: variable "cudaStatus" was set but never used
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/cuda_utils.cu(702): warning #550-D: variable "cudaStatus" was set but never used
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_Siddon.cu: In function ‘bool project_Siddon(float*&, float*, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_Siddon.cu:1505:48: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
1505 |         cudaTextureObject_t d_data_txt = NULL;
|                                                ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_Siddon.cu: In function ‘bool backproject_Siddon(float*, float*&, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_Siddon.cu:1591:48: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
1591 |         cudaTextureObject_t d_data_txt = NULL;
|                                                ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_Siddon.cu: In function ‘bool project_modular(float*&, float*, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_Siddon.cu:1720:48: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
1720 |         cudaTextureObject_t d_data_txt = NULL;
|                                                ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_Siddon.cu: In function ‘bool backproject_modular(float*, float*&, parameters*, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/projectors_Siddon.cu:1818:48: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
1818 |         cudaTextureObject_t d_data_txt = NULL;
|                                                ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/geometric_calibration.cu: In function ‘float consistencyCost(float*, parameters*, bool, float, float, float, float)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/geometric_calibration.cu:275:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
275 |     cudaTextureObject_t d_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/cuda_utils.cu: In function ‘cudaArray* loadTexture1D(cudaTextureObject_t&, float*, int, bool, bool)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/cuda_utils.cu:911:36: warning: ‘cudaError_t cudaMemcpyToArray(cudaArray_t, size_t, size_t, const void*, size_t, cudaMemcpyKind)’ is deprecated [-Wdeprecated-declarations]
911 |     if ((cudaStatus = cudaMemcpyToArray(d_data_array, 0, 0, data, sizeof(float) * N_txt, cudaMemcpyHostToDevice)) != cudaSuccess)
|                   ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/cuda/include/cuda_runtime_api.h:7696:46: note: declared here
7696 | extern __CUDA_DEPRECATED host cudaError_t CUDARTAPI cudaMemcpyToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void src, size_t count, enum cudaMemcpyKind kind);
|                                              ^~~~~~~~~~~~~~~~~
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/scatter_models.cu: In function ‘bool simulateScatter_firstOrder_singleMaterial(float, float*, parameters*, float*, float*, int, float*, float*, float*, bool, int)’:
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/scatter_models.cu:550:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
550 |     cudaTextureObject_t f_data_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/scatter_models.cu:566:41: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
566 |     cudaTextureObject_t source_txt = NULL;
|                                         ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/scatter_models.cu:570:43: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
570 |     cudaTextureObject_t energies_txt = NULL;
|                                           ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/scatter_models.cu:577:43: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
577 |     cudaTextureObject_t detector_txt = NULL;
|                                           ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/scatter_models.cu:581:43: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
581 |     cudaTextureObject_t sigma_PE_txt = NULL;
|                                           ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/scatter_models.cu:583:43: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
583 |     cudaTextureObject_t sigma_CS_txt = NULL;
|                                           ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/scatter_models.cu:585:43: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
585 |     cudaTextureObject_t sigma_RS_txt = NULL;
|                                           ^
/data4/liqiaoxin/code/LEAP2/LEAP-main/src/scatter_models.cu:589:46: warning: converting to non-pointer type ‘cudaTextureObject_t’ {aka ‘long long unsigned int’} from NULL [-Wconversion-null]
589 |     cudaTextureObject_t scatterDist_txt = NULL;
|                                              ^
[100%] Linking CXX shared library ../lib/libleapct.so
[100%] Built target leapct
running bdist_wheel
running build
running build_py
copying src/leaptorch.py -> build/lib
copying src/leapctype.py -> build/lib
copying src/leap_filter_sequence.py -> build/lib
copying src/leap_preprocessing_algorithms.py -> build/lib
/home/liqiaoxin/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
      ********************************************************************************
      Please avoid running ``setup.py`` directly.
      Instead, use pypa/build, pypa/installer or other
      standards-based tools.

      See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
      ********************************************************************************

!!
self.initialize_options()
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
copying build/lib/leap_preprocessing_algorithms.py -> build/bdist.linux-x86_64/wheel
copying build/lib/leaptorch.py -> build/bdist.linux-x86_64/wheel
copying build/lib/libleapct.so -> build/bdist.linux-x86_64/wheel
copying build/lib/leap_filter_sequence.py -> build/bdist.linux-x86_64/wheel
copying build/lib/leapctype.py -> build/bdist.linux-x86_64/wheel
running install_egg_info
running egg_info
writing src/leapct.egg-info/PKG-INFO
writing dependency_links to src/leapct.egg-info/dependency_links.txt
writing requirements to src/leapct.egg-info/requires.txt
writing top-level names to src/leapct.egg-info/top_level.txt
reading manifest file 'src/leapct.egg-info/SOURCES.txt'
writing manifest file 'src/leapct.egg-info/SOURCES.txt'
Copying src/leapct.egg-info to build/bdist.linux-x86_64/wheel/leapct-1.16-py3.11.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/leapct-1.16.dist-info/WHEEL
creating '/tmp/pip-wheel-wupt69gs/leapct-1.16-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'leap_filter_sequence.py'
adding 'leap_preprocessing_algorithms.py'
adding 'leapctype.py'
adding 'leaptorch.py'
adding 'libleapct.so'
adding 'leapct-1.16.dist-info/METADATA'
adding 'leapct-1.16.dist-info/WHEEL'
adding 'leapct-1.16.dist-info/top_level.txt'
adding 'leapct-1.16.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Building wheel for leapct (setup.py) ... done
Created wheel for leapct: filename=leapct-1.16-py3-none-any.whl size=1790370 sha256=b23db48d75ef31b00ba5bc7bbf9b4a5cef915055e6dca7b9934504a390934e4a
Stored in directory: /data4/liqiaoxin/.cache/pip/wheels/e4/be/e3/789439b68df06dc6b631bc1fb5734379118e92c2e4ab728719
Successfully built leapct
Installing collected packages: leapct
Attempting uninstall: leapct
Found existing installation: leapct 1.16
Uninstalling leapct-1.16:
Removing file or directory /home/liqiaoxin/anaconda3/lib/python3.11/site-packages/pycache/leap_filter_sequence.cpython-311.pyc
Removing file or directory /home/liqiaoxin/anaconda3/lib/python3.11/site-packages/pycache/leap_preprocessing_algorithms.cpython-311.pyc
Removing file or directory /home/liqiaoxin/anaconda3/lib/python3.11/site-packages/pycache/leapctype.cpython-311.pyc
Removing file or directory /home/liqiaoxin/anaconda3/lib/python3.11/site-packages/pycache/leaptorch.cpython-311.pyc
Removing file or directory /home/liqiaoxin/anaconda3/lib/python3.11/site-packages/leap_filter_sequence.py
Removing file or directory /home/liqiaoxin/anaconda3/lib/python3.11/site-packages/leap_preprocessing_algorithms.py
Removing file or directory /home/liqiaoxin/anaconda3/lib/python3.11/site-packages/leapct-1.16.dist-info/
Removing file or directory /home/liqiaoxin/anaconda3/lib/python3.11/site-packages/leapctype.py
Removing file or directory /home/liqiaoxin/anaconda3/lib/python3.11/site-packages/leaptorch.py
Removing file or directory /home/liqiaoxin/anaconda3/lib/python3.11/site-packages/libleapct.so
Successfully uninstalled leapct-1.16
Successfully installed leapct-1.16
could you find something wrong with it ? maybe associated with the CMake.txt?

It looks like it installed successfully.  Is it still saying that it is loading an old version?  It could be that both versions still exist somewhere on your computer and you need to find and remove the old version.  Note that there are two different site-packages on Linux.  You can find the path of these with the following Python code:
import site
print(site.getsitepackages()[0])
print(site.getsitepackages()[1])

Try looking in both of these folders and manually deleting all LEAP files.  Then verify that LEAP does not exist by trying to import it.  If it does fail to import, great, you successfully deleted the old version.  Then re-install the new version with the pip install command.

Thanks for your help, it works~


How to show on a UITableViewController?

I can't get it to work....

Do you get any error? Because I just implemented this in a UITableViewController and it works just fine.

Can you show your code & associated error messages? I'm running it on a UITableViewController in the same way you would on any other type.

no error and i can confirm it does not work

Working for me just fine; can you provide more information / code showing what's going on?

Works for me as well. Using it in several table view controllers. Calling it from viewWillAppear.

import UIKit
import SwiftSpinner
class TestTable: UITableViewController {
override func viewDidLoad() {
    super.viewDidLoad()

}

override func viewWillAppear(_ animated: Bool) {
    super.viewWillAppear(animated)

    SwiftSpinner.show("Updating History...", animated: true)
}

override public func viewDidAppear(_ animated: Bool) {
    super.viewDidAppear(animated)

}

}
Causes spinner to show for a few seconds, before abruptly failing

SwiftSpinTest.zip

Yeah the spinner works fine, your problem is that you haven't set the custom class in your storyboard for the tableview itself.
A simple print test in your viewWillAppear would have told you that.

SwiftSpinTest2.zip
sorry, the amended work is here
included is a sidemenu that leads to a tableview with a swift spinner. however, this bug isn't limited to tableviews, but to any view controller as well

This is your code:
class TableViewController: UITableViewController {

    @IBOutlet var table: UITableView!

    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)

        print("GOT HERE")

        SwiftSpinner.show("test")
     }
}

You've made a button called to table which when pressed loads a tableView with three cells. When you press the first, it loads a new tableView with the custom class set; running the above code & shows the spinner. The second two cells do nothing because you've not coded in any of the tableview methods.
I feel like this is going in circles and since you're not being at all clear with what you're looking to achieve and the code examples you do provide seem riddled with mistakes or half written examples that don't actually work in the real world at all it's extremely difficult. In both examples you've provided if I fix your code to a bare minimum standard, the spinner works as expected every time.
I strongly suggest you spend some time reading about how a UITablwViewController works, how to reuse cells and transition between view controllers rather than pasting haphazard code examples claiming that this project is broken, when it clearly is not.

SwiftSpinTest3.zip
LOL sorry i attached the wrong project. This is the right one I swear
This one is quite self-explanatory.

So what you didn't say is that the 'SideMenu' you mentioned is actually another pop all together.
To test my theory, I added this, to TableViewController.Swift and the Spinner displayed.
	override func viewDidAppear(_ animated: Bool) {
		super.viewDidAppear(true)

		let delayInSeconds = 1.0
		DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + delayInSeconds) {
			SwiftSpinner.show("test")
		}
	}

What this means, is that the Spinner is working as intended and something in your SideMenu pod is dismissing the Superview the Spinner creates itself to run in. So the issue is the interaction between these two pods. Using breakpoints I was able to see that the Spinner is presented every time the cell is pressed, but is then instantly dismissed at the end of the transition animation when the 'SideMenu' is dismissed. This is the problem. Once again; Swiftspinner is working as intended.

thank you very much for your expert debugging skills, I've removed the offending code block and will open a pull request to side menu
motion for close

@agates4 You're welcome but in the future don't post such sloppy code examples; take time to proof yourself & your work. More than half the time you'll discover the solution and end up not needing to submit the issue.
Good luck for the project though, hopefully it works out.


Create A Summer Theme

Create A Theme for Summer.
Be creative as you like.
Read the Docs.
Give a ⭐
Don't break anything. :)

Hi @omicreativedev, please assign this to me

@shreyanshig I have assigned another issue to you. When you are finished with that one, if nobody else has asked to do this one, I will happily assign it to you. Or if you would like to switch, let me know. You are welcome to do as many as you like, but hoping they are done one at a time. Since the other issue is more in impressive, I thought you may want a go at that first. Let me know.

Hi @omicreativedev I would love to do this , can you assign this to me ?

@omicreativedev

@shreyanshig are you still interested in this?

yes
On Mon, Oct 9, 2023 at 5:57 AM OmiCreativeDev @.***>
wrote:

@shreyanshig https://github.com/shreyanshig are you still interested in
this?
—
Reply to this email directly, view it on GitHub
https://github.com/omicreativedev/hacktoberfest2023/issues/4#issuecomment-1752208771,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AZ6PQJNE2ZA7UXEHCHHUHUDX6NAI3AVCNFSM6AAAAAA5VJ33ROVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJSGIYDQNZXGE
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hello. I am interested in creating the summer theme. Can you assign it to me?


App.prototype.loadFile does not call success(); for URL ('U') files

[ x] I agree to follow the Code of Conduct that this project adheres to.
[ x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

App.prototype.loadFile does not call success(); for URL ('U') files.
Some file sources have this code:
if (success != null) 				{ 					success(); 				}
to call success parameter after file loaded.
This is unfortunately not the case for 'U' path:
else if (id.charAt(0) == 'U')
To Reproduce
call loadFile function:
`this.loadFile(fileUrl, true, null, mxUtils.bind(this, function () {
    console.trace(temp);
    this.actions.get('fitWindow').funct();
    this.actions.get('lockUnlock').funct();
}));

`
Expected behavior
success() function is called, after file is loaded, fitting loaded file to the window

draw.io version 14.0.4

Desktop (please complete the following information):

OS: Win10
Browser Chrome, FF
Version latest

Thanks for the report. This will be fixed in the next release.

Thanks for the report. This will be fixed in the next release.


error calling slicestr: end argument must be integer

Starting with version 0.49, slicestr returns an error.
    {{ if gt (len .) 150 }}
      <meta name="description" content="{{ . | slicestr 0 150 }}">
    {{ else }}
      <meta name="description" content="{{ . }}">
    {{ end }}

Tested with and without diacritics on Windows running versions 0.49 and 0.49.2.
{{ slicestr . 0 150 }} works fine.

I suspect truncate would fit your use case better.

@robsonsobral, are you sure?  slicestr hasn't changed in a long time (March 2017).  Usage is slicestr STRING START [END].  The pipe usage is putting the string as the last element.

@moorereason , I always used the notation with | at the beginning. Maybe the change is there.
@bep , thank you for your suggestion!

Wow! I already updated hugo on both my computers. I gonna take a look at Netlify settings.


Range sliders: Needs code snippet

Which page is this about?
https://cfpb.github.io/design-system/components/range-sliders
What kind of issue is this?
Add one or more of the issue labels below to the right-hand sidebar AND issue title.
(We strongly encourage you to make content changes yourself where possible!)

[ ] Info incorrect
[ ] Content enhancement (e.g. confusing or redundant content, small content items need to be added, etc.)
[ ] Needs content written (page is missing key information, e.g. use cases)
[x] Needs code snippet
[ ] Overhaul page (page needs large-scale content rewriting and restructuring)
[ ] Something else (please explain)

Describe your issue
Needs code snippet. Note range sliders are not in Capital Framework.
Size this request (1=tiny, 5=enormous)
3?
Add any additional background info as needed
Range sliders appear on the Before you claim tool
Thanks. Don't forget to add labels indicating issue type and size before submitting!
Once you've submitted your issue, please add it to the content backlog project board: https://github.com/cfpb/design-system/projects/1

An existing slider appears on https://www.consumerfinance.gov/owning-a-home/explore-rates/

An existing slider appears on https://www.consumerfinance.gov/owning-a-home/explore-rates/

An existing slider appears on https://www.consumerfinance.gov/owning-a-home/explore-rates/

Hmmm and it's very different from the one on https://www.consumerfinance.gov/consumer-tools/retirement/before-you-claim/

An existing slider appears on https://www.consumerfinance.gov/owning-a-home/explore-rates/

Hmmm and it's very different from the one on https://www.consumerfinance.gov/consumer-tools/retirement/before-you-claim/

@sonnakim Do you have any guidance on reconciling the very different sliders on the Explore Rates tool and the Before You Claim tool? Do we document two slider styles or try to change one to fit the other?

Code snippet added in https://github.com/cfpb/design-system/pull/1911


Add ionicon mention? and how about size?

Adding ionicons was easy, simply use "ion" for prefix. Mention that in readme?
Also, how can I control marker size? Custom class?
Thanks!

Currently there is no size control.  See #3.  I was thinking that while I could make say 5 sizes of markers it would be much more useful to just use SVG markers.
See https://github.com/hiasinho/Leaflet.vector-markers
I want to eventually incorporate SVG markers and icons along with SVG morphing but I will need to wait until I get contracted for another mapping project...


Pug 2.x is no longer supported due to vulnerabilities

Pug  versions prior than 3.0.1 are no longer supported due to security vulnerabilities, as documented in their main GitHub repo. An example is this command injection vulnerability: https://github.com/pugjs/pug/issues/3312

Also documented in #38


No indentation warning is given when a hash directive is used inside a nested module

Consider File.fsx:
module Nested =
    // File.Nested.foo
    let foo = 123

#load "OtherFile.fsx"

    // looks like File.Nested.bar, but is actually File.bar
    // No indentation warning given and foo is unresolved
    let bar = foo

Related  to (but not the same) #3486 and #3487.
I think that indentation is ignored because # lines are typically a type of compiler directive and as such not part of the indentation rules. My guess is, this is by design.

I think is just a bug:
The compiler is fine with:
module Nested =
    // File.Nested.foo
    let foo = 123

#if FOO
#endif

    // looks like File.Nested.bar, but is actually File.bar
    // No indentation warning given and foo is unresolved
    let bar = foo

We probably just need to make sure that FSI only directives work correctly here.

@auduchinock, my apologies, I misunderstood, as I focused on the text and title and missed the comments in the code.
Could you perhaps update the original text with a complete repro (this module is currently not nested)  and explain the issue in the text to forego such misunderstandings?

@abelbraaksma I've updated the code repro and added more clarification in the comments there.


Run clippy instead of build for non-wasm builds

Forgot to actually replace the command in #155.

Thanks!


[BUG] [TEST] BackgroundFetch unit tests fail - data race

Describe the bug
It appears there is a data race within the TestBackgroundFetcherRun() test. Both test cases seem to fail ( background fetch all data for multiple and single span manager(s) )
Steps To Reproduce
go clean -testcache
make test
Expected behavior
All test cases should pass.
Configuration (please complete the following information):

OS: Amazon Linux 2
Snapshotter Version: Tip of Main
Containerd Version: containerd github.com/containerd/containerd v1.6.10 770bd0108c32f3fb5c73ae1264f7e503fe7b2661

Additional context
Error
WARNING: DATA RACE
Read at 0x00c0003361d0 by goroutine 19:
  github.com/awslabs/soci-snapshotter/fs/backgroundfetcher.TestBackgroundFetcherRun.func1()
      /home/turyasin/github/soci-snapshotter/fs/backgroundfetcher/background_fetcher_test.go:134 +0x38b
  testing.tRunner()
      /usr/lib/golang/src/testing/testing.go:1439 +0x213
  testing.(*T).Run.func1()
      /usr/lib/golang/src/testing/testing.go:1486 +0x47

Previous write at 0x00c0003361d0 by goroutine 41:
  github.com/awslabs/soci-snapshotter/fs/backgroundfetcher.(*countingWriter).Write()
      /home/turyasin/github/soci-snapshotter/fs/backgroundfetcher/background_fetcher_test.go:180 +0xb7
  github.com/awslabs/soci-snapshotter/fs/span-manager.(*SpanManager).addSpanToCache()
      /home/turyasin/github/soci-snapshotter/fs/span-manager/span_manager.go:362 +0xc6
  github.com/awslabs/soci-snapshotter/fs/span-manager.(*SpanManager).FetchSingleSpan()
      /home/turyasin/github/soci-snapshotter/fs/span-manager/span_manager.go:210 +0x3c8
  github.com/awslabs/soci-snapshotter/fs/backgroundfetcher.(*sequentialLayerResolver).Resolve()
      /home/turyasin/github/soci-snapshotter/fs/backgroundfetcher/resolver.go:85 +0x2c7
  github.com/awslabs/soci-snapshotter/fs/backgroundfetcher.(*BackgroundFetcher).Run.func1()
      /home/turyasin/github/soci-snapshotter/fs/backgroundfetcher/background_fetcher.go:156 +0x7e

Goroutine 19 (running) created at:
  testing.(*T).Run()
      /usr/lib/golang/src/testing/testing.go:1486 +0x724
  github.com/awslabs/soci-snapshotter/fs/backgroundfetcher.TestBackgroundFetcherRun()
      /home/turyasin/github/soci-snapshotter/fs/backgroundfetcher/background_fetcher_test.go:100 +0x3ef
  testing.tRunner()
      /usr/lib/golang/src/testing/testing.go:1439 +0x213
  testing.(*T).Run.func1()
      /usr/lib/golang/src/testing/testing.go:1486 +0x47

Goroutine 41 (finished) created at:
  github.com/awslabs/soci-snapshotter/fs/backgroundfetcher.(*BackgroundFetcher).Run()
      /home/turyasin/github/soci-snapshotter/fs/backgroundfetcher/background_fetcher.go:155 +0x284
  github.com/awslabs/soci-snapshotter/fs/backgroundfetcher.TestBackgroundFetcherRun.func1.2()
      /home/turyasin/github/soci-snapshotter/fs/backgroundfetcher/background_fetcher_test.go:124 +0x58
==================
==================
WARNING: DATA RACE
Read at 0x00c0003361d8 by goroutine 19:
  github.com/awslabs/soci-snapshotter/fs/backgroundfetcher.TestBackgroundFetcherRun.func1()
      /home/turyasin/github/soci-snapshotter/fs/backgroundfetcher/background_fetcher_test.go:141 +0x4c4
  testing.tRunner()
      /usr/lib/golang/src/testing/testing.go:1439 +0x213
  testing.(*T).Run.func1()
      /usr/lib/golang/src/testing/testing.go:1486 +0x47

Previous write at 0x00c0003361d8 by goroutine 41:
  github.com/awslabs/soci-snapshotter/fs/backgroundfetcher.(*countingWriter).Write()
      /home/turyasin/github/soci-snapshotter/fs/backgroundfetcher/background_fetcher_test.go:179 +0x71
  github.com/awslabs/soci-snapshotter/fs/span-manager.(*SpanManager).addSpanToCache()
      /home/turyasin/github/soci-snapshotter/fs/span-manager/span_manager.go:362 +0xc6
  github.com/awslabs/soci-snapshotter/fs/span-manager.(*SpanManager).FetchSingleSpan()
      /home/turyasin/github/soci-snapshotter/fs/span-manager/span_manager.go:210 +0x3c8
  github.com/awslabs/soci-snapshotter/fs/backgroundfetcher.(*sequentialLayerResolver).Resolve()
      /home/turyasin/github/soci-snapshotter/fs/backgroundfetcher/resolver.go:85 +0x2c7
  github.com/awslabs/soci-snapshotter/fs/backgroundfetcher.(*BackgroundFetcher).Run.func1()
      /home/turyasin/github/soci-snapshotter/fs/backgroundfetcher/background_fetcher.go:156 +0x7e

Goroutine 19 (running) created at:
  testing.(*T).Run()
      /usr/lib/golang/src/testing/testing.go:1486 +0x724
  github.com/awslabs/soci-snapshotter/fs/backgroundfetcher.TestBackgroundFetcherRun()
      /home/turyasin/github/soci-snapshotter/fs/backgroundfetcher/background_fetcher_test.go:100 +0x3ef
  testing.tRunner()
      /usr/lib/golang/src/testing/testing.go:1439 +0x213
  testing.(*T).Run.func1()
      /usr/lib/golang/src/testing/testing.go:1486 +0x47

Goroutine 41 (finished) created at:
  github.com/awslabs/soci-snapshotter/fs/backgroundfetcher.(*BackgroundFetcher).Run()
      /home/turyasin/github/soci-snapshotter/fs/backgroundfetcher/background_fetcher.go:155 +0x284
  github.com/awslabs/soci-snapshotter/fs/backgroundfetcher.TestBackgroundFetcherRun.func1.2()
      /home/turyasin/github/soci-snapshotter/fs/backgroundfetcher/background_fetcher_test.go:124 +0x58
==================
--- FAIL: TestBackgroundFetcherRun (22.73s)
    --- FAIL: TestBackgroundFetcherRun/background_fetcher_fetches_all_data_for_multiple_span_managers (22.54s)
        testing.go:1312: race detected during execution of test
    testing.go:1312: race detected during execution of test
FAIL
FAIL	github.com/awslabs/soci-snapshotter/fs/backgroundfetcher	30.156s

What version of go are you using?

What version of go are you using?

go version go1.18.8 linux/amd64

Issues seems to be resolved after updating to the latest stable go version (1.19.4)

@Kern-- @turan18 if go1.19 can resolve the issue, should we update the go version we support?
https://github.com/awslabs/soci-snapshotter/blob/ae7e16948759bf449d8f7f8391264c2cedd3f9b9/go.mod#LL3C7-L3C7
https://github.com/awslabs/soci-snapshotter/blob/ae7e16948759bf449d8f7f8391264c2cedd3f9b9/cmd/go.mod#L3

@Kern-- @turan18 if go1.19 can resolve the issue, should we update the go version we support?
https://github.com/awslabs/soci-snapshotter/blob/ae7e16948759bf449d8f7f8391264c2cedd3f9b9/go.mod#LL3C7-L3C7
https://github.com/awslabs/soci-snapshotter/blob/ae7e16948759bf449d8f7f8391264c2cedd3f9b9/cmd/go.mod#L3

Reopening for visibility/discussion

@rdpsin you had an idea for how we can fix this while supporting go 1.18, right?


Adds Map 🗺 to Emission

In a recent Purchase team retrospective, we identified an opportunity to better document Emission. Developers rely on existing code as a foundation for writing new code, but not knowing which code should be used as a foundation impacts developer confidence.
This map's goal is to be a living document that will accumulate links to pull requests, discussions, blog posts, etc, that relate to Emission's development. This initial PR is only a very small start – I didn't even try to make this comprehensive, just a few things that came to mind immediately.
@mennenia I'd like to know what else should be included – I'm happy to be delegated to, or we can pair, or you can take over.

Okay so missing pieces right now:

What's a good example of unit testing in Emission? Outside snapshot tests, I mean.
What's the "best" React Native component in Emission? Something proven in production that embodies our best work?
Where can we see examples of Eigen/Emission interop? Can probably link to our /docs/adding_new_components.md docs.
Which component is best covered by storybooks?
Any useful or novel applications of TypeScript?

Any other questions that would be good to cover? Anyone have answers to those questions?

What's a good example of unit testing in Emission? Outside snapshot tests, I mean.

https://github.com/artsy/emission/blob/master/src/lib/Containers/__tests__/Gene-tests.tsx#L32
https://github.com/artsy/emission/blob/master/src/lib/Components/Consignments/Screens/__tests__/Confirmation-tests.tsx#L30
/Users/orta/dev/projects/artsy/ios/emission/src/lib/Components/Consignments/Screens/tests/SelectFromPhotoLibrary-tests.tsx

The consignments Overview is a complex class, so it has 4 test files:

https://github.com/artsy/emission/blob/master/src/lib/Components/Consignments/Screens/__tests__/Overview-analytics-tests.tsx
https://github.com/artsy/emission/blob/master/src/lib/Components/Consignments/Screens/__tests__/Overview-local-storage-tests.tsx
https://github.com/artsy/emission/blob/master/src/lib/Components/Consignments/Screens/__tests__/Overview-tests.tsx
https://github.com/artsy/emission/blob/master/src/lib/Components/Consignments/Screens/__tests__/Overview-uploading-tests.tsx

Where can we see examples of Eigen/Emission interop? Can probably link to our /docs/adding_new_components.md docs.

https://github.com/search?type=Code&q=repo%3Aartsy%2Femission = NativeModules
is the right search to get examples, the thing is most cases are unique here.

@mennenia Do you thinking analytics tracking should go in this document, or in its own?

Do you thinking analytics tracking should go in this document, or in its own?

We have extensive docs inline: https://github.com/artsy/emission/blob/develop-1.5.x/src/lib/utils/track.ts#L175-L359

Nic!

Ready for review @mennenia, no rush 👍

Don't forget this @mennenia

@orta I know, but my first focus is to get the auction push notification release out :). Then I'll get back to this.

This is great! 👏 🎉 💃
Initially wanted to add a few more things, but I'll put those through in a separate PR later on.

Yeah that's the idea! I'm hoping we get into the habit of adding new things to this doc as they occur to us.


format choosing option "bestvideo[height>=xxxx]" not working as expected for one Youtube video

Hello, folks.
First, thanks to all the contributors to this nice piece of software, I'm much indebted to it, with rtmpdump not functioning at all on my Windows 7 PC for unknown reasons.
I will report an issue with the windows build of youtube-dl I've just upgraded some minutes ago (version 2015.05.20).
First, the url of the Youtube video in question is as follows :
https://www.youtube.com/watch?v=EQCrhbBxsjA
The list of video formats given by the command
youtube-dl.exe -F https://www.youtube.com/watch?v=EQCrhbBxsjA
is :
[youtube] EQCrhbBxsjA: Downloading webpage
[youtube] EQCrhbBxsjA: Extracting video information
[youtube] EQCrhbBxsjA: Downloading DASH manifest
[info] Available formats for EQCrhbBxsjA:
format code  extension  resolution note
171          webm       audio only DASH audio   85k , audio@128k (44100Hz), 1.51MiB
140          m4a        audio only DASH audio   95k , m4a_dash container, aac  @128k (44100Hz), 1.75MiB
141          m4a        audio only DASH audio  191k , m4a_dash container, aac  @256k (44100Hz), 3.52MiB
278          webm       82x144     DASH video   42k , webm container, VP9, 15fps, video only, 750.13KiB
160          mp4        82x144     DASH video  111k , 15fps, video only, 1.99MiB
242          webm       136x240    DASH video  147k , 30fps, video only, 1.96MiB
133          mp4        136x240    DASH video  247k , 30fps, video only, 4.50MiB
243          webm       202x360    DASH video  268k , 30fps, video only, 3.71MiB
134          mp4        202x360    DASH video  318k , 30fps, video only, 5.43MiB
244          webm       270x480    DASH video  430k , 30fps, video only, 6.03MiB
135          mp4        270x480    DASH video  674k , 30fps, video only, 11.67MiB
247          webm       406x720    DASH video  867k , 30fps, video only, 12.59MiB
136          mp4        406x720    DASH video 1390k , 30fps, video only, 23.57MiB
248          webm       608x1080   DASH video 1732k , 30fps, video only, 26.41MiB
137          mp4        608x1080   DASH video 2546k , 30fps, video only, 44.32MiB
264          mp4        720x1280   DASH video 4183k , 30fps, video only, 74.10MiB
271          webm       720x1280   DASH video 4939k , 30fps, video only, 81.73MiB
17           3gp        176x144
36           3gp        320x240
5            flv        400x240
43           webm       640x360
18           mp4        640x360
22           mp4        1280x720   (best)

Now, I want to download this video 'only if' it is available in 1440p or a higher resolution, so I run the following command:
youtube-dl.exe -f "bestvideo[height>=1440]+bestaudio" https://www.youtube.com/watch?v=EQCrhbBxsjA
the maximum height available for this video is 1280, so I expected that it would not be downloaded, but against my intuition, youtube-dl started to download a video file with a size of 74.1mb(which must be the following format, considering its size):
264          mp4        720x1280   DASH video 4183k , 30fps, video only, 74.10MiB
Not only is the height condition mismatched, but it isn't the best video format either; the video format whose height is 1280(maximum) which has the highest bitrate is 271 :
271          webm       720x1280   DASH video 4939k , 30fps, video only, 81.73MiB
Actually, the command
youtube-dl.exe -f "bestvideo[height>=xxxx]+bestaudio https://www.youtube.com/watch?v=EQCrhbBxsjA
with xxxx replaced by anything higher than 1280 seems to try to fetch that same video file with a size of 74.1mb.
youtube-dl.exe -f "bestvideo[height>=1280]+bestaudio https://www.youtube.com/watch?v=EQCrhbBxsjA
seems to finally select the video format with a size of around 81mb (probably 271 listed above), which is a behavior that I can understand.
Should this be considered a bug, or am I missing something?
If the latter is true, please point me in the right direction.
Thanks.

Will be fixed in the next version. Thanks for the report.


Error while installing jsx in system

steps
See installation docs
branch: development
commit: 3e47a26c0501f355f7a9c455ef8f1fb64999d0d0

For full logs: https://build.grid.tf/report/c62bb424-cf13-4cc8-bb5d-88096bf6c1e7

Fixed on development_fixes branch,
https://github.com/threefoldtech/jumpscaleX_core/commit/4f81998db27bc81029dc4dce88a26d8dc8ff7067

Verified
branch: development
commit: 37dcc01110f184c5caa32d628721c2cf9003fc7b
Full installation log: https://build.grid.tf/report/55493518-2304-4fbc-ba5b-44344e0b2843


how to support batch_size > 1

Thanks for your great efforts!
I'm reading and try to runing the training code, I noticed that, in train.py, there are 2 comments "FIXME: only support train_batch_size=1", I'd like to know would you please to share the training code for batch_size > 1, if not, are there other issues about why the script can only support batch_size=1, if I want to modify it, are there other trap?
Looking forward to your reply. Thanks!

Same question! Have you solved this "batch_size > 1"? Is there any issues during the training process?


Upgraded to go 1.17

Upgraded to go 1.17 as 1.14 is not supported anymore.
Pinned the docker file to a hash https://github.com/ossf/scorecard/blob/main/docs/checks.md#pinned-dependencies

Thanks, could you update the release too: https://github.com/mempool/mempool-cli/blob/master/.github/workflows/release.yml#L22 ?

Thanks, could you update the release too: https://github.com/mempool/mempool-cli/blob/master/.github/workflows/release.yml#L22 ?

I have updated that.


Add katex szdytom

import repo katex

Don’t merge this branch yet, it still has some bugs.
I don’t know why it doesn’t load katex...


Add PHP 8.1 support

Could support for PHP 8.1 be added to this module?

Sure, will make some tests but should be doable ;)


didRulesComDOM: UseComDOM<DIDRulesViewModel>

@ThePhisch was there anything pending on this one or can we close this?


Intellisense in the Ook_Language_Integration sample

The sample "Ook_Language_Integration" has problems with the intellisense when the cursor is placed in a virtual space. The triggerPoint that is obtained with session.GetTriggerPoint(snapshot) is set back to the non-virtual position before the cursor (and as far as I know, SnapshotPoint can only represent non-virtual positions) which leads to a wrongly positioned intellisense window:

I have the same problem in my own language integration extension and don't know how to fix this.

yeahh, I have a extension with same problem, and by seeing how C# editor works, I noticed that it transforms virtual space in  actual text before showing the autocomplete list.
See before autocomplete listing:

And after pressing CTRL+SPACE:

Now, I don't know how to this conversion..

With your hint I managed to find the code that is responsible for that in roslyn:
if (this.TextView.Caret.Position.VirtualBufferPosition.IsInVirtualSpace)
{
    // Convert any virtual whitespace to real whitespace by doing an empty edit at the caret position.
    _editorOperationsFactoryService.GetEditorOperations(TextView).InsertText("");
}

Too bad that those generic things in roslyn are not factorized out to a reusable library so that one doesn't have to start from scratch when implementing an own language service.

thks for the code, gonna use it too!

@hediet hey, why don't you make a PR with issue solved?

Ok, I am on it.

I give up: For any reason, Visual Studio 2015 (as well as manual invoking msbuild) does not create the vsix container for the Ook_Language_Integration solution/project (and I checked almost everything). Thus I cannot test my changes...

OK, my turn to try it :+1:


Clean-up Python #4815 - P8.4: ML\DecTree

This is the sub-PR breaking from the large PR 4815: https://github.com/rdkit/rdkit/pull/4815

Updated Changes:

[Remark]: Function MaxCount() in PruneTree.py is now faster 2x and used less memory.
[Warning]: Using sum() consumed less memory compared to len() but is slower time_len ~ 0.85 * time_sum
[Remark]: Default variable of nQuantBounds in function ChooseOptimalRoot() in CrossValidate.py() is set to be None.
[Remark]: Optimize function ChooseOptimalRoot() in CrossValidate.py()

This branch is a break, and I will delete it


THE SCRIPT HAS A TROJAN !!!!

the rar contains a trojan script !!! can you fix it !! it wasnt infected last month but now it has a virus

lmao

code is open source

xD you are not serious

Can anyone download the file again , and scan it with windows defender make sure you have the latest windows update because the windows defender got updated and it might detect new threats ... can anyone tell me if you are having the same problem as me.
Note : Its not fake so if you dont have the issue then please dont accuse me

Just allow it. Its a false positive

False positives (false alarms) are harmless files or URLs that are incorrectly identified as malicious by the antivirus program. Software programs that behave like malware or use identical file compression and protection techniques are susceptible to false alarms.
It's like you got scam and Paypal replied: "Lmao"

?


Push view controller animation is not working when we added page controller in destination view controller

Did you find any solution? I have the same problem

I user JXBanner have the same problem.
I changed here:
// self.refreshPageControl() ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
DispatchQueue.main.async {
self.refreshPageControl()
}


⚠ ClamAV has degraded performance

In af5f9fc, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 81 ms

Resolved: ClamAV performance has improved in 9bd0563.


Fix broken link to wordcount.rs example

Looks great! Thanks for the catch, and sorry about the delay.