Giter Site home page Giter Site logo

Bleachbit-4.6.0 FreeBSD about bleachbit HOT 7 CLOSED

snss806 avatar snss806 commented on September 27, 2024
Bleachbit-4.6.0 FreeBSD

from bleachbit.

Comments (7)

az0 avatar az0 commented on September 27, 2024 1

@snss806
Does this patch help?

from bleachbit.

snss806 avatar snss806 commented on September 27, 2024 1

@az0 :

After re-downloading the zip file and running python3.9. bleachbit.py the GUI launched without any issue prompting me to upgrade to Bleachbit 4.6.0. A quick inspection in Menu>About showed me that I'm running Bleachbit 4.6.1.
However, these messages appeared, both in terminal and in the GUI at the end of the clean process:

Special file type cannot be deleted: /home/user/.cache/at-spi/bus_0
Directory is not empty: /home/user/.cache/mozilla  <--#I assume that's because of having FF active
Directory is not empty: /home/user/.cache/at-spi
lsof: WARNING: compiled for FreeBSD release 13.1-RELEASE-p7; this is 13.2-RELEASE-p4.
Exception while running operation 'system': 'a bytes-like object is required, not 'str''
Traceback (most recent call last):
  File "/usr/home/user/Downloads/bleachbit-master460/bleachbit/Worker.py", line 345, in run_operations
    for _dummy in self.clean_operation(operation):
  File "/usr/home/user/Downloads/bleachbit-master460/bleachbit/Worker.py", line 159, in clean_operation
    for cmd in backends[operation].get_commands(option_id):
  File "/usr/home/user/Downloads/bleachbit-master460/bleachbit/Cleaner.py", line 496, in get_commands
    is_open = FileUtilities.openfiles.is_open(path)
  File "/usr/home/user/Downloads/bleachbit-master460/bleachbit/FileUtilities.py", line 174, in is_open
    self.scan()
  File "/usr/home/user/Downloads/bleachbit-master460/bleachbit/FileUtilities.py", line 167, in scan
    for filename in open_files():
  File "/usr/home/user/Downloads/bleachbit-master460/bleachbit/FileUtilities.py", line 134, in open_files
    for filename in files:
  File "/usr/home/user/Downloads/bleachbit-master460/bleachbit/FileUtilities.py", line 122, in open_files_lsof
    for f in run_lsof().split("\n"):
TypeError: a bytes-like object is required, not 'str'

Thank you for your hard work in dealing with these issues.

from bleachbit.

snss806 avatar snss806 commented on September 27, 2024

@az0:

This is what I have now after re-downloading the zip file and running python3.9. bleachbit.py

Traceback (most recent call last):
  File "/usr/home/user/Downloads/test/bleachbit.py", line 40, in <module>
    bleachbit.Unix.is_display_protocol_wayland_and_root_not_allowed()
  File "/usr/home/user/Downloads/test/bleachbit/Unix.py", line 746, in is_display_protocol_wayland_and_root_not_allowed
    bleachbit.Unix.is_linux_display_protocol_wayland() and
  File "/usr/home/user/Downloads/test/bleachbit/Unix.py", line 730, in is_linux_display_protocol_wayland
    assert(sys.platform.startswith('linux'))
AssertionError

The result of env | grep XDG command:

XDG_VTNR=9
XDG_DATA_DIRS=/usr/local/share:/usr/share
XDG_MENU_PREFIX=xfce-
XDG_SESSION_CLASS=user
XDG_SEAT=seat0
XDG_SESSION_TYPE=x11
XDG_RUNTIME_DIR=/var/run/user/1001
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session3
XDG_CURRENT_DESKTOP=XFCE
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_CONFIG_DIRS=/etc/xdg:/usr/local/etc/xdg

from bleachbit.

az0 avatar az0 commented on September 27, 2024

I commited a change to help: 0e710eb . I'm considering a follow-up change to handle another scenario, so you can either test now or when that is ready.

from bleachbit.

az0 avatar az0 commented on September 27, 2024

If you are able to test, try 15f8b0f

from bleachbit.

az0 avatar az0 commented on September 27, 2024

That's helpful information. We fixed the original issue, so please open a new ticket for TypeError: a bytes-like object is required. This will make it easier to manage and triage

from bleachbit.

snss806 avatar snss806 commented on September 27, 2024

@az0
Everything is working perfectly now.
I don't think that I'll open, at least for now, another ticket for the TypeError: a bytes-like object is required.
I think that is because of FreeBSD and the repo you are using(not 100% sure): quarterly or latest.
What I've noticed was that changing from quarterly to latest or from latest to quarterly breaks Bleachbit and makes it unusable.
I had to delete the .config/bleachbit folder and stick to latest. This fixed the issues.
I'll start testing bleachbit in FreeBSD14.0-RELEASE and let you know if there are any issues.

from bleachbit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.