Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to execute first_run.dev.sh #537

Open
debayangg opened this issue Apr 1, 2024 · 1 comment
Open

Unable to execute first_run.dev.sh #537

debayangg opened this issue Apr 1, 2024 · 1 comment

Comments

@debayangg
Copy link

OS: Kali GNU/Linux Rolling x86_64
Kernel : 6.1.0-kali9-amd64
docker-compose version: 1.29.2

An error occurs while building pyproject.toml:

                                                                                                                                                             
  × Preparing metadata (pyproject.toml) did not run successfully.                                                                                            
  │ exit code: 1                                                                                                                                             
  ╰─> [55 lines of output]                                                                                                                                   
      Running from numpy source directory.                                                                                                                   
      /tmp/pip-install-pjj9azxk/numpy_3363b09721d246cc945ecb2321494a4e/setup.py:461: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates                                                                                                                      
        run_build = parse_setuppy_commands()                                                                                                                 
      Cythonizing sources                                                                                                                                    
      Processing numpy/random/_bounded_integers.pxd.in                                                                                                       
      Processing numpy/random/_philox.pyx                                                                                                                    
      /tmp/pip-install-pjj9azxk/numpy_3363b09721d246cc945ecb2321494a4e/tools/cythonize.py:75: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.                                                                                                                                
        required_version = LooseVersion('0.29.14')                                                                                                           
      /tmp/pip-install-pjj9azxk/numpy_3363b09721d246cc945ecb2321494a4e/tools/cythonize.py:77: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.                                                                                                                                
        if LooseVersion(cython_version) < required_version:                                                                                                  
                                                                                                                                                             
      Error compiling Cython file:                                                                                                                           
      ------------------------------------------------------------                                                                                           
      ...                                                                                                                                                    
                  self.rng_state.ctr.v[i] = counter[i]                                                                                                       
                                                                                                                                                             
              self._reset_state_variables()                                                                                                                  
                                                                                                                                                             
              self._bitgen.state = <void *>&self.rng_state                                                                                                   
              self._bitgen.next_uint64 = &philox_uint64                                                                                                      
                                         ^                                                                                                                   
      ------------------------------------------------------------                                                                                           
                                                                                                                                                             
      _philox.pyx:195:35: Cannot assign type 'uint64_t (*)(void *) except? -1 nogil' to 'uint64_t (*)(void *) noexcept nogil'. Exception values are incompatible. Suggest adding 'noexcept' to the type of the value being assigned.                                                                                      
      Traceback (most recent call last):                                                                                                                     
        File "/tmp/pip-install-pjj9azxk/numpy_3363b09721d246cc945ecb2321494a4e/tools/cythonize.py", line 238, in <module>                                    
          main()                                                                                                                                             
        File "/tmp/pip-install-pjj9azxk/numpy_3363b09721d246cc945ecb2321494a4e/tools/cythonize.py", line 234, in main                                        
          find_process_files(root_dir)                                                                                                                       
        File "/tmp/pip-install-pjj9azxk/numpy_3363b09721d246cc945ecb2321494a4e/tools/cythonize.py", line 225, in find_process_files                          
          process(root_dir, fromfile, tofile, function, hash_db)                                                                                             
        File "/tmp/pip-install-pjj9azxk/numpy_3363b09721d246cc945ecb2321494a4e/tools/cythonize.py", line 191, in process                                     
          processor_function(fromfile, tofile)                                                                                                               
        File "/tmp/pip-install-pjj9azxk/numpy_3363b09721d246cc945ecb2321494a4e/tools/cythonize.py", line 81, in process_pyx                                  
          [sys.executable, '-m', 'cython'] + flags + ["-o", tofile, fromfile])                                                                               
        File "/usr/local/lib/python3.7/subprocess.py", line 363, in check_call                                                                               
          raise CalledProcessError(retcode, cmd)                                                                                                             
      subprocess.CalledProcessError: Command '['/usr/local/bin/python', '-m', 'cython', '-3', '--fast-fail', '-o', '_philox.c', '_philox.pyx']' returned non-zero exit status 1.                                                                                                                                          
      Traceback (most recent call last):                                                                                                                     
        File "/usr/local/lib/python3.7/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>                          
          main()                                                                                                                                             
        File "/usr/local/lib/python3.7/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main                              
          json_out['return_val'] = hook(**hook_input['kwargs'])                                                                                              
        File "/usr/local/lib/python3.7/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel  
          return hook(metadata_directory, config_settings)                                                                                                   
        File "/tmp/pip-build-env-2hhoi6ko/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 380, in prepare_metadata_for_build_wheel       
          self.run_setup()                                                                                                                                   
        File "/tmp/pip-build-env-2hhoi6ko/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 488, in run_setup                              
          self).run_setup(setup_script=setup_script)                                                                                                         
        File "/tmp/pip-build-env-2hhoi6ko/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 338, in run_setup                              
          exec(code, locals())                                                                                                                               
        File "<string>", line 488, in <module>                                                                                                               
        File "<string>", line 469, in setup_package                                                                                                          
        File "<string>", line 275, in generate_cython                                                                                                        
      RuntimeError: Running cythonize failed!                                                                                                                
      [end of output]                                                                                                                                        
                                                                                                                                                             
  note: This error originates from a subprocess, and is likely not a problem with pip.                                                                       
error: metadata-generation-failed                                                                                                                            
                                                                                                                                                             
× Encountered error while generating package metadata.                                                                                                       
╰─> See above for output.                                                                                                                                    
                                                                                                                                                             
note: This is an issue with the package mentioned above, not pip.                                                                                            
hint: See above for details. ```
@debayangg
Copy link
Author

I searched about this error on the Internet and it seems similar to this. So, maybe its due to the cython version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant