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.

Infinite optimization loop with cv2/skimage

See original GitHub issue

Let’s consider sample program and nuitka call for compilation: https://gist.github.com/belonesox/271385f97871d0ad3649c3fded368e1c

This results to something similar https://github.com/Nuitka/Nuitka/issues/783 — infinite optimization loop with “Loop has incomplete variable types after”.

nuitkatest) [stas@stasbox64gb recursion]$ python -m nuitka --version
0.6.10rc9
Python: 3.8.5 (default, Aug 12 2020, 00:00:00) 
Executable: /nuitkatest/bin/python
OS: Linux
Arch: x86_64

Actually, nuitka from develop branch commit 10612c9745fa124efdf22c469bc08947cb982a33

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:21 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
kayhayencommented, Nov 25, 2020

As an aside, pipenv is in my mind the best tool for the task, rather than virtualenv. These are movable, and updateable in a controlled way, and you can keep the state under version control with hashes. Check it out: https://pypi.org/project/pipenv/

Were I ever to create a tool for automatic bug reporting, I would make it create a pipenv environment definition for it.

0reactions
belonesoxcommented, Dec 13, 2020

Sorry, there is no looping but there is very long generation — usually it takes less than 20 minutes for the sample, now I takes couple of hours before I seen “light at the end of the tunnel” (still compiling…)

Nuitka-Progress:INFO: Optimizing module 'report._py3report', 0 more modules to go after that.
Nuitka:INFO: Completed Python level compilation and optimization.
Nuitka:INFO: Generating C source code for backend compiler.
Nuitka:INFO: Total memory usage before generating C code: 1.61 GB (1731018752 bytes):

Update: May be something wrong in my setup (running my other tests on different setups still not showed big increase of compiling time).

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to change python script that it continue to loop and ...
Just need to figure out how to loop import os import glob import numpy as np import cv2 os.chdir('C:/Users/Main/Videos/PUBG/') newest ...
Read more >
Fast, optimized 'for' pixel loops with OpenCV and Python
Learn how construct fast and efficient 'for' loops and loop over all pixels in an image using Python, Cython, and OpenCV.
Read more >
[C++/OpenCV] Using waitKey in a while loop that uses ...
I'm doing image processing and I'd like to be able to adjust certain values with key presses. Meanwhile, the while loop also uses...
Read more >
Background Removal with Python
OpenCV provides a couple of “out-of-the-box” solutions; however, ... An infinite loop is started by reading the frames from the camera.
Read more >
Module: segmentation — skimage v0.19.2 docs
Maximum iterations to optimize snake shape. ... The algorithm solves the diffusion equation at infinite times for sources placed on markers of each...
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