انجمن‌های فارسی اوبونتو

کمک و پشتیبانی => نرم‌افزارهای فنی-مهندسی => نویسنده: \SmHk/ در 04 خرداد 1399، 09:30 ب‌ظ

عنوان: (حل شد)ارور مربوط به syms در octave
ارسال شده توسط: \SmHk/ در 04 خرداد 1399، 09:30 ب‌ظ
وقتی میخوام از دستور syms در octave استفاده کنم این ارور رو میده
python , sympy , symbolic هم نصب کردم

>> syms x
Traceback (most recent call last):
  File "<stdin>", line 4, in <module>
  File "<stdin>", line 12, in octoutput_drv
  File "<stdin>", line 55, in octoutput
  File "/home/smhk/.local/lib/python3.6/site-packages/sympy/__init__.py", line 677, in __getattr__
    return getattr(self.mod, name)
AttributeError: module 'sympy.core.compatibility' has no attribute 'integer_types'
error: Python exception: AttributeError: module 'sympy.core.compatibility' has no attribute 'integer_types'
    occurred while copying variables to Python.
    Try "sympref reset" and repeat your command?
    (consider filing an issue at https://github.com/cbm755/octsympy/issues)
error: called from
    pycall_sympy__ at line 191 column 5
    valid_sym_assumptions at line 38 column 10
    assumptions at line 82 column 7
    syms at line 97 column 13
>>

هر دفعه هم یه ارور میده

>> syms x
error: 'python_ipc_popen2' undefined near line 62 column 15
error: called from
    python_ipc_driver at line 62 column 13
    pycall_sympy__ at line 163 column 9
    valid_sym_assumptions at line 38 column 10
    assumptions at line 82 column 7
    syms at line 97 column 13
>>


خلاصه کسی میدونه چطور از دستور syms  برای متغیر ها استفاده کنم؟
عنوان: پاسخ : ارور مربوط به syms در octave
ارسال شده توسط: \SmHk/ در 05 خرداد 1399، 06:52 ب‌ظ

کسی میتونه راهنمایی کنه؟
عنوان: پاسخ : ارور مربوط به syms در octave
ارسال شده توسط: \SmHk/ در 06 خرداد 1399، 01:07 ق‌ظ
Python exception: AttributeError: module 'sympy.core.compatibility' has no attribute 'integer_types'

مثل اینه مشکل backward compatibility از sympy بودش که بانصب یه نسخه قدیمی ترش درست شد

وارد کردن
sudo pip3 install sympy==1.4
در ترمینال
وpkg load symbolicدر اکتاو
تشکر از:
https://ubuntuforums.org/member.php?u=1843403