Sardana 2.8.3 build on Windows 10 problem
|
|
---|---|
Good day! I'm trying to build an environment using: Python 2.7, Sardana 2.8.3 - by reading documentation I saw I need to respect versions for the following pacakges: ITango = 0.0.1 , lxml >= 2.1 , PyTango >= 7.2. - I used PyQt4, but I'm not sure if exit dependencies between Taurus version and Python version also with PyQt version (on documentation fr PyQt should work with both PyQt4 and PyQt5). I end up having this error after trying to run "spock" in comand line
Cheers ! :) |
|
|
---|---|
Hi Mihai,- by reading documentation I saw I need to respect versions for the following pacakges: You must have found some outdated docs. Could you pass me a link so I could update it. In this docs we say: PyTango < 9 is compatible with itango >= 0.0.1 and < 0.1.0, while higher versions with itango >= 0.1.6. I imagine you have installed PyTango >= 9.2 (in 9.2 PyTango and itango were separed). Then you must use itango >= 0.1.6. Note that in the setup.py it is not 100 % well treated. The install requires simply specify itango>=0.0.1 - I did not know how to do the install_requires conditional based on the installed PyTango version. But in the comments in the code we say about these specific versions depending on the installed PyTango. Hope this helps! Cheers, Zibi PS. I would recommend you to use the Sardana GitHub project issue tracker - your questions will be more visible to the Sardana developers/users and you may get answers faster. PS2. Sardana is not very well tested on Windows. So, if you find any problem don't hesitate to report it on GitHub. We will try to solve them ASAP. |
|
|
---|---|
Thank you for prompt response and also for advice, I will follow them. Regarding my PyTango version is 8.0.3. , also Taurus is 4.6. In my case PyTango < 9 and I have installed itango 0.0.1 so according to instructions from below should be fine if i understand corectly: 9 is compatible with itango >= 0.0.1 and < 0.1.0, while higher versions with itango >= 0.1.6 Should I try to go for itango > 0.0.1 ? |
|
|
---|---|
Seems like there is some problem with PyTango 8.0.3. Could you try:
I think that upgrading itango won't help. If the above import fails I think you will need to upgrade PyTango. We use version 8.1.9 at ALBA and spock works well with itango 0.0.1. Would it be possible to you to upgrade? If yes, I recommend to go for the latest version 9. If not you won't avoid hacking Sardana code to avoid this problem. |
|
|
---|---|
Good day! :) Sorry to bother again. As you suggested I pushed for newest version of pytango (PyTango-9.3.2). Because the manual installing of all packages can be a nightmare sometimes, this time I build it from git: git clone -b 2.8.3 https://github.com/sardana-org/sardana Resul of build is here
I think is ok until now (at least for me :D ) The wierd part that I do not understand is this when I try to run "spock"
One thing to mention I have installed Tango8.1.2 and also i build databes for tests but I don't think this should influence something. Cheers! |
|
|
---|---|
Hi Mihai, Great news that you decided to go for Tango 9. This way things will be easier to debug.. Now, I think you hit a bug in the recently released PyTango 9.3.2. I just created this issue, let's wait for the confirmation… Meanwhile, you can downgrade your PyTango to 9.2.1 e.g. pip install PyTango==9.2.1. I tried it and it worked for me. Also, just to let you know, Sardana 2.8 is the last release compatible with Python 2. For the last year we are working on Sardana 3 compatible only with Pytango 3. It will be released soon (hopefull in a month or so..). The Sardana develop branch reflects all this work and is already quite stable - we use it in production at ALBA. I say it just in case you want to start with it already so you won't need later to follow all the upgrade process. Also as I mentioned you already there are some bugs on Windows which if annoying to you will be fixed in the develop branch and it will be more efficient to avoid backporting them with hotfix releases to 2.8. Here you can find list of the known bugs on Windows and the result of the 2.8 release tests on Windows. Thanks for your interest in Sardana! |