SetuptoolsDeprecationWarning

Hello All!
I’m having hard time with dash app deployment. Despite hours to search something useful, I get stuck !

Error msg says in brief,
DeprecationWarning: pkg_resources is deprecated as an API.
SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated.

Here are last lines of error msg

Collecting PyNaCl==1.5.0 (from -r requirements.txt (line 115))
  Downloading PyNaCl-1.5.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl.metadata (8.6 kB)
Collecting pyobjc-core==10.1 (from -r requirements.txt (line 116))
  Downloading pyobjc-core-10.1.tar.gz (927 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 927.9/927.9 kB 91.0 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [25 lines of output]
      <string>:17: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
      <string>:212: SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated.
      !!

I understand packages installation failed due to setup tools deprecation.
So, what is the working principle now ?
Do I need to build specific file ? if yes what is the idea behind ?

Many thanks for your time on this !

Many of the libraries part of the requirements.txt file were attached to Spyder IDE.
Build phase do not need those.
So, the thing is to build a new requirements.txt file with libraries off the development context.
That is the one to push to cloud platform.

1 Like