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

Choose folder/ files button doesn't work #39

Open
Biasio opened this issue May 19, 2022 · 2 comments
Open

Choose folder/ files button doesn't work #39

Biasio opened this issue May 19, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@Biasio
Copy link

Biasio commented May 19, 2022

Ciao!
I have installed your program in linux with the dev instructions, because the release page file is not working for me, in terminal it says:
Language detected: en Segmentation fault (core dumped)
after executing it.
With dev instructions I'm able to start main.py and the dark mode button works just fine, but for the next one (choose folder etc) doesn't open any window. Maybe I have done something wrong?
I'm on Pop_OS! 22.04 if it helps.
Thank you for your time

@e-caste
Copy link
Owner

e-caste commented May 19, 2022

Hi @Biasio and thanks for your interest in this project. A couple of things come to mind:

  1. have you installed the libmediainfo-dev package with apt? By the way, if it has changed with Ubuntu 22.04 let me know and I'll update the README, right now it's for 20.04
  2. since you can run the main.py script from the terminal, would you be so kind as to comment with the Python traceback?

@e-caste e-caste added the bug Something isn't working label May 19, 2022
@e-caste
Copy link
Owner

e-caste commented May 19, 2022

@Biasio
Here's what I've found so far:

  • implicit requirements to develop on Linux (Ubuntu 22.04) include gcc and libxcb-xinerama0 -- I'll see if I can find a way to include the latter inside the executable
  • the traceback that you are (probably) seeing is the following and is due to using the wrong Python version (3.10, while the expected one is 3.9) -- I will look into making it compatible with 3.10:
Language detected: en
Already on latest release.
Traceback (most recent call last):
  File ".../study-planner/main.py", line 128, in <lambda>
    self.choose_directory_button.clicked.connect(lambda: show_file_dialog())
  File ".../study-planner/main.py", line 115, in show_file_dialog
    FileDialog(last_dir=get_preference(Preference.last_dir,
  File ".../study-planner/main.py", line 221, in __init__
    self.setLayout(LoadingScreen(show_spinner=False))
  File ".../study-planner/main.py", line 148, in __init__
    self.loading_spinner = QtWaitingSpinner()
  File ".../study-planner/waiting_spinner_widget.py", line 60, in __init__
    self.updateTimer()
  File ".../study-planner/waiting_spinner_widget.py", line 188, in updateTimer
    self._timer.setInterval(1000 / (self._numberOfLines * self._revolutionsPerSecond))
TypeError: setInterval(self, int): argument 1 has unexpected type 'float'

This doesn't yet answer why the executable crashes since it bundles Python 3.9, so I will keep this issue open, but in the meantime you can use Python 3.9: https://askubuntu.com/a/682875

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants