AttributeError: module 'sqlalchemy' has no attribute 'Binary' - sqlalchemy

I am getting error AttributeError: module 'sqlalchemy' has no attribute 'Binary' when trying to use SQLAlchemy library in Python.

sqlalchemy.Binary was renamed to sqlalchemy.LargeBinary and deprecated in 0.6 and finally removed in version 1.4. Use library version < 1.4 or upgrade the codebase.

Related

cannot find pysat=0.1.3 dependency

I am getting error as
from pysat.solvers import Glucose3
ModuleNotFoundError: No module named 'pysat.solvers'*
when I am trying newer version of pysat.
I cannot find the required older version that is pysat=0.1.3.

Libgdx: The import org.json cannot be resolved

The following error occurs when I try to compile my project to Html with gradlew html:superDev command. In Android and Desktop is Ok.
[ERROR] Line 14: The import org.json cannot be resolved
[ERROR] Line 51: JSONObject cannot be resolved to a type
You need sources for every library you use for GWT to compile it to JS.
As a general advice, if you use features libGDX provides itself, you should not use third libs to avoid such problems. Use the built-in json parser.

Inconsistency with lib vendor/markbaker

I am using Yii2 and after updating the framework (composer update), the following error appeared:
Parse error: syntax error, unexpected ‘.’, expecting ‘&’ or variable
in vendor/markbaker\complex\classes\src\operations\add.php on line 18
Does anyone know what this is about?
The vendor dependency markbaker/complex that throws this syntax error simply requires php 5.6
you need to either update your environment or try an older version of that library

error while loading DefaultFormats, Scala signature DefaultFormats has wrong version

I am trying to parse json using lift-json. I am following this link: http://alvinalexander.com/scala/scala-json-array-parser-parsing-example-lift-json. I am encountering the following error:
error while loading DefaultFormats, Scala signature DefaultFormats has wrong version
[error] expected: 5.0
[error] found: 4.1 in DefaultFormats.class
How do I get rid of it?
This error appear due to using wrong version of lift-json. Use the correct version compatible with Scala version. The following dependency fixed the issue due to compatible version with Scala 2.11
<dependency>
<groupId>net.liftweb</groupId>
<artifactId>lift-json_2.11</artifactId>
<version>3.0.1</version>
</dependency>
I hope this helps anyone gets the same issue in the future.

Ceylon 1.2 Binary Compatibility

I tried to compile a source with Ceylon compiler version 1.2 that I previously compiled successfully with Ceylon compiler version 1.1 and I get the following error messages:
source/com/example/helloworld/module.ceylon:2: error: version '1.1.0' of module 'ceylon.net' was compiled by an incompatible version of the compiler (binary version 7.0 of module is not compatible with binary version 8.0 of this compiler)
import ceylon.net "1.1.0" ;
^
source/com/example/helloworld/module.ceylon:2: error: version '1.1.0' of module 'ceylon.collection' was compiled by an incompatible version of the compiler (binary version 7.0 of module is not compatible with binary version 8.0 of this compiler)
import ceylon.net "1.1.0" ;
^
source/com/example/helloworld/module.ceylon:2: error: version '1.1.0' of module 'ceylon.io' was compiled by an incompatible version of the compiler (binary version 7.0 of module is not compatible with binary version 8.0 of this compiler)
import ceylon.net "1.1.0" ;
^
source/com/example/helloworld/module.ceylon:2: error: version '1.1.0' of module 'ceylon.file' was compiled by an incompatible version of the compiler (binary version 7.0 of module is not compatible with binary version 8.0 of this compiler)
import ceylon.net "1.1.0" ;
I suppose that " ... binary version 8.0 ... " in the error message refers to the Java version.
In both attempts to compile (first with Ceylon 1.1, second with 1.2) I used Java version 8 and I dont want to change that back to 7.
Does it help to compile the Ceylon SDK with Java version 8? How can I do that separately from the entire Ceylon distribution?
How can I import the sources of Ceylon SDK into my project and compile it together with my project?
The binary versions in the error message refer to the Ceylon binary versions, which I guess by unfortunate coincidence, happen to match current JVM versions.
Ceylon is compatible with both JVM 7 and JVM 8, but Ceylon 1.2.0 programs must use Ceylon 1.2.0 modules; binary compatibility with Ceylon 1.1.0 was not maintained.
The solution here is to simply change the import to import ceylon.net "1.2.0";.
No, that’s actually the binary version of Ceylon, unrelated to Java. Ceylon 1.1 was binary version 7, and Ceylon 1.2 is binary version 8. Unfortunately, we weren’t able to provide binary compatibility between these releases.
You’ll have to use the 1.2.0 SDK modules with Ceylon 1.2.