|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
||||
The hotplug-diskmount tool issues mount(8) commands for the partitions found on a disk drive device. If your eReader does not identify as a USB mass storage device, this program isn't going to help.
For more information, install the package and read its man page. |
|
||||
Quote:
Acually, sorry, I used the wrong language; It used to be in prior versions of OpenBSD that Calibre did not recognize the device the problem now is that it recognizes my device but Calibre throws an error, in python error syntax, that it cannot communicate with the device. I don't program python so the error syntax is beyond me. When I try to send a book to the device it says the device storage is full when in reality it is only 23% used. Code:
NoneType' object has no attribute 'endswith' Traceback (most recent call last): File "/usr/local/lib/calibre/calibre/gui2/device.py", line 87, in run self.result = self.func(*self.args, **self.kwargs) File "/usr/local/lib/calibre/calibre/gui2/device.py", line 503, in _books mainlist = self.device.books(oncard=None, end_session=False) File "/usr/local/lib/calibre/calibre/devices/kobo/driver.py", line 1459, in books need_sync = self.parse_metadata_cache(bl, prefix, self.METADATA_CACHE) File "/usr/local/lib/calibre/calibre/devices/usbms/driver.py", line 485, in parse_metadata_cache cache_file = cls.normalize_path(os.path.join(prefix, name)) File "/usr/local/lib/python2.7/posixpath.py", line 70, in join elif path == '' or path.endswith('/'): AttributeError: 'NoneType' object has no attribute 'endswith' Code:
$df -h | grep sd2i /dev/sd2i 3.2G 737M 2.5G 23% /mnt Also, there does not seem to be a manpage installed with calibre. I checked to see if it was installed outside my $MANPATH : Code:
$cd /usr/libexec && ./locate.updatedb && locate calibre | grep man It does not show that a man page is installed on the system but if I do that command with the multimedia player mpv it shows a man page is installed on the system. Also, there is nothing on calibre in /usr/local/share/doc There is calibre documentation online but I am skeptical it is going to cover this issue since the developer Kovid Goyal seems indifferent to or even hostile to Calibre working on the *BSDs that is why he makes a Linux port but not a BSD one. I am going to play around with it and see if I can get it to work. Calibre seems to let me change the device settings, to some degree, but so far it does not look like it is advanced enough. Last edited by Angevin; 13th November 2016 at 11:28 PM. Reason: punctuation add some info |
|
||||
|
|
||||
Thanks the issue is solved
Quote:
BTW, that is what I have been doing, before these posts, is managing /dev/sd2i like I would any filesystem that is how I have been using Calibre, with my eReader, on OpenBSD, since it has been ported to OpenBSD. It is really not that big of a deal it is only a minor hassle the important thing is Calibre is ported generally to OpenBSD not that it works with USB/MTP. The problem is obviously the MTP support, like my android phone, but I found a workaround to sync music and other files , on my phone, using an external memory card etc... Your reply was very helpful thanks so much for the answer it seems this issue is now solved. No, seriously, your reply was very very helpful and I truly appreciate it. I learned a valuable lesson too -- to not just read man pages and docs but to use pkg_info as well ! Last edited by Angevin; 14th November 2016 at 12:54 AM. Reason: fix spelling error |
|
||||
Sorry for wasting your time jggimi
Actually, sorry, I want to apologize for wasting your time I found this information :
"When given an installed package name (or a location of a package which is to be installed), pkg_info(1) will show more detailed information about that specific package. " https://www.openbsd.org/faq/faq15.html In my defense, though, it is not obvious, at least not to me, from the pkg_info(1) man page that you can just type : $pkg_info <package name> (without the tgz extension) However, it is obvious that you can just type $pkg_info as a simple unix command. Maybe, the OpenBSD people realize it is not obvious so they made the FAQ ? It is obvious from the man page that it is a simple unix command which indicates that you could simply type $pkg_info and get a list of packages or something but it is not obvious that you could just type $pkg_info <package name> (without the tgz extension) without any switches. At least not to me it wasn't obvious maybe to you guys it is. Maybe, I just need to get better at understanding man pages. It is not like I never used pkg_info before I just usually use it with switches. The information is also in the DESCR file in /usr/ports/textproc/calibre/pkg/DESCR I guess I prefer the man pages to reading the docs on the OpenBSD website but I need to read more docs on the OpenBSD website more often because I wouldn't have thought of that functionality from just reading the man page by itself. Again, my apologies. Then, again, I have the newest Absolute OpenBSD book too and I wouldn't be surprised if that information is in it as well. In closing read the freaking docs and RTFM mofos ! Seriously, don't waste other people's time. P.S. I feel like an idiot right now but no really I wasn't being an idiot I was just being an inconsiderate lazy jerk ! I probably did not drink enough coffee or something.
__________________
"Those who do not understand UNIX are condemned to reinvent it, poorly." -- Henry Spencer Systemd is ripe for and asking for someone to make the mother of all rootkits for it. Last edited by Angevin; 14th November 2016 at 11:44 AM. Reason: add information |
Tags |
calibre, ereader, hotplug-diskmount |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre device detection on 5.3-beta fails with python error | sysfu | OpenBSD Packages and Ports | 0 | 12th March 2013 05:42 AM |