zeffii / mesh_tiny_cad

a tiny set of unmissable CAD functions ( VTX, XALL ...) for Blender

Home Page:http://zeffii.github.io/mesh_tiny_cad/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

addon fails to install with zip name "mesh_tinyCAD-master"

bheiland opened this issue · comments

Trying to install the add-on on 2.76b and the add-on does not launch . I get a Traceback message.

install from this zip then: https://github.com/zeffii/mesh_tinyCAD/archive/master.zip
if that also doesnt work please take a screenshot of the error and paste it here.

image

This is what I see on the screen when I try to enable.

cool. thanks for the report. will fix asap. I'll spare you the detail of why that happens.

You will have to delete the folder mesh_tinyCAD-master from the scripts/addons folder. redownload now. should work fine.

that's fixed now. you will have to download again.

I'll document the bug anyway, you skip reading this if you aren't interested in the code-reason why this happened.

Github generates zips with "addon_name" and appends the word "-master" to them, this makes zips called "addon_name-master". My code however had some reliance on the name being just "addon_name" or in my case "mesh_tinyCAD" (without the postfix "-master").

So in code I have a few lines at the top of 3 of these files that say

from mesh_tinyCAD import cad_module as cm

but because the folder isn't called mesh_tinyCAD it doesn't find the cad_module. However, if I write it like this

from . import cad_module as cm

the period stands for the parent directory. and that means I don't have to hard code the word "mesh_tinyCAD" anywhere.

Locally (on my machine) I don't need to download from github, so have never encountered this. I think most people that use the addon probably get a more elaborate blender zip from https://builder.blender.org/download/ which contains a lot of extra addons including this addon. (with the correct folder name).

TLDR;

thanks for the bug report, I didn't realize I still have code like that.

I was able to get this version working but I had to manually move the files in the add ons directory. They initially installed in a directory tree one level too deep. I would have to remove and reinstall to test it again.

On Jan 13, 2016, at 7:12 AM, Dealga McArdle notifications@github.com wrote:

install from this zip then: https://github.com/zeffii/mesh_tinyCAD/archive/master.zip https://github.com/zeffii/mesh_tinyCAD/archive/master.zip

if that also doesnt work please take a screenshot of the error and paste it here.


Reply to this email directly or view it on GitHub #32 (comment).

no need to download again then. but it's fixed for the future.