benprieur / PyCommonist

Images upload to Wikimedia Commons
https://commons.wikimedia.org/wiki/Category:PyCommonist
MIT License
7 stars 2 forks source link

error in using select all button #11

Open Joergens-Mi opened 2 months ago

Joergens-Mi commented 2 months ago

When I am using the button "select all images" I get the following. (pycommonist-v1.0.zip)

c:\PortableApps\MyApps\PyCommonist>python main.py PyCommonist.py-90 directory: D:/Bilder/2024/202408/20240828/work 2024:08:28 11:34:58 2024:08:28 11:13:53 Traceback (most recent call last): File "c:\PortableApps\MyApps\PyCommonist\PyCommonist.py", line 209, in btn_select_all_images element.cb_import.setCheckState(True) TypeError: setCheckState(self, state: Qt.CheckState): argument 1 has unexpected type 'bool'

Joergens-Mi commented 2 months ago

Thanks for delivering the file so fast.

but I'm missing a read.me how to proceed. When I unpack and call the exe it simply starts and vanishes

benprieur commented 2 months ago

Hi, Follow this:

Joergens-Mi commented 2 months ago

Sorry for bothering again

I'm working on the windows 11 computer. I'm using Python 3.12.4 (tags/v3.12.4:8e8a4ba, Jun 6 2024, 19:30:16) [MSC v.1940 64 bit (AMD64)] on win32. This is freshly installed according to the defaults. I'm not used to python, I just want to upload pictures.

These two lines are not working virtualenv venv command maybe wrong written or does not exist after some research this line produces no error python -m venv c:\PyCommonist

source venv/bin/activate => the same: command maybe wrong written or does not exist using .\Scripts\activate.bat instead gives me an pyhton prompt (PyCommonist) c:\PyCommonist>

pip install -r requirements.txt will lead to this: (some lines are working ) ..... Collecting PyYAML==5.4.1 (from -r requirements.txt (line 5)) Using cached PyYAML-5.4.1.tar.gz (175 kB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [54 lines of output] running egg_info writing lib3\PyYAML.egg-info\PKG-INFO writing dependency_links to lib3\PyYAML.egg-info\dependency_links.txt writing top-level names to lib3\PyYAML.egg-info\top_level.txt Traceback (most recent call last): File "C:\Users\PAD\AppData\Roaming\Python\Python312\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in main()

Thanks for your help in advance

benprieur commented 2 months ago

Hi, I guess virtualenv is not installed (pip install virtualenv), perhaps we can discuss by private message? Please contact me :)

Joergens-Mi commented 1 month ago

Hi, i installed venv according to your instructions, it may be have been missing or there was an update It worked fine. Running pip install -r requirements.txt doesn't work a pip update was recommended. I did it,

But nothing changed

Here is the protocol:

Thanks for your help in advance

Sincerly joergens.mi

c:\PyCommonist>virtualenv venv Der Befehl "virtualenv" ist entweder falsch geschrieben oder konnte nicht gefunden werden.

