Closed Tatiana-runco closed 6 years ago
Good morning.
Apparently, there is a mismatch between the version of pyasn1 installed and the version required by pyasn1-modues (this has happened before.) I have updated the version in setup.py and requirements.txt. Could you fetch the latest on the develop branch and check if that solves your issue?
Cheers,
// Ola
@olaan Hello!!
Thank you very much for your answer, modify the file "requirements.txt" and "setup.py" as you described in Install: Attempt to fix issue # 95, but when I run again (python setup.py install) in my console the error : File "setup.py", line 17 import os ^ IndentationError: unexpected indent
Sorry I'm a novice on this subject, thank you for your patience.
It appears there are some unexpected changes in your setup.py file. I suggest you fetch the repo again, removing any changes you have done yourself.
You should also get a basic tutorial on python. It would help with issues such as this.
@olaan I could find the error and it worked perfect, but in the following command (py.test -m essential calvin) in https://github.com/EricssonResearch/calvin-base/tree/develop/extras/install#debian-based-systems-manual-installation there are many errors of which appear to be classes of the same calvin-base. I would like to show you something of all this:
Could you re-run the tests with py.test -sv
and attach the entire log (as text, not screenshot)?
Cheers.
@olaan
Of course I attach the text. You will see my console does not show me from the beginning of py.test -sv but I think most of it I could rescue.
Not seeing the entire log, it is difficult to say the exact cause of this problem. It seems that one or more runtimes fail to connect to each other.
Could you
1) verify that you are using the latest version on the develop branch? git checkout develop && git pull --rebase
will ensure this (unless you have made changes, in which case these will have to be removed first.)
2) run just the test_calvin.py tests and save the log to a file? From the calvin-base directory, execute py.test -sv calvin/tests/test_calvin.py >& tests.log
and attach the file tests.log.
Cheers,
@olaan I send the step by step, each command executed and the results of the tests. I would like to ask you if the branch I choose varies in something, I chose "develop".
I can not find the result of (py.test -sv calvin / tests / test_calvin.py> & tests.log) to send it to you. Sorry that I did not understand.
Hello @olaan,
Sorry,
I do not want to seem annoying. Could you see the files I sent him?
I am really sorry. It appears my previous response was lost.
I think there is an issue with the installation, and the best way forward is probably to uninstall Calvin and start over using the instructions for installing in a virtual environment.
I am currently on vacation, but will take a closer look at it later this week.
Sorry for the delay.
// Ola
Hey @Tatiana-runco ,
How did it go? Have you tried reinstalling Calvin?
// Ola
Hello @olaan I was able to make it work under a virual environment. However, it would be ideal to install it as described in https://github.com/EricssonResearch/calvin-base/tree/develop/extras/install#debian-based-systems-manual-installation but I had no luck with that installation the previous errors that I showed you.
Hello @olaan how are you? As I told you, I could install it with the vitual environment as you told me. I must thank you very much for that. I was trying the Hello Word and Button - Light examples, I'm really interested in Calvin. I want to make a project where an application developed in Calvin interacts with devices such as rasberry pi or arduino boards and these with sensors. My idea will be possible to develop with Calvn and the virtual environment? It would be of vital importance to have knowledge of this to be able to completely defend myself in the development of said application.
Thank you very much for your help.
Tatiana
Good afternoon.
What you describe is certainly possible. There are a number of examples of this in the examples/sensor-kit folder - see also the wiki page on Sensor kit on how to connect some common sensors to a raspberry pi.
Cheers,
// Ola
Thank you @olaan , your help has been very useful!
Good to hear! Then I'm closing this issue now.
Cheers, // Ola
When I type in my console (ubuntu 16.04 lts) "python setup.py install" the file that belongs to the folder that is downloaded from calvin-base (https://github.com/EricssonResearch/calvin-base/tree/develop/extras/install#debian-based-systems-manual-installation) I have the error: pyasn1 0.1.9 is installed but pyasn1 <0.5.0,> = 0.4.1 is required by set (['pyasn1-modules']) . I tried several options but I could not solve it. Does anybody know how I can fix it?