TypeError: argument of type 'float' is not iterable #53

Closed
diffendale opened this Issue Jun 23, 2015 · 9 comments

Comments

Projects
None yet
3 participants
@diffendale

This is what happens when I try to run totalopenstation-gui.py (sorry for the mess; the cmd window opens and closes very quickly, and this was the only way I could screen-capture it):
totalopenstation problem - copy

I'm a complete and total novice at Python, so I'm not sure if this is an issue on my end or yours...
Running Windows 7 (64 bit), Python 2.7.10...

@steko

This comment has been minimized.

Show comment
Hide comment
@steko

steko Jun 26, 2015

Owner

Thanks for reporting this issue. I'm looking into it, that's definitely a bug on our side!

More specifically, we're passing a float argument to ConfigParser, but it only accepts strings.

Could you check if there is a .totalopenstation directory inc:\users\diffendale?

Owner

steko commented Jun 26, 2015

Thanks for reporting this issue. I'm looking into it, that's definitely a bug on our side!

More specifically, we're passing a float argument to ConfigParser, but it only accepts strings.

Could you check if there is a .totalopenstation directory inc:\users\diffendale?

@diffendale

This comment has been minimized.

Show comment
Hide comment
@diffendale

diffendale Jun 26, 2015

Ok!

Yes, there is a .totalopenstation directory in c:\users\diffendale. It contains totalopenstation.cfg.

Ok!

Yes, there is a .totalopenstation directory in c:\users\diffendale. It contains totalopenstation.cfg.

@steko steko added bug Core labels Jun 27, 2015

@steko steko self-assigned this Jun 27, 2015

@steko

This comment has been minimized.

Show comment
Hide comment
@steko

steko Jun 27, 2015

Owner

As a temporary workaround, you can put this in the totalopenstation.cfg file:

[topsconfig]
model =
port =
sleeptime = 1.0

A fix will be included in the next release.

Owner

steko commented Jun 27, 2015

As a temporary workaround, you can put this in the totalopenstation.cfg file:

[topsconfig]
model =
port =
sleeptime = 1.0

A fix will be included in the next release.

@diffendale

This comment has been minimized.

Show comment
Hide comment
@diffendale

diffendale Jun 28, 2015

That works, thank you!

That works, thank you!

@steko

This comment has been minimized.

Show comment
Hide comment
@steko

steko Jun 29, 2015

Owner

Good to know, thanks. We will update on the bug as soon as a fix is ready.

Owner

steko commented Jun 29, 2015

Good to know, thanks. We will update on the bug as soon as a fix is ready.

@colinjara

This comment has been minimized.

Show comment
Hide comment
@colinjara

colinjara Jul 10, 2015

I am having the same error in a Mac OS X (10.10.3) virtual environment.
I have found the pref.py file that I assume contains the preferences for the virtual environment, rather than the above totalopenstation.cfg file. Where do I put in the lines that you mentioned? I too am incredibly new at Python, with little knowledge as to the proper syntax.

Thank you!

I will continue trying things until I hear back.
screen shot 2015-07-10 at 2 01 37 pm

I am having the same error in a Mac OS X (10.10.3) virtual environment.
I have found the pref.py file that I assume contains the preferences for the virtual environment, rather than the above totalopenstation.cfg file. Where do I put in the lines that you mentioned? I too am incredibly new at Python, with little knowledge as to the proper syntax.

Thank you!

I will continue trying things until I hear back.
screen shot 2015-07-10 at 2 01 37 pm

@steko

This comment has been minimized.

Show comment
Hide comment
@steko

steko Jul 10, 2015

Owner

Colin, on Mac OS X the totalopenstation.cfg file should be found at /home/colinjaramillo/.totalopenstation/totalopenstation.cfg. Can you confirm that you can find the file and that you are able to use Total Open Station normally after fixing the file content?

I'm sorry it's taking so long to fix this bug but I'm currently doing fieldwork in Crete.

Owner

steko commented Jul 10, 2015

Colin, on Mac OS X the totalopenstation.cfg file should be found at /home/colinjaramillo/.totalopenstation/totalopenstation.cfg. Can you confirm that you can find the file and that you are able to use Total Open Station normally after fixing the file content?

I'm sorry it's taking so long to fix this bug but I'm currently doing fieldwork in Crete.

@colinjara

This comment has been minimized.

Show comment
Hide comment
@colinjara

colinjara Jul 12, 2015

screen shot 2015-07-12 at 4 38 17 pm

Steko,

I can't seem to find the file in the path you mentioned. I can open the file directory /home/ through the terminal but there is nothing in there whatsoever. The closest thing was the file I mentioned earlier, pref.py, but nothing by the name of totalopenstation.cfg. The path for that is /Users/colinjaramillo/tops-environment/lib/python2.7/site-packages/totalopenstation/utils/upref.py

No worries at all, I am doing fieldwork in Ireland myself and since I am deep in the country side there is little internet access.

I attached an image of the code that is similar to what you were describing for the totalopenstation.cfg.

screen shot 2015-07-12 at 4 38 17 pm

Steko,

I can't seem to find the file in the path you mentioned. I can open the file directory /home/ through the terminal but there is nothing in there whatsoever. The closest thing was the file I mentioned earlier, pref.py, but nothing by the name of totalopenstation.cfg. The path for that is /Users/colinjaramillo/tops-environment/lib/python2.7/site-packages/totalopenstation/utils/upref.py

No worries at all, I am doing fieldwork in Ireland myself and since I am deep in the country side there is little internet access.

I attached an image of the code that is similar to what you were describing for the totalopenstation.cfg.

@steko steko added this to the v0.3.2 milestone Jul 23, 2015

@steko

This comment has been minimized.

Show comment
Hide comment
@steko

steko Jul 23, 2015

Owner

Fixed in 388b27a - v0.3.2 is available on PyPI at https://pypi.python.org/pypi/totalopenstation

Thank you for reporting the issue.

Owner

steko commented Jul 23, 2015

Fixed in 388b27a - v0.3.2 is available on PyPI at https://pypi.python.org/pypi/totalopenstation

Thank you for reporting the issue.

@steko steko closed this Jul 23, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment