Project

General

Profile

Actions

Bug #3322

open

AttributeError: 'memmap' object has no attribute 'offset'

Added by Anchi Cheng about 9 years ago. Updated almost 9 years ago.

Status:
Assigned
Priority:
Low
Assignee:
Category:
-
Target version:
-
Start date:
07/16/2015
Due date:
% Done:

0%

Estimated time:
Affected Version:
Appion/Leginon 3.2
Show in known bugs:
No
Workaround:

Description

https://github.com/joblib/joblib/issues/161

Doe this mean that we need to upgrade numpy ?

Actions #1

Updated by Neil Voss almost 9 years ago

  • Subject changed from tiltaligner have error of AttributeError: 'memmap' object has no attribute 'offset' to AttributeError: 'memmap' object has no attribute 'offset'

I am getting this error all the time, but for dogPicker.py. Do we know what line of the code is causing the problem?

Actions #2

Updated by Neil Voss almost 9 years ago

Okay, I found the problem line. But why do we get it sometimes and not others....

Actions #3

Updated by Neil Voss almost 9 years ago

I was thinking something like:

   numpyVersion = float(numpy.version.version[:3])
   if numpyVersion > 1.7:
      peaktreelist = Parallel(n_jobs=params['nproc'])(delayed(runFindPeaks)(params,
         maplist,maptype,pikfile,thresh,pixdiam,count,olapmult,maxpeaks,maxsizemult,
         msg,bin,peaktype,pixrad,imgdict) for count in range(0,len(maplist)))
   else:
      ## backup for AttributeError: 'memmap' object has no attribute 'offset', bug #3322
      peaktreelist = []
      for count in range(0,len(maplist)):
         peaktree = runFindPeaks(params,maplist,maptype,pikfile,thresh,pixdiam,count,olapmult,
            maxpeaks,maxsizemult,msg,bin,peaktype,pixrad,imgdict)
      peaktreelist.append(peaktree)

Because as of right now myami-3.2 does not work on CentOS 6 out of the box.

Actions #4

Updated by Anchi Cheng almost 9 years ago

guess that will have to do, unless Sargis has a good instruction for users to install newer numpy ?

Actions #5

Updated by Neil Voss almost 9 years ago

I am running Appion under Docker, so I do not want to make too many changes it add overhead.

I guess it should be whether we should stop supporting CentOS 6 (I think it is too early).

How much speed up do we get from using the joblib? Because I could put in some other optimizations. I think it is currently optimized for displaying alternate thresholds, etc.

Actions #6

Updated by Anchi Cheng almost 9 years ago

  • Assignee changed from Sargis Dallakyan to Gabriel Lander

Adding Gabe and Scott in the watch list in case they know what is. I have not benchmarked it in any way.

Actions #7

Updated by Sargis Dallakyan almost 9 years ago

Thanks Anchi. I don't know much about joblib, except how to install it.

Regarding supporting CentOS 6, I think we should keep it until at least Q2 2017 - https://en.wikipedia.org/wiki/CentOS#End-of-support_schedule
I was watching Python in Production Panel Discussion yesterday. There were some interesting discussions on Python 3, Docker and CentOS 5.

Actions #8

Updated by Anchi Cheng almost 9 years ago

  • Assignee changed from Gabriel Lander to Neil Voss

I change the code in r19248 observing a bug from r19233.

Neil, Please check if this makes sense.

Actions

Also available in: Atom PDF