Giter Site home page Giter Site logo

Comments (16)

olaan avatar olaan commented on May 22, 2024

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

from calvin-base.

Tatiana-runco avatar Tatiana-runco commented on May 22, 2024

@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.

from calvin-base.

olaan avatar olaan commented on May 22, 2024

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.

from calvin-base.

Tatiana-runco avatar Tatiana-runco commented on May 22, 2024

@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:

error-en-py test -m essential calvin

from calvin-base.

olaan avatar olaan commented on May 22, 2024

Could you re-run the tests with py.test -sv and attach the entire log (as text, not screenshot)?

Cheers.

from calvin-base.

Tatiana-runco avatar Tatiana-runco commented on May 22, 2024

@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.

result for pytest -sv.TXT

from calvin-base.

olaan avatar olaan commented on May 22, 2024

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,

from calvin-base.

Tatiana-runco avatar Tatiana-runco commented on May 22, 2024

@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.

step-by-step.pdf
pytest -m essential calvin.TXT completed

from calvin-base.

Tatiana-runco avatar Tatiana-runco commented on May 22, 2024

Hello @olaan,

Sorry,

I do not want to seem annoying. Could you see the files I sent him?

from calvin-base.

olaan avatar olaan commented on May 22, 2024

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

from calvin-base.

olaan avatar olaan commented on May 22, 2024

Hey @Tatiana-runco ,

How did it go? Have you tried reinstalling Calvin?

// Ola

from calvin-base.

Tatiana-runco avatar Tatiana-runco commented on May 22, 2024

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.

from calvin-base.

Tatiana-runco avatar Tatiana-runco commented on May 22, 2024

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

from calvin-base.

olaan avatar olaan commented on May 22, 2024

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

from calvin-base.

Tatiana-runco avatar Tatiana-runco commented on May 22, 2024

Thank you @olaan , your help has been very useful!

from calvin-base.

olaan avatar olaan commented on May 22, 2024

Good to hear! Then I'm closing this issue now.

Cheers,
// Ola

from calvin-base.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.