8000 python -m build step is failing with below error. · Issue #34 · swan-cern/sparkmonitor · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

python -m build step is failing with below error. #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact it 8000 s 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

Open
abhijeetgurle-dream11 opened this issue Dec 23, 2024 · 0 comments
Open

python -m build step is failing with below error. #34

abhijeetgurle-dream11 opened this issue Dec 23, 2024 · 0 comments

Comments

@abhijeetgurle-dream11
Copy link

I am trying to build the wheel file for this project. I tried running python -m build command. Got the following error as response. Can someone help with what can be done here, so that I can build the project and create a wheel file for installation?

❯ python -m build
* Creating isolated environment: venv+pip...
* Installing packages in isolated environment:
  - hatch-nodejs-version>=0.3.2
  - hatchling>=1.5.0
  - jupyterlab>=4.0.0,<5
* Getting build dependencies for sdist...
* Installing packages in isolated environment:
  - hatch-jupyter-builder>=0.5
* Building sdist...
INFO:hatch_jupyter_builder.utils:Running jupyter-builder
INFO:hatch_jupyter_builder.utils:Building with hatch_jupyter_builder.npm_builder
INFO:hatch_jupyter_builder.utils:With kwargs: {'build_cmd': 'build:prod', 'npm': ['jlpm']}
INFO:hatch_jupyter_builder.utils:Installing build dependencies with npm.  This may take a while...
INFO:hatch_jupyter_builder.utils:> /private/var/folders/20/38cjmdn57m32r90s_8_cgj_00000gr/T/build-env-6yco9wzj/bin/jlpm install
➤ YN0000: ┌ Resolution step
➤ YN0002: │ @jupyterlab/services@npm:7.3.4 doesn't provide react (p0e266), requested by @jupyterlab/settingregistry
➤ YN0002: │ sparkmonitor@workspace:. doesn't provide @egjs/hammerjs (p417bc), requested by vis-timeline
➤ YN0002: │ sparkmonitor@workspace:. doesn't provide @egjs/hammerjs (p3fdd0), requested by vis-util
➤ YN0002: │ sparkmonitor@workspace:. doesn't provide component-emitter (pb5a33), requested by vis-timeline
➤ YN0002: │ sparkmonitor@workspace:. doesn't provide component-emitter (pceb2a), requested by vis-util
➤ YN0002: │ sparkmonitor@workspace:. doesn't provide plotly.js (p450ff), requested by react-plotly.js
➤ YN0002: │ sparkmonitor@workspace:. doesn't provide propagating-hammerjs (pfe5de), requested by vis-timeline
➤ YN0002: │ sparkmonitor@workspace:. doesn't provide uuid (p9f087), requested by vis-data
➤ YN0002: │ sparkmonitor@workspace:. doesn't provide uuid (p54c6d), requested by vis-timeline
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed
➤ YN0000: ┌ Link step
➤ YN0007: │ @fortawesome/fontawesome-free@npm:5.15.4 must be built because it never has been before or the last one failed
➤ YN0000: └ Completed in 7s 381ms
➤ YN0000: Done with warnings in 7s 737ms
INFO:hatch_jupyter_builder.utils:> /private/var/folders/20/38cjmdn57m32r90s_8_cgj_00000gr/T/build-env-6yco9wzj/bin/jlpm run build:prod
node_modules/mobx/dist/types/observablemap.d.ts:57:13 - error TS2552: Cannot find name 'MapIterator'. Did you mean 'Iterator'?

57     keys(): MapIterator<K>;
               ~~~~~~~~~~~

node_modules/mobx/dist/types/observablemap.d.ts:58:15 - error TS2552: Cannot find name 'MapIterator'. Did you mean 'Iterator'?

58     values(): MapIterator<V>;
                 ~~~~~~~~~~~

node_modules/mobx/dist/types/observablemap.d.ts:59:16 - error TS2552: Cannot find name 'MapIterator'. Did you mean 'Iterator'?

59     entries(): MapIterator<IMapEntry<K, V>>;
                  ~~~~~~~~~~~

