Comments (4)
Alternative implementation:
import importlib.util
import sys
def load_dynamic(name, path, file=None):
spec = importlib.util.spec_from_file_location(name, path)
module = importlib.util.module_from_spec(spec)
sys.modules[name] = module
spec.loader.exec_module(module)
return sys.modules[name]
from pysmt.
Thank you for the heads up!
@mikand It seems the whole reason we are using imp.load_dynamic
is to avoid having a verbatim copy of the parser (according to this comment).
As we have not made changes to the parser in a long time, shall we just make a copy and simplify all of that? If we do, I'd then suggest we add a CI check for checking the equality of those two files.
This might remove some unnecessary complexity and be an easier fix than trying to re-implement a similar logic.
WDYT?
from pysmt.
Thanks for getting back to this issue so quickly!
A near term resolution would be awesome, as otherwise this project will be broken on Arch Linux once we upgrade. 🙇
(cc @anthraxx for package maintainer reference)
from pysmt.
@alvalentini do you have time for a quick pr on this?
from pysmt.
Related Issues (20)
- ImportError: No module named shortcuts HOT 5
- Division by constant
- Converting PySMT formulas to Z3Py ones HOT 4
- CNF conversion improvement
- CVC4 has been superseded by CVC5 - please update the project
- Substitution issue for ForAll using MGSubstituter HOT 3
- The "bvxnor" operator seems to be misdefined HOT 1
- Your thought about Integration to IDE. HOT 2
- Failing to install solvers on Apple M1 chip HOT 4
- Add labels to the constraints to mimic `assert_and_track` from Z3 in pySMT
- Z3 works while Yices fails simple example HOT 9
- Using solvers that are obtained by other means (such as homebrew) HOT 1
- Fastest way to create a (big) model HOT 3
- Support Cython 3.0.0 HOT 1
- SMTLIB Parser cant parse MOD operation
- Can't install the MathSAT solver on Mac OS Ventura + Apple silicon (M2) HOT 2
- Support for continuous subtraction HOT 2
- distutils is removed from Python 3.12 standard library HOT 1
- Substituting Function Symbols without providing Interpretations HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pysmt.