Posted by
Michael Doube-4 on
Jan 05, 2016; 3:32pm
URL: http://imagej.273.s1.nabble.com/cannot-import-AnalyzeSkeleton-tp5015289p5015323.html
Hi Jan, Aryeh,
> The following should work now:
>
> from sc.fiji.analyzeSkeleton import AnalyzeSkeleton_
>
>
> This shouldn't interfere with BoneJ if you import the correct class.
That's correct. The reason for changing the namespace is to allow BoneJ and other Java plugins to more easily reuse AnalyzeSkeleton. Better to use the sc.fiji.* package than the BoneJ package because we'll be dropping it in future BoneJ versions and using the sc.fiji.* package ourselves.
> Unfortunately, this breaking change for existing scripts wasn't announced anywhere publicly before being uploaded to the update site.
Point taken.
Michael
>
> Jan
>
>
> On 27.12.15 13:23, Aryeh Weiss wrote:
>> I have a python script that depends on the AnalyzeSkeleton_() class
>>
>> This script was working properly last week when I tested the fix to the
>> memory
>> problem we had with Jython. However, today, the script cannot import
>> this class.
>>
>> Here is the error:
>> from skeleton_analysis import AnalyzeSkeleton_
>> ImportError: No module named skeleton_analysis
>>
>> And here is the line that generates this error:
>> from skeleton_analysis import AnalyzeSkeleton_
>> (which is actually clear from the error message)
>>
>> Here is what I find with the Command Finder:
>>
>> Analyze Skeleton (2D/3D) Analyze>Skeleton
>> sc.fiji.analyzeSkeleton.AnalyzeSkeleton_
>> /Applications/local/fiji/Fiji.app/plugins/AnalyzeSkeleton_-3.0.0.jar
>>
>>
>> And with the updater I also find that plugins/AnalyzeSkeleton_jar is up
>> to date.
>>
>> Why is the import failing?
>>
>> Thanks in advance.
>> --aryeh
>>
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
Michael Doube
BPhil BVSc PGCert(Vet Ed) PhD FHEA MRCVS
Lecturer, Comparative Biomedical Sciences
The Royal Veterinary College, University of London
Royal College Street
London NW1 0TU
United Kingdom
+44 (0)20 7121 1903 (Internal: 5503)
@mdoube
<
http://www.rvc.ac.uk>
This message, together with any attachments, is intended for the stated addressee(s) only and may contain privileged or confidential information. Any views or opinions presented are solely those of the author and do not necessarily represent those of the Royal Veterinary College.
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html