client installer attempts bootstrap, and fails

Bug #244887 reported by Daniel Hollocher
4
Affects Status Importance Assigned to Milestone
LoCoRST
Fix Released
High
Martin Owens

Bug Description

Hey doctormo,
I've located the bug. Your MANIFEST is fine, and so is your setup().

The problem takes place when you bootstrap Alleviate.client in order to acquire the version information:
from Alleviate.client import __version__

This statement initializes the Alleviate.client package before it is actually installed, hence me coining the term "bootstrap".

In Alleviate.client.__init__.py, this line is not coded to take into account this instance of bootstrapping:
if not os.path.exists(conf_path):
 shutil.copyfile(os.path.join(share_dir, conf_default), conf_path)

So, when this line can't find the default config file to copy, its because none of the files have been installed yet. setup() has not been called yet.

So, I think you have two options, either find a way to avoid initializing the Alleviate.client package, and thus avoid bootstrapping, or make that line work in the "bootstrap mode"

Revision history for this message
Martin Owens (doctormo) wrote :

I decided that during this bootstrap mode the error is because the source conf file doesn't exist. checking for it's existence is enough to prevent execution.

Changed in locoremotesupport:
assignee: nobody → doctormo
importance: Undecided → High
status: New → Fix Committed
Martin Owens (doctormo)
Changed in locoremotesupport:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.