-
Notifications
You must be signed in to change notification settings - Fork 6
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
Problem with running "python LipidLynxX.py" after installation #25
Comments
Hi! I think it is not the source code issue. Did you modify some of the rules? Can you colon again a fresh new LipidLynxX and run the demo in the same python env? Best, Ni |
Hello, Thank you for the prompt reply. A colleague of mine followed the same procedure and got the same error as me. Sincerely, |
Hello, I fixed this issue by modifying the requirements.txt with a recent regex version (modification in bold): aiofiles>=0.5.0 |
Hi @IlyesAbdelhamid ! Sorry I was on parental leave and was not able to respond in time. many thanks! |
Hello,
I followed the installation user guide (section "Install from source code") here: https://github.com/SysMedOs/LipidLynxX/blob/master/doc/LipidLynxX_UserGuide.pdf
The installation went smootly, however, when it comes to running the command
python LipidLynxX.py
I have the following error:Traceback (most recent call last):
File "/Users/ilyesabdelhamid/Documents/Lipotype/Lipid_Net_Building/LINEX2/LipidLynxX/LipidLynxX.py", line 19, in
from lynx.app import app
File "/Users/ilyesabdelhamid/Documents/Lipotype/Lipid_Net_Building/LINEX2/LipidLynxX/lynx/init.py", line 1, in
from lynx.controllers.converter import Converter
File "/Users/ilyesabdelhamid/Documents/Lipotype/Lipid_Net_Building/LINEX2/LipidLynxX/lynx/controllers/converter.py", line 19, in
from lynx.controllers.encoder import Encoder
File "/Users/ilyesabdelhamid/Documents/Lipotype/Lipid_Net_Building/LINEX2/LipidLynxX/lynx/controllers/encoder.py", line 22, in
from lynx.controllers.decoder import Decoder
File "/Users/ilyesabdelhamid/Documents/Lipotype/Lipid_Net_Building/LINEX2/LipidLynxX/lynx/controllers/decoder.py", line 21, in
from lynx.controllers.formatter import Formatter
File "/Users/ilyesabdelhamid/Documents/Lipotype/Lipid_Net_Building/LINEX2/LipidLynxX/lynx/controllers/formatter.py", line 21, in
from lynx.models.cv import CV
File "/Users/ilyesabdelhamid/Documents/Lipotype/Lipid_Net_Building/LINEX2/LipidLynxX/lynx/models/cv.py", line 20, in
from lynx.models.defaults import default_cv_file
File "/Users/ilyesabdelhamid/Documents/Lipotype/Lipid_Net_Building/LINEX2/LipidLynxX/lynx/models/defaults.py", line 32, in
default_input_rules = build_input_rules(app_cfg_info["input_rules"])
File "/Users/ilyesabdelhamid/Documents/Lipotype/Lipid_Net_Building/LINEX2/LipidLynxX/lynx/utils/params_loader.py", line 111, in build_input_rules
temp_rules = InputRules(f, logger)
File "/Users/ilyesabdelhamid/Documents/Lipotype/Lipid_Net_Building/LINEX2/LipidLynxX/lynx/models/rules.py", line 61, in init
self.rules = self.build()
File "/Users/ilyesabdelhamid/Documents/Lipotype/Lipid_Net_Building/LINEX2/LipidLynxX/lynx/models/rules.py", line 262, in build
sum_rules = self.replace_refs(sum_rules)
File "/Users/ilyesabdelhamid/Documents/Lipotype/Lipid_Net_Building/LINEX2/LipidLynxX/lynx/models/rules.py", line 144, in replace_refs
replaced_pattern = re.sub(
File "/Users/ilyesabdelhamid/opt/anaconda3/envs/envlynx/lib/python3.9/site-packages/regex/regex.py", line 278, in sub
return pat.sub(repl, string, count, pos, endpos, concurrent, timeout)
File "/Users/ilyesabdelhamid/opt/anaconda3/envs/envlynx/lib/python3.9/site-packages/regex/regex.py", line 710, in _compile_replacement_helper
is_group, items = _compile_replacement(source, pattern, is_unicode)
File "/Users/ilyesabdelhamid/opt/anaconda3/envs/envlynx/lib/python3.9/site-packages/regex/_regex_core.py", line 1737, in _compile_replacement
raise error("bad escape \%s" % ch, source.string, source.pos)
regex._regex_core.error: bad escape \s at position 37
I tried with different versions of python (3.7.13 and 3.9) but same issue.
Thank you in advance for your help.
Sincerely,
Ilyes
The text was updated successfully, but these errors were encountered: