Ask Your Question

qepcad stopped working after updating to Sage 9.5

asked 2022-04-04 08:58:12 +0200

philipp7 gravatar image

I recently updated from Sage 9.4 to Sage 9.5 (using the procedure described in Everything seems to work normally. Then, I also installed qepcad again using sage -i qepcad. The qepcad interface is now available in Sage (i.e., the methods qepcad_formula, qepcad, etc. exist and are found), but calling the method qepcad with anything yields an error.

sage: qepcad(x > 0)
FileNotFoundError                         Traceback (most recent call last)
/tmp/ipykernel_6758/ in <module>
----> 1 qepcad(x > Integer(0))

~/sage-9.2/local/lib/python3.9/site-packages/sage/interfaces/ in qepcad(formula, assume, interact, solution, vars, **kwargs)

   1636         return qe
   1637     else:
-> 1638         qe.go()
   1639         qe.go()
   1640         qe.go()

~/sage-9.2/local/lib/python3.9/site-packages/sage/interfaces/ in __getattr__(self, attrname)
   1236         if attrname[:1] == "_":
   1237             raise AttributeError
-> 1238         if attrname not in self._tab_completion():
   1239             raise AttributeError
   1240         return QepcadFunction(self, attrname)

~/sage-9.2/local/lib/python3.9/site-packages/sage/interfaces/ in _tab_completion(self)
   1157             True
   1158         """
-> 1159         _update_command_info()
   1160         return _command_info_cache.keys()

~/sage-9.2/local/lib/python3.9/site-packages/sage/interfaces/ in _update_command_info()
    685     cache = {}
--> 687     with open(os.path.join(SAGE_LOCAL, 'share/qepcad', '')) as help:
    688         assert(help.readline().strip() == '@')

FileNotFoundError: [Errno 2] No such file or directory: '.../sage-9.2/local/share/qepcad/'

(Note that sage-9.2 is just the original folder name, the version is in fact "SageMath version 9.5, Release Date: 2022-01-30"). The same error appears if I try the example from the documentation ( Did something go wrong in my personal installation of Sage or qepcad or is this some bug of the recent Sage version?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2022-04-04 12:28:46 +0200

tmonteil gravatar image

As you can see, the file .../sage-9.2/local/share/qepcad/qepcad.helpdoes not exist. You can try to force a reinstallation of qepcad with the command

sage -f qepcad
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2022-04-04 08:58:12 +0200

Seen: 37 times

Last updated: Apr 04