question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Termux] TypeError: __init__() expects list, not 'list'

See original GitHub issue
~/downloads/kuroko $ ./kuroko
Kuroko 1.3.1 (Oct 18 2022 at 19:47:41) with clang 15.0.2
Type `help` for guidance, `paste()` to toggle automatic indentation, `license` for copyright information.
>>> list()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: __init__() expects list, not 'list'
>>> [1,2,3]
 => [1, 2, 3]
>>> range(5)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: __init__() expects range, not 'range'
>>> list(range(5))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: __init__() expects range, not 'range'
>>>
~/.../kuroko/test $ ../kuroko testThreading.krk
Starting 10 threads.
Traceback (most recent call last):
  File "testThreading.krk", line 33, in <module>
    let numbers    = list(range(totalCount))
TypeError: __init__() expects range, not 'range'

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14

github_iconTop GitHub Comments

1reaction
klangecommented, Oct 18, 2022

I do not support building for Android under the default configuration, primarily because I don’t have any modern Android devices available for testing and also because Android is very different from a typical Linux environment. Android is known to have issues related to thread-local storage, in particular, which is a critical requirement for Kuroko’s default Linux build setup. I suggest you try disabling thread support by passing KRK_DISABLE_THREADS=1 in your invocation to make - be sure to make clean first.

Could you also tell me what version of Android you are running? Some support for TLS has been available since Android 29, but I believe it still does not support the initial-exec model I attempt to use.

0reactions
anzhi0708commented, Oct 20, 2022

Very cool - this language deserves more attention, so does your OS 😉 thanks for your work

Read more comments on GitHub >

github_iconTop Results From Across the Web

'>=' not supported between instances of 'tuple' and 'int' · Issue ...
TypeError : '>=' not supported between instances of 'tuple' and ... in utils.iter_modules(directory): File "/data/data/com.termux/files/home/ ...
Read more >
expected string or bytes-like object. While i am trying to create ...
Somewhere the json data you are trying to insert into a datetime field on your model is not of correct type.
Read more >
Fixed Termux All Errors [100%] - Repository Under ... - YouTube
Hacking with Android https://www.youtube.com/playlist? list. ... WsCube Tech is not responsible for any misuse of the provided information.
Read more >
How to Update Python 2 to Python 3 - The Couchbase Blog
To get an idea on the key changes, here is the summary list of code changes needed from Python 2 to Python 3....
Read more >
PySimpleGUI
Run your program in the System Tray using WxPython. Or, change the import and run it on Qt with no other changes. Works...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found