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

cant run in manjaro #1898

Open
dzwdev opened this issue Apr 14, 2024 · 3 comments · May be fixed by #1903
Open

cant run in manjaro #1898

dzwdev opened this issue Apr 14, 2024 · 3 comments · May be fixed by #1903

Comments

@dzwdev
Copy link

dzwdev commented Apr 14, 2024

iget this error:

Traceback (most recent call last):
  File "/usr/bin/onionshare", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3.11/site-packages/onionshare/__init__.py", line 251, in main
    main_window = MainWindow(common, filenames)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/onionshare/main_window.py", line 151, in __init__
    self.show()
  File "/usr/lib/python3.11/site-packages/onionshare/main_window.py", line 277, in event
    return QtWidgets.QMainWindow.event(self, event)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/onionshare/main_window.py", line 319, in resizeEvent
    return super(MainWindow, self).resizeEvent(event)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'PySide6.QtWidgets.QWidget.resizeEvent' called with wrong argument types:
  PySide6.QtWidgets.QWidget.resizeEvent(QEvent)
Supported signatures:
  PySide6.QtWidgets.QWidget.resizeEvent(PySide6.QtGui.QResizeEvent)
QThread: Destroyed while thread is still running
zsh: IOT instruction (core dumped)  onionshare
@SuperSandro2000 SuperSandro2000 linked a pull request May 7, 2024 that will close this issue
@SuperSandro2000
Copy link

Please test #1903

@dzwdev
Copy link
Author

dzwdev commented May 8, 2024

Please test #1903

python3 -m venv .venv
source .venv/bin/activate
pip3 install poetry
poetry install
Current Python version (3.12.3) is not allowed by the project (>=3.8,<3.12).

i have edited the files: pyproject.toml and poetry.lock to support me version, i get:
`poetry lock --no-update  1 ✘  desktop 
Resolving dependencies... (0.1s)

The current project's supported Python range (>=3.8,<3.13) is not compatible with some of the required packages Python requirement:

  • onionshare-cli requires Python >=3.8,<3.12, so it will not be satisfied for Python >=3.12,<3.13

Because onionshare depends on onionshare-cli (2.6.2) @ file:///home/pc/Downloads/onionshare-main/cli which requires Python >=3.8,<3.12, version solving failed.

• Check your dependencies Python requirement: The Python requirement can be specified via the python or markers properties

For onionshare-cli, a possible solution would be to set the `python` property to ">=3.8,<3.12"

https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies,
https://python-poetry.org/docs/dependency-specification/#using-environment-markers

`

@dzwdev
Copy link
Author

dzwdev commented May 9, 2024

`poetry install  ✔  desktop 

Installing dependencies from lock file

pyproject.toml changed significantly since poetry.lock was last generated. Run poetry lock [--no-update] to fix the lock file.
`

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

Successfully merging a pull request may close this issue.

2 participants