Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError while installation in fedora 22 #17

Closed
vivekanand1101 opened this issue Nov 23, 2015 · 15 comments
Closed

NameError while installation in fedora 22 #17

vivekanand1101 opened this issue Nov 23, 2015 · 15 comments

Comments

@vivekanand1101
Copy link

I have all the dependencies listed here, then i tried pip install pymote. It gave NameError that it can't find name "sys_platform".

http://paste.fedoraproject.org/293662/30900114

In a hurry. If anybody could help, that would be great.

@darbula
Copy link
Owner

darbula commented Nov 24, 2015

I have released 0.2.1 version since 0.2.0 used old version of distribute package not needed anymore that could cause problems. Please try again.

@vivekanand1101
Copy link
Author

sorry, this still gave an error. Not the same and also i am not sure it has everything to do with pymote

http://paste.fedoraproject.org/293842/35708014/

@darbula
Copy link
Owner

darbula commented Nov 24, 2015

Yes it seems that the problem is with installing scipy. Could you paste output of pip freeze here. Probably you have newer version of scipy than the one that is required 0.12 or less.

@vivekanand1101
Copy link
Author

I had one installed by dnf but i removed it, when i saw this error. pip freeze gave this:

http://paste.fedoraproject.org/293847/14483576

@darbula
Copy link
Owner

darbula commented Nov 24, 2015

You should install scipy 0.12 or 0.11 and then try again with pymote.

@vivekanand1101
Copy link
Author

I tried it and now i have scipy version 0.11.0 and numpy version 1.7.0. Installation of pymote version 0.2.1 went well but i still get an error when i compile the "Hello Distributed world" example. Error:

https://paste.fedoraproject.org/294254/84370281/
.

@darbula
Copy link
Owner

darbula commented Nov 25, 2015

The problem is in line import scipy.stats. You can try manually importing in the python shell and see if you get the same error. If you do, the problem is still in scipy.

@vivekanand1101
Copy link
Author

That one is clear now. But still no success in compilation of "hello dist. world". Error:

https://paste.fedoraproject.org/294276/44844034/

@darbula
Copy link
Owner

darbula commented Nov 25, 2015

Do you have PySide installed?

@vivekanand1101
Copy link
Author

I thought pymote would install it by itself. Sorry for this one.

@darbula
Copy link
Owner

darbula commented Nov 25, 2015

Unfortunately no, this could and should probably change.

@vivekanand1101
Copy link
Author

That step is done. The program gets compiled. But as given by the example here, net.show() should show the gui. But, even if matplotlib is imported, an error shows up:

https://paste.fedoraproject.org/294320/84505621/

I have tried changing the backend, i changed it to PySide. It doesn't work. As soon as i do net.show(). Segmentation fault occurs and i am out of "ipymote"

Can you tell me which backend would be best for pymote ?

And also, when i try to run pymote simulation gui, i get this.
I guess, it is also because of some backend problem (in matplotlib)

@darbula
Copy link
Owner

darbula commented Nov 25, 2015

Hello world tutorial is intended to be started in ipython notebook as noted on tutorial page here:

Tutorial is currently available in form of IPython notebook

So you have to download notebook, start ipython notebook --profile=pymote and load it there. Also when inside tutorial you can try to assert inline mode with %pylab inline command.

@vivekanand1101
Copy link
Author

Yeah. But, i was able to solve the problem in a different way. I am able to see the graph. It was due to matplotlib.

Would that be better to have animation as one of the feature ? Ex: like showing data transfer between motes.

@darbula
Copy link
Owner

darbula commented Nov 29, 2015

Possibility to see data packages step by step is already in the simulationgui.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants