Comments (7)
@snss806
Does this patch help?
from bleachbit.
@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.
@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.
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.
If you are able to test, try 15f8b0f
from bleachbit.
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.
@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)
- MSVCR100.dll not installed HOT 3
- Lost whole disk after wiping free space. HOT 4
- Add option for flush DNS cache
- flatpak
- I accidentely deleted too much files and files that are in write protected folders - v.4.6.0-win10-portable HOT 1
- Files and folders on desktop deleted HOT 3
- Lots of errors when installing or upgrading with python 3.12 [SyntaxWarning: invalid escape sequence] HOT 13
- It seems to me that a popup is missing on [X]
- SSD HOT 1
- Wiping free space makes the UI freeze and sometimes crashes HOT 1
- [Feature request] vesktop
- Please upload the new version of Bleachbit with the fix HOT 3
- Exception while running operation 'system': ''utf-8' codec can't encode character '\udcd6' in position 52: surrogates not allowed' HOT 3
- Visual signal before leaving HOT 2
- whenever i open bleachbit portable it shows this in red HOT 2
- Virus or false positive? HOT 11
- Message about anti-virus software could be in better English
- unable to install or run on Windows 11
- Dark Mode not initiating . HOT 1
- Cannot shred folder HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bleachbit.