Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-26-2018, 12:46 PM   #1
Stevex
Addict
Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.
 
Posts: 225
Karma: 15318
Join Date: Nov 2015
Device: Kobo Glo HD
Help! - Calibre 2.30 with OneDrive

OK I have the variable
CALIBRE_CONFIG_DIRECTORY
set to
%OneDrive%\Calibre_Config
And the variable OneDrive set to
C:\Users\MyName\OneDrive
So till now this always worked very well
But on starting Calibre 2.30 I got the startup wizard and I found it is creating a new config directory here:
C:\Users\MyName\Desktop\%OneDrive%\Calibre_Config

Note that it is using literally %OneDrive% not substituting the string C:\Users\MyName\OneDrive

Help???!!! What is going on??? This setup has worked well for me for years.
Stevex is offline   Reply With Quote
Old 08-26-2018, 01:07 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,059
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Stevex View Post
OK I have the variable
CALIBRE_CONFIG_DIRECTORY
set to
%OneDrive%\Calibre_Config
And the variable OneDrive set to
C:\Users\MyName\OneDrive
So till now this always worked very well
But on starting Calibre 2.30 I got the startup wizard and I found it is creating a new config directory here:
C:\Users\MyName\Desktop\%OneDrive%\Calibre_Config

Note that it is using literally %OneDrive% not substituting the string C:\Users\MyName\OneDrive


Help???!!! What is going on??? This setup has worked well for me for years.
There is an update in 30 to address different cloud sync folders.

%reads and substitutes, the system environment setting for that variable%
This is the result I got, as I don't use One Drive (I have my own NAS)

Code:
C:\Users\Me>set %onedrive%
Environment variable C:\Users\Me\OneDrive not defined
There is a chance (small) that Kovid missed a use case


UPDATE
Wierd: when I look at the full output of SET
Code:
OneDrive=C:\Users\me\OneDrive
exists. But when I do set %OneDrive% (I tried camel case also), nada

Last edited by theducks; 08-26-2018 at 01:20 PM. Reason: Update
theducks is offline   Reply With Quote
Advert
Old 08-26-2018, 02:48 PM   #3
Stevex
Addict
Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.
 
Posts: 225
Karma: 15318
Join Date: Nov 2015
Device: Kobo Glo HD
On 32 bit windows all ok
Just 64 bit windows, i get the problem
I’ll try to check it out a bit more later

Last edited by Stevex; 08-26-2018 at 02:53 PM.
Stevex is offline   Reply With Quote
Old 08-26-2018, 02:51 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,059
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Stevex View Post
On 32 bit windows all ok
Just 64 bit windows, i get the problem
I think this is a X64 problem, considering my failed test (on x64)
theducks is offline   Reply With Quote
Old 08-26-2018, 10:14 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There haven't been any changes to how CALIBRE_CONFIG_DIRECTORY is processed in 3.30 and as far as I know it has never resolved environment variables, see https://github.com/kovidgoyal/calibr...stants.py#L236

So I am surprised it ever worked. As for why it stopped working in x64 it is probably because windows maintains a different set of env vars for 64bit and 32bit processes running on a 64bit computer -- I vaguely recall that windows jumps through various hoops for compatibility purposes when doing this.
kovidgoyal is offline   Reply With Quote
Advert
Old 08-27-2018, 06:10 AM   #6
Stevex
Addict
Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.
 
Posts: 225
Karma: 15318
Join Date: Nov 2015
Device: Kobo Glo HD
Hi Kovid

It all worked for me on x64 pc’s till now. The question is, what changed. I don’t know anything about python - is there any chance 3.30 installed a new python runtime? I just tried downgrading to 3.29 but that now doesn’t work either. Was all working 2 or 3 days ago.
Either windows changed or calibre changed or some ssl that calibre uses changed. Windows changing can be ruled out since the last update was second Tuesday in August.
Id like to track this down if poss...

Thanks for any quick ideas. In the meantime I changed the CALIBRE-CONFIG_DIRECTORY to be hardcoded but its not ideal

Ps I do understand if it’s just me you cant waste a lot of time but any ideas will help!

Last edited by Stevex; 08-27-2018 at 06:16 AM.
Stevex is offline   Reply With Quote
Old 08-27-2018, 06:26 AM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Nope 3.30 uses the same python as 3.29
kovidgoyal is offline   Reply With Quote
Old 08-27-2018, 07:09 PM   #8
Stevex
Addict
Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.Stevex is as sexy as a twisted cruller doughtnut.
 
Posts: 225
Karma: 15318
Join Date: Nov 2015
Device: Kobo Glo HD
Ok thanks Kovid
Stevex is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Another question about syncing calibre with onedrive... birkmaggs Related Tools 3 06-19-2017 05:51 PM
cannot select Calibre Library folder in Onedrive dwl99 Calibre Companion 6 10-12-2016 02:55 PM
Calibre and OneDrive Windows 10 vaderag Calibre 5 08-07-2015 11:40 AM
Using Calibre, able to use OneDrive as cloud service? a_ahmed Calibre 19 06-30-2015 04:28 AM
synchronize library Calibre in OneDrive beatriz Devices 3 03-05-2015 12:20 PM


All times are GMT -4. The time now is 01:23 PM.


MobileRead.com is a privately owned, operated and funded community.