You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After following instruction to install LipidLynxX in the local machine(Ubuntu 18.04), I met error:
ImportError: cannot import name 'Literal' from 'typing'
To Reproduce
Steps to reproduce the behavior:
After running the main script: python LipidLynxX.py, you will get the error.
Expected Fixed Method
Change the code in this step:
Now you can create a virtual environment for LipidLynxX. For Windows users, please use the Anaconda Prompt instead of Commandline Pront or Power Shell here a virtual environment named envlynx is created. You might have to type y for enter to confirm the creation of this virtual environment.
conda create -n envlynx python=3.7
to this code conda create -n envlynx python=3.8
Additional context
Why cause this? Because the python 3.7 do not support typing.Literal. See the link for details.
Hope you fix the Readme soon!
The text was updated successfully, but these errors were encountered:
Hi @xlhd19980327 !
Thanks for reporting this and test our LipidLynxX!
You are correct! LipidLynxX requires typing.Literal to run in this case and the user guide need to be updated.
I have some work around to make it compatible with 3.7, however, this require some test.
It would be nice if you can set up a pull request so I can merge your contribution in the project.
If you think its a bit complicated to create a PR for this, I will update the doc mention your contribution.
Just tell me which way you prefer and many thanks again!
Thanks for your reply! I just changed that code(turn the environmet to python 3.8) and can deploy your server in my local machine(can only open the server port and see the interface, further test about the whole function may try later). I just found the issue and want to remind you of the bug. I'm new to github and do not have the ability to pull the changing request to your project. May you fix the bug well later!
Describe the bug
After following instruction to install LipidLynxX in the local machine(Ubuntu 18.04), I met error:
To Reproduce
Steps to reproduce the behavior:
After running the main script:
python LipidLynxX.py
, you will get the error.Expected Fixed Method
Change the code in this step:
to this code
conda create -n envlynx python=3.8
Additional context
Why cause this? Because the python 3.7 do not support typing.Literal. See the link for details.
Hope you fix the Readme soon!
The text was updated successfully, but these errors were encountered: