Skip to content
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

Simpler install #723

Closed
joamatab opened this issue Sep 18, 2022 · 27 comments
Closed

Simpler install #723

joamatab opened this issue Sep 18, 2022 · 27 comments

Comments

@joamatab
Copy link
Contributor

How can we simplify the installation process?

Options

  • executable window anaconda on packager. Ship anaconda environment, use constructor to create a conda installer, or mambstructor for mamba

@tvt173
@HelgeGehring
@simbilod
@flaport
@thomasdorch

@joamatab
Copy link
Contributor Author

We have now releases available with installers for windows, mac and linux
https://github.com/gdsfactory/gdsfactory/releases

thanks to constructor
https://github.com/conda/constructor/blob/main/CONSTRUCT.md

we need to add some sort of menu, launcher, shortcuts

one idea is using anaconda-navigator
https://docs.continuum.io/anaconda/navigator/

@simbilod
Copy link
Collaborator

On Windows:

After downloading, the program shows up in Start menu:
image

The provided Spyder has the package:
image

There is also an Anaconda Navigator (albeit not under gdsfactory folder) that crashed for me on launch:
image

@simbilod
Copy link
Collaborator

It would also be nice if there was a quick way to load the docs after a fresh download

@joamatab
Copy link
Contributor Author

yes, anaconda navigator only works on 3.7, 3.8 and 3.9
https://docs.continuum.io/anaconda/navigator/install/

I was able to reproduce the error

just released 5.33.1 with python=3.8 so that we can also get anaconda-navigator and klayout-gui on the linux versions

@simbilod
Copy link
Collaborator

Navigator works now, but it does not show up under the "gdsfactory" program (it is under anaconda)

@joamatab
Copy link
Contributor Author

is it worth having it as a menu?

can you launch jupyterlab and spyder from it?

or shall we remove it and upgrade to python3.10?

@simbilod
Copy link
Collaborator

Yes jupyterlabs and spyder can both be launched with the right environments from there, which is nice. If you are not a regular Python user and want to use gdsfactory this is a nice option

@joamatab
Copy link
Contributor Author

awesome! can you send a screenshot so we can add it to the docs?

how about making that install.bat to add a shortcut into the desktop?

@simbilod
Copy link
Collaborator

image

@joamatab
Copy link
Contributor Author

This looks great, maybe as part of the post-install script we can also git clone the gdsfactory repo into your desktop or home folder, so you can get started with the tutorial,

what do you think?

@joamatab
Copy link
Contributor Author

Hi,

does any of the users on windows see the gdsfactory on their desktop after running the installer?
It would also be great to create desktop shortcuts on windows

What do you think of using anaconda navigator to update gdsfactory?

Another option is to create a new launcher, GUI-like experience,
This would also allow us to do schematic driven flow
https://github.com/qiskit/qiskit-metal

@SkandanC
@tvt173
@simbilod

@SkandanC
Copy link
Contributor

@joamatab I do not see gdsfactory on my desktop after installation. Also, I feel like the installation time (at least on windows) is a little too long, perhaps it is my old laptop that's the issue, unless others have experienced this as well.

@joamatab
Copy link
Contributor Author

I have heard it's slow on windows, Mac and Linux is super fast compared to windows

@tcaduser
Copy link

You may have a faster windows install speed by temporarily disabling the antivirus.

@joamatab
Copy link
Contributor Author

We are using conda constructor for building the installer
https://github.com/conda/constructor

For windows we use install.bat post install script
what do you get when you run this script by itself?

Did jax and jaxlib got installed too?

@SkandanC
Copy link
Contributor

SkandanC commented Sep 26, 2022

@joamatab
image

This is after running install.bat

@joamatab
Copy link
Contributor Author

I see, If someone with a windows machine can fix the install.bat script it would be great

@joamatab
Copy link
Contributor Author

joamatab commented Oct 2, 2022

I found a VM for windows to debug the installer

https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/

@SkandanC
Copy link
Contributor

SkandanC commented Oct 7, 2022

Turns out the error is because there's a version mismatch problem. The latest available version of jaxlib for Windows is 0.3.7, whereas the latest version of JAX is 0.3.21. So we can only have JAX 0.3.7 (released April 2022) for Windows users as of now

@joamatab

@SkandanC
Copy link
Contributor

SkandanC commented Oct 7, 2022

Actually, it turns out the latest version is available, the install command just needs to be modified.

@joamatab
Copy link
Contributor Author

joamatab commented Oct 10, 2022

Hi Skandan,

can you try again to see if it works? You'll need 5.42.1 or higher

it would be also great to add shorcuts on the desktop as part of the installer
conda/constructor#573

@SkandanC
Copy link
Contributor

Hi,

sorry for the late reply.

I installed the latest version
image
I can see a folder created in my Start menu. But I do not see a desktop icon or anything else.

@joamatab
Copy link
Contributor Author

We are not adding shortcuts yet

Did it installed the klayout macros?

@SkandanC
Copy link
Contributor

I am not sure how to check for those

@joamatab
Copy link
Contributor Author

If you uninstall the gdsfactory klayout integration install.bat should install it for you

The integration gives you the generic layer map and Component.show()

@SkandanC
Copy link
Contributor

Yep, it works, i'm able to do Component.show() after running the installer.

@joamatab
Copy link
Contributor Author

Awesome, thank You Skandan!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants