Project

General

Profile

TypeError: argument 3 must be integer<K>, not float

Added by Bob Grassucci over 13 years ago

I keep getting an error when trying to collect an image. see below.

TypeError: argument 3 must be integer<K>, not float

I saw some postings from 2 months ago but our situation is where our TVIPS415 ccd is controlled by the microscope pc while our leginon is run on a linux computer so this should not be the same problem. Yesterday I got an image but today all I get is this error message.
Bob


Replies (7)

RE: TypeError: argument 3 must be integer<K>, not float - Added by Anchi Cheng over 13 years ago

Did your error also originate from datatransport.py? If you have the whole error message on the text terminal with file and line number where it is originated from, it could help us. Since we didn't exactly tackle the argument must be integer error in solving thread http://emg.nysbc.org/boards/15/topics/919?r=923#message-923, it just went away after other stuff was solved, it would need rethinking.

Do check in the mean time your pyscope/instruments.cfg on the microscope pc that it only has the real tem and camera. It might be what got rid of the error last round.

Anchi

RE: TypeError: argument 3 must be integer<K>, not float - Added by Jim Pulokas over 13 years ago

Bob,
We looked over the likely cause of the TypeError. It looks like we did a fix for this that made it into the 2.1 release, but not the 2.0 release (which must be the one you are using, right?). Updating everything to 2.1 should fix the problem, but I realize it may not be a convenient time to do that. If you want to stay at 2.0, Anchi is merging this into the 2.0 branch right now, so you can get that update if you wish. It is just one file: pyscope/tietz.py, so you can just get the updated version and copy it to your site-packages/pyscope on your microscope pc. Let us know if that fixes the problem.
Jim

RE: TypeError: argument 3 must be integer<K>, not float - Added by Jim Pulokas over 13 years ago

...just wait for Anchi to give the go-ahead when she commits the change to 2.0.

RE: TypeError: argument 3 must be integer<K>, not float - Added by Anchi Cheng over 13 years ago

done merging the fixed tietz.py to 2.0

RE: TypeError: argument 3 must be integer<K>, not float - Added by Bob Grassucci over 13 years ago

We are going to upgrade to 2.1. The reason we did not start with that is the instructions for a complete 2.1 install do not exist so we had planned to get 2.0 working and then upgrade. Thanks.
Bob

RE: TypeError: argument 3 must be integer<K>, not float - Added by Anchi Cheng over 13 years ago

When we do a major (1.x to 2.x) or minor (2.0 to 2.1, for example) release of Leginon/Appion, we make the wiki complete installation instruction good for the new release and include upgrade instruction for the previous release. Therefore, if you go to the wiki, the instruction you see of the day would reflect the current release on the day. I hope we didn't make the mistake of saying that the instruction is only for 2.0 somewhere? Let us know which part gave you that impression. We will improve the wording.

Thanks.

Anchi

RE: TypeError: argument 3 must be integer<K>, not float - Added by Bob Grassucci over 13 years ago

The upgrade to 2.1 solved the problem. Thanks.
Regards,
Bob

    (1-7/7)