Coder Social home page Coder Social logo

Comments (6)

stxh avatar stxh commented on June 3, 2024 1

1, Modify setup.py line 32 'aiohttp>=2.2.5,<3', to 'aiohttp>=2.2.5,<4',
2, pip install --upgrade aiohttp

from twtxt.

la-ninpre avatar la-ninpre commented on June 3, 2024

same here on arch linux.

$ uname -sr
Linux 5.15.2-zen1-1-zen

$ which python
/usr/bin/python

$ /usr/bin/python -V
Python 3.9.7

from twtxt.

Obspogon avatar Obspogon commented on June 3, 2024
λ twtxt quickstart
Traceback (most recent call last):
  File "C:\Users\alico\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\alico\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\alico\AppData\Local\Programs\Python\Python310\Scripts\twtxt.exe\__main__.py", line 4, in <module>
  File "C:\Users\alico\AppData\Local\Programs\Python\Python310\lib\site-packages\twtxt\cli.py", line 29, in <module>
    from twtxt.twhttp import get_remote_tweets, get_remote_status
  File "C:\Users\alico\AppData\Local\Programs\Python\Python310\lib\site-packages\twtxt\twhttp.py", line 17, in <module>
    import aiohttp
  File "C:\Users\alico\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\__init__.py", line 6, in <module>
    from .client import *  # noqa
  File "C:\Users\alico\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\client.py", line 15, in <module>
    from . import connector as connector_mod
  File "C:\Users\alico\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\connector.py", line 12, in <module>
    from . import hdrs, helpers
  File "C:\Users\alico\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\helpers.py", line 742, in <module>
    class CeilTimeout(Timeout):
TypeError: function() argument 'code' must be code, not str

Error I got on Windows 10

from twtxt.

ioalex avatar ioalex commented on June 3, 2024

Also getting the same error as @dertuxmalwieder:

# pip install --user twtxt
$ twtxt quickstart
Traceback (most recent call last):
  File "/home/alex/.local/bin/twtxt", line 5, in <module>
    from twtxt.cli import main
  File "/home/alex/.local/lib/python3.10/site-packages/twtxt/cli.py", line 29, in <module>
    from twtxt.twhttp import get_remote_tweets, get_remote_status
  File "/home/alex/.local/lib/python3.10/site-packages/twtxt/twhttp.py", line 17, in <module>
    import aiohttp
  File "/home/alex/.local/lib/python3.10/site-packages/aiohttp/__init__.py", line 6, in <module>
    from .client import *  # noqa
  File "/home/alex/.local/lib/python3.10/site-packages/aiohttp/client.py", line 15, in <module>
    from . import connector as connector_mod
  File "/home/alex/.local/lib/python3.10/site-packages/aiohttp/connector.py", line 12, in <module>
    from . import hdrs, helpers
  File "/home/alex/.local/lib/python3.10/site-packages/aiohttp/helpers.py", line 742, in <module>
    class CeilTimeout(Timeout):
TypeError: function() argument 'code' must be code, not str

Environment:

$ uname -sr
Linux 5.17.1-arch1-1

$ which python3
/usr/sbin/python3

$ python3 -V
Python 3.10.4

from twtxt.

lambda2501 avatar lambda2501 commented on June 3, 2024

Same error !

Traceback (most recent call last):
  File "/home/truc/.local/bin/twtxt", line 5, in <module>
    from twtxt.cli import main
  File "/home/truc/.local/lib/python3.10/site-packages/twtxt/cli.py", line 29, in <module>
    from twtxt.twhttp import get_remote_tweets, get_remote_status
  File "/home/truc/.local/lib/python3.10/site-packages/twtxt/twhttp.py", line 17, in <module>
    import aiohttp
  File "/home/truc/.local/lib/python3.10/site-packages/aiohttp/__init__.py", line 6, in <module>
    from .client import *  # noqa
  File "/home/truc/.local/lib/python3.10/site-packages/aiohttp/client.py", line 15, in <module>
    from . import connector as connector_mod
  File "/home/truc/.local/lib/python3.10/site-packages/aiohttp/connector.py", line 12, in <module>
    from . import hdrs, helpers
  File "/home/truc/.local/lib/python3.10/site-packages/aiohttp/helpers.py", line 742, in <module>
    class CeilTimeout(Timeout):
TypeError: function() argument 'code' must be code, not str

Environment:

Linux 5.15.36_1
/bin/python3
Python 3.10.4

from twtxt.

Ferryistaken avatar Ferryistaken commented on June 3, 2024

Same on Fedora 36

Traceback (most recent call last):
  File "/home/ferry/.local/bin//twtxt", line 5, in <module>
    from twtxt.cli import main
  File "/home/ferry/.local/lib/python3.10/site-packages/twtxt/cli.py", line 29, in <module>
    from twtxt.twhttp import get_remote_tweets, get_remote_status
  File "/home/ferry/.local/lib/python3.10/site-packages/twtxt/twhttp.py", line 17, in <module>
    import aiohttp
  File "/home/ferry/.local/lib/python3.10/site-packages/aiohttp/__init__.py", line 6, in <module>
    from .client import *  # noqa
  File "/home/ferry/.local/lib/python3.10/site-packages/aiohttp/client.py", line 15, in <module>
    from . import connector as connector_mod
  File "/home/ferry/.local/lib/python3.10/site-packages/aiohttp/connector.py", line 12, in <module>
    from . import hdrs, helpers
  File "/home/ferry/.local/lib/python3.10/site-packages/aiohttp/helpers.py", line 742, in <module>
    class CeilTimeout(Timeout):
TypeError: function() argument 'code' must be code, not str

Environment:

Linux 5.19.9-200.fc36.x86_64 
Python 3.10.6

from twtxt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.