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.

Error in v 1.7.3.1

See original GitHub issue
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/pierovbg/.venvs/actors/lib/python3.3/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
    utility.execute()
  File "/home/pierovbg/.venvs/actors/lib/python3.3/site-packages/django/core/management/__init__.py", line 377, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/pierovbg/.venvs/actors/lib/python3.3/site-packages/django/core/management/base.py", line 288, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/home/pierovbg/.venvs/actors/lib/python3.3/site-packages/django/core/management/base.py", line 338, in execute
    output = self.handle(*args, **options)
  File "/home/pierovbg/workspace/crm-actors/actors/presentation/cli/management/commands/convert_profiles.py", line 18, in handle
    get_external_updates_processor().process_external_updates(converter)
  File "/home/pierovbg/workspace/crm-actors/actors/domain/external_updates/processor.py", line 29, in process_external_updates
    new_updates = self._repository.get_updates_after(last_processed)
  File "/home/pierovbg/workspace/crm-actors/actors/persistence/external_updates/update_repository.py", line 57, in get_updates_after
    return map(ExternalAccountUpdateDescription.fill_from_object, updates)
  File "/home/pierovbg/.venvs/actors/lib/python3.3/site-packages/django/db/models/query.py", line 141, in __iter__
    self._fetch_all()
  File "/home/pierovbg/.venvs/actors/lib/python3.3/site-packages/django/db/models/query.py", line 966, in _fetch_all
    self._result_cache = list(self.iterator())
  File "/home/pierovbg/.venvs/actors/lib/python3.3/site-packages/django/db/models/query.py", line 265, in iterator
    for row in compiler.results_iter():
  File "/home/pierovbg/.venvs/actors/lib/python3.3/site-packages/django/db/models/sql/compiler.py", line 700, in results_iter
    for rows in self.execute_sql(MULTI):
  File "/home/pierovbg/.venvs/actors/lib/python3.3/site-packages/django/db/models/sql/compiler.py", line 1156, in cursor_iter
    sentinel):
  File "/home/pierovbg/.venvs/actors/lib/python3.3/site-packages/django/db/models/sql/compiler.py", line 1155, in <lambda>
    for rows in iter((lambda: cursor.fetchmany(GET_ITERATOR_CHUNK_SIZE)),
  File "/home/pierovbg/.venvs/actors/lib/python3.3/site-packages/django/db/utils.py", line 101, in inner
    return func(*args, **kwargs)
  File "/home/pierovbg/.venvs/actors/lib/python3.3/site-packages/pytds/__init__.py", line 749, in fetchmany
    row = self.fetchone()
  File "/home/pierovbg/.venvs/actors/lib/python3.3/site-packages/pytds/__init__.py", line 734, in fetchone
    row = self._session.fetchone()
  File "/home/pierovbg/.venvs/actors/lib/python3.3/site-packages/pytds/tds.py", line 3428, in fetchone
    if not self.next_row():
  File "/home/pierovbg/.venvs/actors/lib/python3.3/site-packages/pytds/tds.py", line 3439, in next_row
    self.process_token(marker)
  File "/home/pierovbg/.venvs/actors/lib/python3.3/site-packages/pytds/tds.py", line 3390, in process_token
    return handler(self)
  File "/home/pierovbg/.venvs/actors/lib/python3.3/site-packages/pytds/tds.py", line 3500, in <lambda>
    TDS_ROW_TOKEN: lambda self: self.process_row(),
  File "/home/pierovbg/.venvs/actors/lib/python3.3/site-packages/pytds/tds.py", line 2595, in process_row
    curcol.value = self.row[i] = curcol.type.read(r)
  File "/home/pierovbg/.venvs/actors/lib/python3.3/site-packages/pytds/tds.py", line 929, in read
    return r.get_int()
  File "/home/pierovbg/.venvs/actors/lib/python3.3/site-packages/pytds/tds.py", line 623, in get_int
    return self.unpack(_int_le)[0]
  File "/home/pierovbg/.venvs/actors/lib/python3.3/site-packages/pytds/tds.py", line 611, in unpack
    return struct.unpack_from(buf, offset)
struct.error: unpack_from requires a buffer of at least 4 bytes

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:19 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
petrprikrylcommented, May 11, 2017

+1 facing same error on actual latest version 1.8.2

  File "/home/petr/olc/python/django/metrum/virtual/local/lib/python2.7/site-packages/django/db/models/query.py", line 62, in __iter__
    for row in compiler.results_iter(results):
  File "/home/petr/olc/python/django/metrum/virtual/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 831, in results_iter
    for rows in results:
  File "/home/petr/olc/python/django/metrum/virtual/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 1276, in cursor_iter
    sentinel):
  File "/home/petr/olc/python/django/metrum/virtual/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 1275, in <lambda>
    for rows in iter((lambda: cursor.fetchmany(GET_ITERATOR_CHUNK_SIZE)),
  File "/home/petr/olc/python/django/metrum/virtual/local/lib/python2.7/site-packages/django/db/utils.py", line 101, in inner
    return func(*args, **kwargs)
  File "/home/petr/olc/python/django/metrum/virtual/local/lib/python2.7/site-packages/pytds/__init__.py", line 759, in fetchmany
    row = self.fetchone()
  File "/home/petr/olc/python/django/metrum/virtual/local/lib/python2.7/site-packages/pytds/__init__.py", line 744, in fetchone
    row = self._session.fetchone()
  File "/home/petr/olc/python/django/metrum/virtual/local/lib/python2.7/site-packages/pytds/tds.py", line 3780, in fetchone
    if not self.next_row():
  File "/home/petr/olc/python/django/metrum/virtual/local/lib/python2.7/site-packages/pytds/tds.py", line 3791, in next_row
    self.process_token(marker)
  File "/home/petr/olc/python/django/metrum/virtual/local/lib/python2.7/site-packages/pytds/tds.py", line 3739, in process_token
    return handler(self)
  File "/home/petr/olc/python/django/metrum/virtual/local/lib/python2.7/site-packages/pytds/tds.py", line 3858, in <lambda>
    TDS_NBC_ROW_TOKEN: lambda self: self.process_nbcrow(),
  File "/home/petr/olc/python/django/metrum/virtual/local/lib/python2.7/site-packages/pytds/tds.py", line 2855, in process_nbcrow
    value = curcol.type.read(r)
  File "/home/petr/olc/python/django/metrum/virtual/local/lib/python2.7/site-packages/pytds/tds.py", line 1207, in read
    return self.subtypes[size].read(r)
  File "/home/petr/olc/python/django/metrum/virtual/local/lib/python2.7/site-packages/pytds/tds.py", line 1270, in read
    return r.get_int()
  File "/home/petr/olc/python/django/metrum/virtual/local/lib/python2.7/site-packages/pytds/tds.py", line 799, in get_int
    return self.unpack(_int_le)[0]
  File "/home/petr/olc/python/django/metrum/virtual/local/lib/python2.7/site-packages/pytds/tds.py", line 783, in unpack
    return struct.unpack_from(buf, offset)
error: unpack_from requires a buffer of at least 4 bytes
0reactions
bylsmadcommented, Feb 21, 2017

I am also able to reproduce this bug with master branch downloaded last week

workaround: on pytds.connect() use login_timeout = 1200 Appears to eliminate the issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

RIDE latest version 1.7.3.1 is not compatible with Python 3.8
After I upgraded from Python 2.7 to 3.7, here is the error I am getting on cmd when hitting "ride.py". With python 2.7...
Read more >
Getting grid related issue after successful installation ride and ...
I previously installed the ride version of 1.7.3.1 ,as grid size was ... i am getting below error in command prompt after opening...
Read more >
Current version not available in install script 1.7.3.1 -> 1.7.4
I'm upgrading from 1.7.3.1 to 1.7.4 having unpacked 1.7.4 and following the installation instruction: "5. Go to <your_feng>/public/upgrade in your browser ...
Read more >
When run test case with ride get error"Robot Framework ...
Upon selection of execution profile as robot 3.1, it is still showing the same error message as, 'Robot Framework installation not found.
Read more >
Ride - not starting anymore - Robot Framework
Hi, when I try to run ride.py I suddenly get this error message ( no changes were made on the win7 system ......
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