install XStatic dependencies together (#81689) #11

Merged
bdauvergne merged 1 commits from wip/81689-Installer-les-dependances-XStati into main 2023-09-27 16:51:10 +02:00
Owner
No description provided.
bdauvergne added 1 commit 2023-09-27 14:12:29 +02:00
gitea/publik-devinst/pipeline/head This commit looks good Details
702060e25e
install XStatic dependencies together (#81689)
Owner

Perso en local avec un make install dans ta branche devinst, je me tape une erreur qui une fois mise en forme donne :

stdout: Requirement already satisfied: XStatic in /home/paul/envs/publik-env-py3/lib/python3.11/site-packages (1.0.3)
Collecting XStatic-ChartNew.js
  Using cached XStatic-ChartNew.js-0.3.0.0.tar.gz (98 kB)
  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'

:stderr:   error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [20 lines of output]
      Traceback (most recent call last):
        File "/home/paul/envs/publik-env-py3/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/home/paul/envs/publik-env-py3/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/paul/envs/publik-env-py3/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-354_1xjn/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-354_1xjn/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-354_1xjn/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 507, in run_setup
          super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
        File "/tmp/pip-build-env-354_1xjn/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 341, in run_setup
          exec(code, locals())
        File "<string>", line 1, in <module>
      ImportError: cannot import name 'chartnew_js' from 'xstatic.pkg' (unknown location)
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip
Perso en local avec un make install dans ta branche devinst, je me tape une erreur qui une fois mise en forme donne : ``` stdout: Requirement already satisfied: XStatic in /home/paul/envs/publik-env-py3/lib/python3.11/site-packages (1.0.3) Collecting XStatic-ChartNew.js Using cached XStatic-ChartNew.js-0.3.0.0.tar.gz (98 kB) 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' :stderr: error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [20 lines of output] Traceback (most recent call last): File "/home/paul/envs/publik-env-py3/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module> main() File "/home/paul/envs/publik-env-py3/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/paul/envs/publik-env-py3/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) ^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-354_1xjn/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=['wheel']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-354_1xjn/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires self.run_setup() File "/tmp/pip-build-env-354_1xjn/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 507, in run_setup super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script) File "/tmp/pip-build-env-354_1xjn/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 341, in run_setup exec(code, locals()) File "<string>", line 1, in <module> ImportError: cannot import name 'chartnew_js' from 'xstatic.pkg' (unknown location) [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip ```
pmarillonnet approved these changes 2023-09-27 14:53:08 +02:00
pmarillonnet left a comment
Owner

Ok, un peu dommage d’avoir à taper ça directement dans le playbook pour remédier aux soucis de packaging de xstatic, mais si c’est ce qu’il faut, so be it.
Je note que côté godo, avant d’avoir mergé #78773 il faut déclarer cette branche dans son inventaire local :

godo_version: "wip/78773-passage-a-trixie-et-erreur-setup"
Ok, un peu dommage d’avoir à taper ça directement dans le playbook pour remédier aux soucis de packaging de xstatic, mais si c’est ce qu’il faut, so be it. Je note que côté godo, avant d’avoir mergé #78773 il faut déclarer cette branche dans son inventaire local : ``` godo_version: "wip/78773-passage-a-trixie-et-erreur-setup" ```
bdauvergne merged commit 702060e25e into main 2023-09-27 16:51:10 +02:00
bdauvergne deleted branch wip/81689-Installer-les-dependances-XStati 2023-09-27 16:51:10 +02:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: entrouvert/publik-devinst#11
No description provided.