-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing Desktop Client #7
Comments
Hello! The UI clients are quite new and I think you are one of the first to attempt installing from scratch on Windows, so my apologies for the lacking documentation. I'll try my best to help and then will also try to improve the installation instructions for anyone to follow. The desktop client and the python package for PHOEBE are entirely independent from each other, so you should be able to just run the setup folder and launch the client. But like I said, we don't have many Windows users/testers though, so you'll have to let me know if that gives you any problems and we'll try to sort them out. The virtual environment is entirely optional (they can be handy if you have a lot of codes with different version dependencies, but if you don't have that situation, then it probably isn't worth all the extra effort). You can quickly check to make sure it is installed by entering the following in a WSL terminal/console: Once the client is installed and launched, the client then needs to connect to an installed instance of PHOEBE (this may seem a little overcomplicated, but it allows you to run PHOEBE remotely on a machine with more resources if you want down the road). The desktop client attempts to launch a local instance and connect automatically, but I'm guessing Windows won't know how to find the version installed within WSL. To get around this, you should be able to launch Let me know how it goes or if you have any questions. If we manage to get it up and running, I'll update the installation instructions with clearer advice for future Windows users. If you're just getting started and haven't already tried it, we also have a web version with no installation necessary. This does have some limitations and isn't quite as convenient, but is a good place to get started and decide if you need a full local installation or not. |
Hi Kyle,
Thanks very much for your email, it's great to know that someone is on hand to help! I am afraid I am not very clear about the Windows Subsystem for Linux etc. so your help is much appreciated. I am using Ubuntu as my Linux distribution, and when I enter python3 -c "import phoebe; print(phoebe.__version__)" it tells me I have verion 2.3.30, so it would seem to be installed ok. However, when I enter phoebe-server --host 5555 it gives me an error. I have attached screenshot in case that is of any help to you.
I have had a look at the web version, and will continue to investigate in the meantime. To give you some background, I am studying for an MSc with the Open University, and am about to schedule observations of my selected binary with the PIRATE telescope in Tenerife. My immediate concern is the interval between observations in order to provide good input data for PHOEBE. The binary has a period of approximately 8.5hours, so I am thinking maybe observations every 10-15 minutes. Will this be sufficient to get good results from PHOEBE? Or could I get away with less often?
Sorry to ask so much advice, but any help will be much appreciated.
Thanks,
Kathryn
…________________________________
From: Kyle Conroy ***@***.***>
Sent: 27 March 2021 14:12
To: phoebe-project/phoebe2-ui ***@***.***>
Cc: kathmcp ***@***.***>; Author ***@***.***>
Subject: Re: [phoebe-project/phoebe2-ui] Installing Desktop Client (#7)
Hello! The UI clients are quite new and I think you are one of the first to attempt installing from scratch on Windows, so my apologies for the lacking documentation. I'll try my best to help and then will also try to improve the installation instructions for anyone to follow.
The desktop client and the python package for PHOEBE are entirely independent from each other, so you should be able to just run the setup folder and launch the client. But like I said, we don't have many Windows users/testers though, so you'll have to let me know if that gives you any problems and we'll try to sort them out.
The virtual environment is entirely optional (they can be handy if you have a lot of codes with different version dependencies, but if you don't have that situation, then it probably isn't worth all the extra effort). You can quickly check to make sure it is installed by entering the following in a WSL terminal/console: python3 -c "import phoebe; print(phoebe.__version__)". If that gives you any errors, then we will need to fix that before continuing.
Once the client is installed and launched, the client then needs to connect to an installed instance of PHOEBE (this may seem a little overcomplicated, but it allows you to run PHOEBE remotely on a machine with more resources if you want down the road). The desktop client attempts to launch a local instance and connect automatically, but I'm guessing Windows won't know how to find the version installed within WSL. To get around this, you should be able to launch phoebe-server --host 5555 command within WSL and then click the "+" icon in the desktop client and enter "localhost:5555" to connect. You'll need to leave the terminal running the server open in the background but can kill/close it once you close the desktop client.
Let me know how it goes or if you have any questions. If we manage to get it up and running, I'll update the installation instructions with clearer advice for future Windows users.
If you're just getting started and haven't already tried it, we also have a web version<http://ui.phoebe-project.org/> with no installation necessary. This does have some limitations and isn't quite as convenient, but is a good place to get started and decide if you need a full local installation or not.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#7 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ATNTCQL637I2LXKHG2B5CNTTFXRT5ANCNFSM4Z45RN7A>.
|
Hi Kathryn - your attachment doesn't seem to have posted. Can you either paste the error message or you may need to post the attachment through github directly instead of email? As for observation times, that is a difficult question to answer as it depends on the system, precision of observations, phase of observations, and the science and precision you're hoping to achieve from modeling. If it were a well-detached system, then there probably wouldn't be too much information between the eclipses, so I would suggest prioritizing observations during and around the eclipses themselves. But at 8.5 hours, that probably isn't the case and you probably have significant ellipsoidal variations. 10-15 minutes is probably reasonable, but at about 2% of the phase-width, this will probably result in significant phase-smearing which you'll then have to handle that in the model (its just a bit expensive). |
Ah, that was my fault, sorry about that! Its There is a chance that you will also need to set the host to '0.0.0.0' if windows cannot see the localhost of the WSL session. Note that this will make the server available to anyone on the same network (although they would need the IP address of your machine), so might not be ideal on a public network. |
Hi again, I have tried using port 5555 now, and this is what I get. It's still saying phoebe not found, but if I enter python3 -c "import phoebe; print(phoebe.version)" it tells me I have version 2.3.30. And now there is another error message. You can see the PHOEBE app in the background where I have entered localhost:5555 but the wheel just keeps spinning. Thanks again! |
Ok, the good news is I think this is just a version conflict issue that we should be able to work around and then I'll work to get a more permanent fix released for anyone else that might run into the same problem. Can you please tell me the output from running the following so I can see which package has the version conflict?
It should output something like:
|
Ok so the output I get is |
Ok, those are all too new and no longer compatible with the version included in the desktop client. Assuming you installed phoebe with pip, you should be able to downgrade them with something like the following:
(where you should use The phoebe not found message will still show and can safely be ignored. Hopefully this will get rid of the other message and the client will be able to connect to the server. |
Interesting, there's a chance that just downgrading flask_socketio will do the trick and pull the necessary versions of the others. If that doesn't work, I'll work on getting a bugfix out in PHOEBE to make sure it pulls the right versions of everything. |
So now it has installed flask_socketio version 4.3.0, but unfortunately it still doesn't work, and it looks like it still has socketio version 5.1.0. The phoebe app is trying to connect to the localhost:5555 server, and I have left it running for a few minutes now, but the wheel just keeps going round and nothing happens. |
Ok, let me try to reproduce this on a fresh system and I'll see if I can get a bugfix out for either phoebe or the client. In the meantime, you can always connect to the limited online server by clicking the "+" button and using "server.phoebe-project.org". Thanks and sorry for the trouble! |
Ok I will do that. Thanks for all your help so far! |
* newer releases not compatible with version in desktop client * see phoebe-project/phoebe2-ui#7
I fixed the version requirements in the latest PHOEBE bugfix (2.3.32). If you update with pip, I think it should pickup and fix all the versions... if not, you can try uninstalling and installing from scratch. Let me know if it works for you! |
Ok, thanks for the update. I'll have to dig in further and try to reproduce on a fresh system, but might not be able to do that right away. I'll keep you posted here if I have any luck, and in the meantime I guess you'll have to use the web UI or python interface. Sorry again for the troubles and thanks for helping to test! |
Those are just deprecation warnings from matplotlib (meaning in future versions of matplotlib, it will stop working). As long as the plot works, it shouldn't be a problem for now. We have updated this for the 3.4 release so the warning will go away (once 3.4 is released) and will then be compatible with future versions of matplotlib. Thanks! |
Unfortunately, the plot is not working. It only shows the warnings. Is there anything I could try to fix it? |
Do plots normally show for you in notebooks? Some Jupyter setups require To confirm it isn't an issue with PHOEBE, you could also try doing the same outside Jupyter (in an interactive python session or running as a script), or by plotting to a file by passing ( |
Great, that's sorted it, thanks again! |
Hi, I am new to PHOEBE and not very computer savvy, however, I have managed to install PHOEBE v2.3.30 on my Windows computer using the Linux instructions and installing a Windows Subsystem for Linux. I am now trying to install the Desktop Client. When I go to this page https://github.com/phoebe-project/phoebe2-ui/releases/tag/1.0.1, do I download these files into my phoebe folder, and then run the setup file?
Also, when I followed the instructions from installing from PIP, I didn't do the steps for "Virtual Environments". Is this necessary, and if so, will it help with the above?
Any help would be much appreciated! Thanks
The text was updated successfully, but these errors were encountered: