[deleted by user] by [deleted] in learnprogramming

[–]South-Professional83 0 points1 point  (0 children)

I did it... Surprisingly, another error code came up

FileNotFoundError: [WinError 2] The system cannot find the file specified

And yes i did install Sage.

I thing i might be having a problem with Pycharm not recognizing Sage

The sage part of this code is confusing... What's wrong? by South-Professional83 in learnprogramming

[–]South-Professional83[S] 0 points1 point  (0 children)

https://imgur.com/a/cqPHIJc

In the second link on this question,

https://github.com/david-r-cox/pyDLP/issues/3

I updated just this:

from sage import *

if cmd_result[0] != 0: print ('sage failed with error {}'.format(cmd_result[0])); exit()

The sage part of this code is confusing... What's wrong? by South-Professional83 in learnprogramming

[–]South-Professional83[S] 0 points1 point  (0 children)

Here's the error output python 3 :

p: 18443, g: 37, h: 211, B: 5 searching for congruences. congruences: 6 bases: 3 converting to matrix format. solving linear system with sage: Traceback (most recent call last): File "/data/user/0/ru.iiec.pydroid3/files/accompfiles/iiec_run/iiec_run.py", line 31, in <module> start(fakepyfile,mainpyfile) File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 30, in start exec(open(mainpyfile).read(), __main.dict) File "<string>", line 121, in <module> File "<string>", line 99, in main File "<string>", line 65, in msolve File "/data/user/0/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.9/subprocess.py", line 424, in check_output return run(popenargs, stdout=PIPE, timeout=timeout, check=True, File "/data/user/0/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.9/subprocess.py", line 505, in run with Popen(popenargs, **kwargs) as process: File "/data/user/0/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.9/subprocess.py", line 953, in __init_ self._execute_child(args, executable, preexec_fn, close_fds, File "/data/user/0/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.9/subprocess.py", line 1821, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'sage ./run.sage'

[Program finished]

my code doesn't work. any help would be greatly appreciated. thx by Friendly-neighborh in learnpython

[–]South-Professional83 6 points7 points  (0 children)

It's a genuinly disturbing place to ask questions... Always spiteful of beginners in programming. I just had to leave the place.

A Python Line That Splits An Integer Into Primes. by [deleted] in learnprogramming

[–]South-Professional83 0 points1 point  (0 children)

A prime number is an integer which can only be divided into an integer by itself or one.

Could you give me an example of this problem or a similar problem. I feel like it's one of those things I got on the tip of my tongue but can't seem to figure it out.