node_modules/mobx/dist/types/observablemap.d.ts:60:26 - error TS2552: Cannot find name 'MapIterator'. Did you mean 'Iterator'?

60     [Symbol.iterator](): MapIterator<IMapEntry<K, V>>;
                            ~~~~~~~~~~~

node_modules/mobx/dist/types/observableset.d.ts:42:16 - error TS2552: Cannot find name 'SetIterator'. Did you mean 'Iterator'?

42     entries(): SetIterator<[T, T]>;
                  ~~~~~~~~~~~

node_modules/mobx/dist/types/observableset.d.ts:43:13 - error TS2552: Cannot find name 'SetIterator'. Did you mean 'Iterator'?

43     keys(): SetIterator<T>;
               ~~~~~~~~~~~

node_modules/mobx/dist/types/observableset.d.ts:44:15 - error TS2552: Cannot find name 'SetIterator'. Did you mean 'Iterator'?

44     values(): SetIterator<T>;
                 ~~~~~~~~~~~

node_modules/mobx/dist/types/observableset.d.ts:45:31 - error TS2552: Cannot find name 'ReadonlySetLike'. Did you mean 'ReadonlySet'?

45     intersection<U>(otherSet: ReadonlySetLike<U> | Set<U>): Set<T & U>;
                                 ~~~~~~~~~~~~~~~

node_modules/mobx/dist/types/observableset.d.ts:46:24 - error TS2552: Cannot find name 'ReadonlySetLike'. Did you mean 'ReadonlySet'?

46     union<U>(otherSet: ReadonlySetLike<U> | Set<U>): Set<T | U>;
                          ~~~~~~~~~~~~~~~

node_modules/mobx/dist/types/observableset.d.ts:47:29 - error TS2304: Cannot find name 'ReadonlySetLike'.

47     difference<U>(otherSet: ReadonlySetLike<U>): Set<T>;
                               ~~~~~~~~~~~~~~~

node_modules/mobx/dist/types/observableset.d.ts:48:38 - error TS2304: Cannot find name 'ReadonlySetLike'.

48     symmetricDifference<U>(otherSet: ReadonlySetLike<U> | Set<U>): Set<T | U>;
                                        ~~~~~~~~~~~~~~~

node_modules/mobx/dist/types/observableset.d.ts:49:26 - error TS2304: Cannot find name 'ReadonlySetLike'.

49     isSubsetOf(otherSet: ReadonlySetLike<unknown>): boolean;
                            ~~~~~~~~~~~~~~~

node_modules/mobx/dist/types/observableset.d.ts:50:28 - error TS2304: Cannot find name 'ReadonlySetLike'.

50     isSupersetOf(otherSet: ReadonlySetLike<unknown>): boolean;
                              ~~~~~~~~~~~~~~~

node_modules/mobx/dist/types/observableset.d.ts:51:30 - error TS2304: Cannot find name 'ReadonlySetLike'.

51     isDisjointFrom(otherSet: ReadonlySetLike<unknown> | Set<unknown>): boolean;
                                ~~~~~~~~~~~~~~~

node_modules/mobx/dist/types/observableset.d.ts:57:26 - error TS2552: Cannot find name 'SetIterator'. Did you mean 'Iterator'?

57     [Symbol.iterator](): SetIterator<T>;
                            ~~~~~~~~~~~

node_modules/mobx/dist/utils/iterable.d.ts:1:84 - error TS2314: Generic type 'IteratorObject<T, TReturn, TNext>' requires 3 type argument(s).

1 export declare function makeIterable<T, TReturn = unknown>(iterator: Iterator<T>): IteratorObject<T, TReturn>;
                                                                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~

src/components/job-table.tsx:28:10 - error TS2786: 'ReactTimeAgo' cannot be used as a JSX component.
  Its instance type 'ReactTimeago<ElementType<{ date: Date; minPeriod: 10; }, keyof IntrinsicElements>, { date: Date; minPeriod: 10; }>' is not a valid JSX element.
    Property 'refs' is missing in type 'ReactTimeago<ElementType<{ date: Date; minPeriod: 10; }, keyof IntrinsicElements>, { date: Date; minPeriod: 10; }>' but required in type 'ElementClass'.