*c:\PyCommonist> python -m venv c:\PyCommonistc:\PyCommonist> .\Scripts\activate.bat(PyCommonist) c:\PyCommonist>pip install -r requirements.txtCollecting certifi==2020.12.5 (from -r requirements.txt (line 1)) Using cached certifi-2020.12.5-py2.py3-none-any.whl.metadata (3.0 kB)Collecting chardet==4.0.0 (from -r requirements.txt (line 2)) Using cached chardet-4.0.0-py2.py3-none-any.whl.metadata (3.5 kB)Collecting ExifRead==2.3.2 (from -r requirements.txt (line 3)) Using cached ExifRead-2.3.2-py3-none-any.whl.metadata (6.2 kB)Collecting idna==2.10 (from -r requirements.txt (line 4)) Using cached idna-2.10-py2.py3-none-any.whl.metadata (9.1 kB)Collecting PyYAML==5.4.1 (from -r requirements.txt (line 5)) Using cached PyYAML-5.4.1.tar.gz (175 kB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [54 lines of output] running egg_info writing lib3\PyYAML.egg-info\PKG-INFO writing dependency_links to lib3\PyYAML.egg-info\dependency_links.txt writing top-level names to lib3\PyYAML.egg-info\top_level.txt Traceback (most recent call last): File "c:\PortableApps\MyApps\PyCommonist\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in main() File "c:\PortableApps\MyApps\PyCommonist\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:\PortableApps\MyApps\PyCommonist\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) ^^^^^^^^^^^^^^^^^^^^^ File "D:\Temp\pip-build-env-hktmxkyd\overlay\Lib\site-packages\setuptools\build_meta.py", line 332, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Temp\pip-build-env-hktmxkyd\overlay\Lib\site-packages\setuptools\build_meta.py", line 302, in _get_build_requires self.run_setup() File "D:\Temp\pip-build-env-hktmxkyd\overlay\Lib\site-packages\setuptools\build_meta.py", line 318, in run_setup exec(code, locals()) File "", line 271, in File "D:\Temp\pip-build-env-hktmxkyd\overlay\Lib\site-packages\setuptools__init__.py", line 117, in setup return distutils.core.setup(attrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Temp\pip-build-env-hktmxkyd\overlay\Lib\site-packages\setuptools_distutils\core.py", line 184, in setup return run_commands(dist) ^^^^^^^^^^^^^^^^^^ File "D:\Temp\pip-build-env-hktmxkyd\overlay\Lib\site-packages\setuptools_distutils\core.py", line 200, in run_commands dist.run_commands() File "D:\Temp\pip-build-env-hktmxkyd\overlay\Lib\site-packages\setuptools_distutils\dist.py", line 954, in run_commands self.run_command(cmd) File "D:\Temp\pip-build-env-hktmxkyd\overlay\Lib\site-packages\setuptools\dist.py", line 950, in run_command super().run_command(command) File "D:\Temp\pip-build-env-hktmxkyd\overlay\Lib\site-packages\setuptools_distutils\dist.py", line 973, in run_command cmd_obj.run() File "D:\Temp\pip-build-env-hktmxkyd\overlay\Lib\site-packages\setuptools\command\egg_info.py", line 311, in run self.find_sources() File "D:\Temp\pip-build-env-hktmxkyd\overlay\Lib\site-packages\setuptools\command\egg_info.py", line 319, in find_sources mm.run() File "D:\Temp\pip-build-env-hktmxkyd\overlay\Lib\site-packages\setuptools\command\egg_info.py", line 540, in run self.add_defaults() File "D:\Temp\pip-build-env-hktmxkyd\overlay\Lib\site-packages\setuptools\command\egg_info.py", line 578, in add_defaults sdist.add_defaults(self) File "D:\Temp\pip-build-env-hktmxkyd\overlay\Lib\site-packages\setuptools\command\sdist.py", line 108, in add_defaults super().add_defaults() File "D:\Temp\pip-build-env-hktmxkyd\overlay\Lib\site-packages\setuptools_distutils\command\sdist.py", line 250, in add_defaults self._add_defaults_ext() File "D:\Temp\pip-build-env-hktmxkyd\overlay\Lib\site-packages\setuptools_distutils\command\sdist.py", line 335, in _add_defaults_ext self.filelist.extend(build_ext.get_source_files()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 201, in get_source_files File "D:\Temp\pip-build-env-hktmxkyd\overlay\Lib\site-packages\setuptools_distutils\cmd.py", line 107, in getattr raise AttributeError(attr) AttributeError: cython_sources [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.[notice] A new release of pip is available: 24.0 -> 24.2[notice] To update, run: c:\PortableApps\MyApps\PyCommonist\Scripts\python.exe -m pip install --upgrade pip(PyCommonist) c:\PyCommonist>c:\PortableApps\MyApps\PyCommonist\Scripts\python.exe -m pip install --upgrade pipRequirement already satisfied: pip in c:\portableapps\myapps\pycommonist\lib\site-packages (24.0)Collecting pip Using cached pip-24.2-py3-none-any.whl.metadata (3.6 kB)Using cached pip-24.2-py3-none-any.whl (1.8 MB)Installing collected packages: pip Attempting uninstall: pip Found existing installation: pip 24.0 Uninstalling pip-24.0: Successfully uninstalled pip-24.0Successfully installed pip-24.2(PyCommonist) c:\PyCommonist>pip install -r requirements.txtCollecting certifi==2020.12.5 (from -r requirements.txt (line 1)) Using cached certifi-2020.12.5-py2.py3-none-any.whl.metadata (3.0 kB)Collecting chardet==4.0.0 (from -r requirements.txt (line 2)) Using cached chardet-4.0.0-py2.py3-none-any.whl.metadata (3.5 kB)Collecting ExifRead==2.3.2 (from -r requirements.txt (line 3)) Using cached ExifRead-2.3.2-py3-none-any.whl.metadata (6.2 kB)Collecting idna==2.10 (from -r requirements.txt (line 4)) Using cached idna-2.10-py2.py3-none-any.whl.metadata (9.1 kB)Collecting PyYAML==5.4.1 (from -r requirements.txt (line 5)) Using cached PyYAML-5.4.1.tar.gz (175 kB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [54 lines of output] running egg_info writing lib3\PyYAML.egg-info\PKG-INFO writing dependency_links to lib3\PyYAML.egg-info\dependency_links.txt writing top-level names to lib3\PyYAML.egg-info\top_level.txt Traceback (most recent call last): File "c:\PortableApps\MyApps\PyCommonist\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in main() File "c:\PortableApps\MyApps\PyCommonist\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:\PortableApps\MyApps\PyCommonist\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) ^^^^^^^^^^^^^^^^^^^^^ File "D:\Temp\pip-build-env-3ys5r45v\overlay\Lib\site-packages\setuptools\build_meta.py", line 332, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Temp\pip-build-env-3ys5r45v\overlay\Lib\site-packages\setuptools\build_meta.py", line 302, in _get_build_requires self.run_setup() File "D:\Temp\pip-build-env-3ys5r45v\overlay\Lib\site-packages\setuptools\build_meta.py", line 318, in run_setup exec(code, locals()) File "", line 271, in File "D:\Temp\pip-build-env-3ys5r45v\overlay\Lib\site-packages\setuptools__init__.py", line 117, in setup return distutils.core.setup(attrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Temp\pip-build-env-3ys5r45v\overlay\Lib\site-packages\setuptools_distutils\core.py", line 184, in setup return run_commands(dist) ^^^^^^^^^^^^^^^^^^ File "D:\Temp\pip-build-env-3ys5r45v\overlay\Lib\site-packages\setuptools_distutils\core.py", line 200, in run_commands dist.run_commands() File "D:\Temp\pip-build-env-3ys5r45v\overlay\Lib\site-packages\setuptools_distutils\dist.py", line 954, in run_commands self.run_command(cmd) File "D:\Temp\pip-build-env-3ys5r45v\overlay\Lib\site-packages\setuptools\dist.py", line 950, in run_command super().run_command(command) File "D:\Temp\pip-build-env-3ys5r45v\overlay\Lib\site-packages\setuptools_distutils\dist.py", line 973, in run_command cmd_obj.run() File "D:\Temp\pip-build-env-3ys5r45v\overlay\Lib\site-packages\setuptools\command\egg_info.py", line 311, in run self.find_sources() File "D:\Temp\pip-build-env-3ys5r45v\overlay\Lib\site-packages\setuptools\command\egg_info.py", line 319, in find_sources mm.run() File "D:\Temp\pip-build-env-3ys5r45v\overlay\Lib\site-packages\setuptools\command\egg_info.py", line 540, in run self.add_defaults() File "D:\Temp\pip-build-env-3ys5r45v\overlay\Lib\site-packages\setuptools\command\egg_info.py", line 578, in add_defaults sdist.add_defaults(self) File "D:\Temp\pip-build-env-3ys5r45v\overlay\Lib\site-packages\setuptools\command\sdist.py", line 108, in add_defaults super().add_defaults() File "D:\Temp\pip-build-env-3ys5r45v\overlay\Lib\site-packages\setuptools_distutils\command\sdist.py", line 250, in add_defaults self._add_defaults_ext() File "D:\Temp\pip-build-env-3ys5r45v\overlay\Lib\site-packages\setuptools_distutils\command\sdist.py", line 335, in _add_defaults_ext self.filelist.extend(build_ext.get_source_files()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 201, in get_source_files File "D:\Temp\pip-build-env-3ys5r45v\overlay\Lib\site-packages\setuptools_distutils\cmd.py", line 107, in getattr raise AttributeError(attr) AttributeError: cython_sources [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╰*

note: This error originates from a subprocess, and is likely not a problem with pip.

─> See above for output.

Am Mi., 4. Sept. 2024 um 21:55 Uhr schrieb Benoît Prieur < @.***>:

Hi, I guess virtualenv is not installed (pip install virtualenv), perhaps we can discuss by private message? Please contact me :)

— Reply to this email directly, view it on GitHub https://github.com/benprieur/PyCommonist/issues/11#issuecomment-2329859537, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL5S3KGZDYNS5VNPDFYTUR3ZU5QU7AVCNFSM6AAAAABNH7VDJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRZHA2TSNJTG4 . You are receiving this because you authored the thread.Message ID: @.***>