[tbot] Release 0.8.1

Stefano Babic sbabic at denx.de
Tue Mar 10 10:38:02 CET 2020


Hi Harald,

On 10.03.20 10:22, Harald Seiler wrote:
> Hello Stefano,
> 
> On Tue, 2020-03-10 at 10:10 +0100, Stefano Babic wrote:
> [...]
>>>>
>>>> Setup looks broken after 0.7.1 - this is the last version I can install
>>>> without issue on Ubuntu 19.10. After installing 0.8.0 or 0.8.1, I get
>>>> running tbot:
>>>
>>> I cannot reproduce this error on my system ... I suspect it is caused by
>>> a change in Python from version 3.6 to 3.7.  Can you check which version
>>> you are using?
>>>
>>
>> Python 3.7.5 (default, Nov 20 2019, 09:21:52)
>>
>>
>>> Also, with 0.8.1, if you get an error, it will most likely be a slightly
>>> different one (the line causing the error here has changed since).  Can
>>> you send me the full traceback as well, please?
>>
>> I sent the full trackback: there is nothing more. I do not see any error
>> during install, anyway trhis is the log:
>>
> [...]
>>
>> Everything fine (this was using development branch, but things changed
>> after 0.7.1). Then I just call tbot:
>>
>> stefano at paperino:~/Projects/internal/tbot$ tbot
> [...]
>> "/home/stefano/.local/lib/python3.7/site-packages/tbot-0.8.1-py3.7.egg/tbot/machine/linux/build/toolchain.py",
>> line 26, in Toolchain
>>     def enable(self, host: linux.LinuxMachine) -> None:
>> AttributeError: module 'tbot.machine.linux' has no attribute 'LinuxMachine'
> 
> This looks fishy ... In tbot 0.8.1, this line (and this file) does not
> exist anymore.  It was moved and is now the following [1]:
> 
>     def enable(self, host: "Builder") -> None:
> 
> I'm not sure why your system seems to still contain old sources here ...
> I suggest you uninstall tbot entirely using
> 
>     pip3 uninstall tbot
> 
> and then reinstall again like usual.  Maybe that helps?
> 

It does not help. Uninstall does not remove all, tbot is still in
.local/bin. And of course, I have older tbot version (at least from
0.60), and they are not removed. I removed manually everything related
to tbot from .local

I realize that it depends on local build from previous releases. So if I
run "git pull", and then "python3 setup.py install --user", everybody
can run in the same issue.

The thing is that everything under build is not touched, as well as the
egg files (and the derivate files). .gitignore does not help in this
case, because it hides what is generated. To fix it, I drop all files
found in .gitignore:

/build/
_build/
*.egg-info/
log/
*.pyc
.mypy_cache/
dist/
.doctrees
/Documentation/output*/

And then I ran again "python3 setup.py install --user". This time
everything was built again and no ancient object was left, resulting in
a clean install. And now it works:

 tbot starting ...
├─────────────────────────────────────────
└─SUCCESS (0.070s)

swtup.py just provides build/iunstall, but no dist-clean to remove old
artefacts.

Regards,
Stefano

>> Regards,
>> Stefano
> 
> [1]: https://github.com/Rahix/tbot/blob/v0.8.1/tbot/machine/linux/build.py#L28
> 


-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================


More information about the tbot mailing list