Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    mohlondon
    @mohlondon
    The project is empty i didn't do any changes yet so i guess as you mentioned it is something that should be installed automatically
    Neil
    @RawrBear
    Do you have a link to the tutorial or code you're using (github or what ever)?
    mohlondon
    @mohlondon
    I just finished installing it after you solved my issue then i created a virtual env started new briefcase project enterd in the main folder run briefcase dev
    Neil
    @RawrBear
    Hmmm. The only thing I can think of is to go back to Tutorial Step 0, make sure you have all the requirements (Git and WiX Toolset) installed and try the code again. I'm on Linux at the moment so I don't have a Windows box handy :(
    mohlondon
    @mohlondon
    Me too i work with linux it's my first time with windows and I'm just running it in vm because my project need to be Windows app so i couldn't with linux make a windows app that's the whole story 😂😂
    Russell Keith-Magee
    @freakboy3742
    @mohlondon The “unable to find assembly” error is a weird one - it suggests that it can’t load the system winforms libraries. What can you tell us about your computer? What Windows version are you running? Also - your path suggests you’re not in a virtual environment - have you followed the tutorial as described?
    Russell Keith-Magee
    @freakboy3742
    @RawrBear The “not implemented” warning is just that - a warning telling you that you’re using a feature (in this case, an implicit use of “set_hidden”) that isn’t implemented. Unless you’re actively relying on hiding/showing widgets, that shouldn’t be affecting your code. i.e., if you have a “hide widget” button that is meant to hide content when you press it, that won’t work (but it also won’t crash - it will just report that the feature won’t work).
    mohlondon
    @mohlondon
    @freakboy3742 i'm using Windows 10 on vm and yes i followed the instructions and created a virtuaenv
    Russell Keith-Magee
    @freakboy3742
    @mohlondon But is the virtualenv active? The stacktrace samples you’ve provided suggest it isn’t.
    mohlondon
    @mohlondon
    I'm gonna try again and see, but I'm pretty sure i did activate it, here first-android is the venv
    What should i see if the venv is correctly activeted
    mohlondon
    @mohlondon
    I checked again and i did activate my venv
    Russell Keith-Magee
    @freakboy3742
    There will be a prefix on your prompt - (beeware-venv) if you’ve followed the tutorial
    The fact that you’ve chosen “first-Android” suggests you’re trying to target Android - you should know Android support isn’t currently working reliably.
    You’re not using the Windows Subsystem for Linux, are you? That might cause some problems using winforms...
    mohlondon
    @mohlondon
    Ok any suggestions for how to do this cz I'm a linux user I'm just using Windows for an project
    I mean do you have a way for this to work I'm about to build an windows app that venv is for an old project
    Russell Keith-Magee
    @freakboy3742
    So - my first suggestion is to do the tutorial as written. Follow all the instructions, not just the ones you think you need. If it still doesn’t work, then you’ve found a problem.
    mohlondon
    @mohlondon
    Ok I'll do that and update you if anything comes up
    Neil
    @RawrBear

    @freakboy3742 Thanks for the reply. I was trying to run one of the examples from your Toga Github repo. I cloned the repo, cd'd to the imageview example dir and then tried to run it. I couldn't get it to work so I grabbed the code from the app.py file, ran breifcase new, made a new project and then pasted the code into the new app.py file.
    It runs, gives me the [GTK+] message and shows a blank window.
    I'm not at the Linux box at the moment so I can't test anything but the code I grabbed came from https://github.com/beeware/toga/tree/master/examples/imageview

    I've tried uninstalling and reinstalling the dependencies, that caused cinnamon to stop loading so I re-installed that, got the desktop running again but still not working when it comes to the examples.
    I'll do more tinkering later though and let you know if I figure it out :)

    Russell Keith-Magee
    @freakboy3742
    @RawrBear Ok - thanks for letting me know. FWIW, GTK outputs a lot of those “not implemented” messages. However, I’ve just tested the imageview demo on my own Ubuntu setup, and it’s working - although the behavior might be a little confusing. The window won’t display until the URL for the image completely resolves. That’s not ideal behaviour - it should be a background load - but I had to wait a second or two for the window to appear.
    Screen Shot 2020-03-30 at 6.34.54 am.png
    Neil
    @RawrBear
    @freakboy3742 Ah ok, thanks for the info. I'll play around with it tomorrow and see what I can get happening. I'll try it with the briefcase boilerplate again and I'll try running it as a standard py file. I think I remember reading somewhere about beeware having it's own command to run programs so i might try that too and see what happens. I'll update you with any info :D
    Russell Keith-Magee
    @freakboy3742
    @RawrBear To be clear - there’s no major difference between python myapp.py, python -m myapp and briefcase dev, other than some edge cases around where it finds basic app configuration info (like the application name or bundle ID)
    Those won’t really matter for the toga examples; python -m imageview and briefcase dev should be functionally identical.
    Neil
    @RawrBear

    @freakboy3742 So, I just found some odd behaviour and I'm not sure if its my Linux install or if it's something with Beeware.
    I went back into the imageview example and ran "python -m imageview". The window popped up blank. I left it a while like you said, still blank.
    I wondered if it was because of the theme again (even though Im now using the default on), so while the images are loading, I switched themes. As soon as I did, the images showed up.
    I just figured it's because it took that amount of time. I ran the file again, still blank, left it for 5 minutes, still blank, changed themes and the images showed up. Did the same again and this time I didn't leave it, I changed the theme as soon as the window showed up and up pops the images.

    It looks like the window needs to be "refreshed" or something.. I don't know enough about how the widgets are rendered or how Linux deals with GUIs but maybe this will make sense to you?
    I'll keep messing with it and see what else I can find :)

    Edit: I just noticed that when the window shows up blank, there is a tiny 1x1px white dot in the center/top area. I moved the window around and it moved so i know its not dust on the monitor. So it looks like the images are there but super small. Still getting the errors as before:
    WARNING: Can't find icon resources/imageview; falling back to default icon
    [GTK+] Not implemented: Widget.set_hidden()
    [GTK+] Not implemented: Widget.set_hidden()
    [GTK+] Not implemented: Widget.set_hidden()

    Russell Keith-Magee
    @freakboy3742
    @RawrBear Interesting - thanks for that. I’m not sure I have any more insight either, unfortunately; GTK’s interactions with themes seems to have some interesting edge cases. It’s worth capturing what you know (including all the details about Linux versions, themes etc) in a ticket in case someone else finds the same problem.
    Neil
    @RawrBear

    @freakboy3742 No problem. Yeah, it's very strange. I tried to install virtualbox to test out ubuntu mate, in case it was a cinnamon issue but I can't get it to setup x64 guests. Tried everything I could think of but it wont have it. It works on the same hardware on Windows but Linux says no.
    I'll see if I can get it figured out tomorrow and test out some different versions of Linux. I have a feeling this is something to do with my OS causing the problem.

    I noticed in the code for the ImageView example that you have imageview_from_path.style.update(height=72) for the height and the width. Is there another way to write this without update? What does "update" actually do? I'm thinking maybe the update isn't firing or is being blocked by something so the image starts as 1x1px and doesn't "update" to 72..
    I tried to rewrite the code using style=Pack but it threw errors, I don't know enough about the syntax yet to be able to run without the docs lol.

    Russell Keith-Magee
    @freakboy3742
    widget.styleis a dictionary, so update() is adding an explicit height declaration to that widget. You should be able to get the same net effect by setting the height when the widget is created.
    (it’s not actually a dictionary… but it behaves as one)
    When you update a style, it’s meant to recompute the layout to reflect any changes needed, and apply those changes.
    Neil
    @RawrBear
    @freakboy3742 So, you could do toga.ImageView(style=Pack(height=72, width=72)) and that should work? It will be interesting if something like that works on my system where update doesn't :)
    Russell Keith-Magee
    @freakboy3742
    That’s the theory yes. And yes, it would be an interesting result :-)
    Neil
    @RawrBear
    I'll tinker with that for sure. By the way, I don't know where to submit this idea but I have a suggestion for the API docs
    Russell Keith-Magee
    @freakboy3742
    Sure - the docs definitely need a lot of work. Focus to date has been on getting things to work at all, so any suggestions (or better still, contributions) on improving docs are welcome.
    Neil
    @RawrBear
    My suggestion is to add some code examples under the params, similar to what you have at the top under "Usage" but a little more specific on each param and hos it can be used. I would have to learn a lot more to be able to do that but I wouldn't mind giving it a shot as I learn more :D
    Asheesh Laroia
    @paulproteus
    :D
    Joetib
    @Joetib
    @paulproteus Good morning
    I must say it's been a long time since you posted updates on your work here. Even so, bravo. I love your work
    Asheesh Laroia
    @paulproteus
    Morning!
    Aw thanks @Joetib :D
    I have been mostly emailing Russell directly lately.
    Russell Keith-Magee
    @freakboy3742
    We’ve in a dangerous place at the moment where things almost work - but it’s not quite ready for "prime time”. Once we’ve got something rock solid that people can run, we’ll start making more noise.
    Asheesh Laroia
    @paulproteus
    Well, today I've been working on beeware create android on Windows. :)
    And beeware build android on Windows. And apparently beeware/briefcase#336 fails on Windows, yikes :D
    s/beeware/briefcase/ # yikes
    Joetib
    @Joetib
    That's great news still
    Asheesh Laroia
    @paulproteus
    Thanks @Joetib !
    I'm making progress. I honestly got stuck in a bit of "whoa, is the world ending??" anxiety a few weeks ago, but I'm mostly crawling out of it now, which is great.
    It's really nice to hear you ask about my progress!