Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [71 lines of output]
Traceback (most recent call last):
File "C:\Users\SVL\AppData\Local\Temp\pip-build-env-fin4703t\overlay\Lib\site-packages\setuptools\config\expand.py", line 81, in __getattr__
return next(
^^^^^
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\SVL\AppData\Local\Temp\pip-build-env-fin4703t\overlay\Lib\site-packages\setuptools\config\expand.py", line 191, in read_attr
return getattr(StaticModule(module_name, spec), attr_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\SVL\AppData\Local\Temp\pip-build-env-fin4703t\overlay\Lib\site-packages\setuptools\config\expand.py", line 87, in __getattr__
raise AttributeError(f"{self.name} has no attribute {attr}") from e
AttributeError: streamlit_elements has no attribute __version__
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\Users\SVL\Desktop\ua\.venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "c:\Users\SVL\Desktop\ua\.venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\SVL\Desktop\ua\.venv\Lib\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 "C:\Users\SVL\AppData\Local\Temp\pip-build-env-fin4703t\overlay\Lib\site-packages\setuptools\build_meta.py", line 380, in prepare_metadata_for_build_wheel
self.run_setup()
File "C:\Users\SVL\AppData\Local\Temp\pip-build-env-fin4703t\overlay\Lib\site-packages\setuptools\build_meta.py", line 488, in run_setup
self).run_setup(setup_script=setup_script)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\SVL\AppData\Local\Temp\pip-build-env-fin4703t\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in run_setup
exec(code, locals())
File "<string>", line 3, in <module>
File "C:\Users\SVL\AppData\Local\Temp\pip-build-env-fin4703t\overlay\Lib\site-packages\setuptools\__init__.py", line 107, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\SVL\AppData\Local\Temp\pip-build-env-fin4703t\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 159, in setup
dist.parse_config_files()
File "C:\Users\SVL\AppData\Local\Temp\pip-build-env-fin4703t\overlay\Lib\site-packages\setuptools\dist.py", line 904, in parse_config_files
setupcfg.parse_configuration(
File "C:\Users\SVL\AppData\Local\Temp\pip-build-env-fin4703t\overlay\Lib\site-packages\setuptools\config\setupcfg.py", line 189, in parse_configuration
meta.parse()
File "C:\Users\SVL\AppData\Local\Temp\pip-build-env-fin4703t\overlay\Lib\site-packages\setuptools\config\setupcfg.py", line 500, in parse
section_parser_method(section_options)
File "C:\Users\SVL\AppData\Local\Temp\pip-build-env-fin4703t\overlay\Lib\site-packages\setuptools\config\setupcfg.py", line 475, in parse_section
self[name] = value
~~~~^^^^^^
File "C:\Users\SVL\AppData\Local\Temp\pip-build-env-fin4703t\overlay\Lib\site-packages\setuptools\config\setupcfg.py", line 293, in __setitem__
parsed = self.parsers.get(option_name, lambda x: x)(value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\SVL\AppData\Local\Temp\pip-build-env-fin4703t\overlay\Lib\site-packages\setuptools\config\setupcfg.py", line 606, in _parse_version
return expand.version(self._parse_attr(value, self.package_dir, self.root_dir))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\SVL\AppData\Local\Temp\pip-build-env-fin4703t\overlay\Lib\site-packages\setuptools\config\setupcfg.py", line 417, in _parse_attr
return expand.read_attr(attr_desc, package_dir, root_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\SVL\AppData\Local\Temp\pip-build-env-fin4703t\overlay\Lib\site-packages\setuptools\config\expand.py", line 194, in read_attr
module = _load_spec(spec, module_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\SVL\AppData\Local\Temp\pip-build-env-fin4703t\overlay\Lib\site-packages\setuptools\config\expand.py", line 214, in _load_spec
spec.loader.exec_module(module) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "C:\Users\SVL\Desktop\ua\streamlit-elements\streamlit_elements\__init__.py", line 1, in <module>
from streamlit_elements.core.frame import new_frame as _new_frame
File "C:\Users\SVL\Desktop\ua\streamlit-elements\streamlit_elements\core\frame.py", line 3, in <module>
from streamlit import session_state
ModuleNotFoundError: No module named 'streamlit'
[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.
I've installed streamlit in a venv and activated the venv using vscode on widows before trying to install the repository - I'm probably doing something daft!
Hi, I'm trying to install as a git submodule using the following commands:
git submodule add https://github.com/okld/streamlit-elements.git
cd streamlit-elements
pip install .
unfortunately i get the following error:
I've installed streamlit in a venv and activated the venv using vscode on widows before trying to install the repository - I'm probably doing something daft!
Thanks!