28         <ReactTimeAgo date={stage.submissionTime} minPeriod={10} />
            ~~~~~~~~~~~~

  node_modules/@types/react/ts5.0/index.d.ts:1041:9
    1041         refs: {
                 ~~~~
    'refs' is declared here.

src/components/job-table.tsx:100:12 - error TS2786: 'ReactTimeAgo' cannot be used as a JSX component.
  Its instance type 'ReactTimeago<ElementType<{ date: Date; minPeriod: 10; }, keyof IntrinsicElements>, { date: Date; minPeriod: 10; }>' is not a valid JSX element.
    Property 'refs' is missing in type 'ReactTimeago<ElementType<{ date: Date; minPeriod: 10; }, keyof IntrinsicElements>, { date: Date; minPeriod: 10; }>' but required in type 'ElementClass'.

100           <ReactTimeAgo date={job.startTime} minPeriod={10} />
               ~~~~~~~~~~~~

  node_modules/@types/react/ts5.0/index.d.ts:1041:9
    1041         refs: {
                 ~~~~
    'refs' is declared here.


Found 18 errors in 4 files.

Errors  Files
     4  node_modules/mobx/dist/types/observablemap.d.ts:57
    11  node_modules/mobx/dist/types/observableset.d.ts:42
     1  node_modules/mobx/dist/utils/iterable.d.ts:1
     2  src/components/job-table.tsx:28
Traceback (most recent call last):
  File "/Users/abhijeetgurle/Desktop/sparkmonitor/venv/lib/python3.9/site-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
    main()
  File "/Users/abhijeetgurle/Desktop/sparkmonitor/venv/lib/python3.9/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main
    json_out["return_val"] = hook(**hook_input["kwargs"])
  File "/Users/abhijeetgurle/Desktop/sparkmonitor/venv/lib/python3.9/site-packages/pyproject_hooks/_in_process/_in_process.py", line 335, in build_sdist
    return backend.build_sdist(sdist_directory, config_settings)
  File "/private/var/folders/20/38cjmdn57m32r90s_8_cgj_00000gr/T/build-env-6yco9wzj/lib/python3.9/site-packages/hatchling/build.py", line 34, in build_sdist
    return os.path.basename(next(builder.build(directory=sdist_directory, versions=['standard'])))
  File "/private/var/folders/20/38cjmdn57m32r90s_8_cgj_00000gr/T/build-env-6yco9wzj/lib/python3.9/site-packages/hatchling/builders/plugin/interface.py", line 147, in build
    build_hook.initialize(version, build_data)
  File "/private/var/folders/20/38cjmdn57m32r90s_8_cgj_00000gr/T/build-env-6yco9wzj/lib/python3.9/site-packages/hatch_jupyter_builder/plugin.py", line 94, in initialize
    raise e
  File "/private/var/folders/20/38cjmdn57m32r90s_8_cgj_00000gr/T/build-env-6yco9wzj/lib/python3.9/site-packages/hatch_jupyter_builder/plugin.py", line 89, in initialize
    build_func(self.target_name, version, **build_kwargs)
  File "/private/var/folders/20/38cjmdn57m32r90s_8_cgj_00000gr/T/build-env-6yco9wzj/lib/python3.9/site-packages/hatch_jupyter_builder/utils.py", line 117, in npm_builder
    run([*npm_cmd, "run", build_cmd], cwd=str(abs_path))
  File "/private/var/folders/20/38cjmdn57m32r90s_8_cgj_00000gr/T/build-env-6yco9wzj/lib/python3.9/site-packages/hatch_jupyter_builder/utils.py", line 231, in run
    return subprocess.check_call(cmd, **kwargs)
  File "/opt/homebrew/Cellar/python@3.9/3.9.20/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/private/var/folders/20/38cjmdn57m32r90s_8_cgj_00000gr/T/build-env-6yco9wzj/bin/jlpm', 'run', 'build:prod']' returned non-zero exit status 1.

ERROR Backend subprocess exited when trying to invoke build_sdist

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
0