Closed simonxuhao closed 7 years ago
Looks like some versioning mismatch between pyasn1 and pyasn1-modules. I changed the version to >=0.1.9 on the setup branch. Could you retry and see if that fixes the issue?
I recommend installing the requirements before running setup.py.
I didn't run setup.py directly. I ran "pip install -r test-requirements.txt" and then "pip install -e .".
I just retried using the following command sequence:
> deactivate && cd ~
> rm -rf ~/.virtualenvs/test-calvin/
> virtualenv ~/.virtualenvs/test-calvin
> source ~/.virtualenvs/test-calvin/bin/activate
(test-calvin)> cd calvin-base
(test-calvin)> git checkout develop
(test-calvin)> pip install -e .
(test-calvin)> pip install -r test-requirements.txt
(test-calvin)> csdocs std.Trigger
std.Trigger(tick, data)
Pass on given _data_ every _tick_ seconds
Outports: data
Requires: sys.timer.repeating
So the isue is fixed.
Question: why neither pyasn1 0.1.9 nor 0.3.2 met the requirement?
Thanks!
It looks like pyasn1-modules requires pyasn1 0.3.2, so it would not load with version 0.1.9. At the same time Calvin was set to require 0.1.9, so when 0.3.2 was installed, Calvin would not load.
One caveat; Tests have not completed, so I cannot guarantee there are no known issues.
Cheers!
-o
Should be fixed now. Reopen if not.
I installed calvin following instructions in https://github.com/EricssonResearch/calvin-base/wiki/Installation, but I get error when I run "csdocs std.Trigger" with either pyasn1 0.1.9 or 0.3.2:
Any help would be appreciated. Thanks!