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.

Issue about "Can't perform this operation for unregistered loader type"

See original GitHub issue

My script runs correctly and output what I wanted. But I packed my python scripts to exe file, it raised “Can’t perform this operation for unregistered loader type” when I run the exe file.

my nuitka command: python -m nuitka --mingw64 --standalone --show-progress --recurse-all --enable-plugin=numpy --include-package=openpyxl --include-package=markupsafe --include-package=jinja2 --follow-imports --output-dir=exeFiles mytest.py

my envirionmnet: Windows 7 I installed all the packages(nuitka, jinja2,…) by pip

python -m nuitka --version 0.6.8.4 Python: 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Executable: C:\Program Files (x86)\Python36-32\python.exe OS: Windows Arch: x86

my source code: #===============mytest.py=========================

import pandas as pd
import numpy as np



def highlight(df, color = "yellow"):

    attr = 'background-color: {}'.format(color)
    df_bool = pd.DataFrame(df.apply(lambda x: [True if x.iloc[0] < v else False for v in x],axis=1).apply(pd.Series),
                      index=df.index)
    df_bool.columns =df.columns
    return pd.DataFrame(np.where(df_bool, attr, ""),
                       index= df.index, columns=df.columns)
                       
if __name__ == "__main__":
    print('writing....')
    dict = {'A': [1, 1, 1, 1, 1], 'B':[2,1,2,1,2], 'C':[1,2,1,2,1]}
    df = pd.DataFrame(dict)
    try:
        df.style. \
            apply(highlight, axis=None).\
            to_excel("teststyled.xlsx", engine="openpyxl")
        print('Done!')
    except Exception as e:
        print('write error')
        print(str(e))

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:50 (45 by maintainers)

github_iconTop GitHub Comments

1reaction
kayhayencommented, Nov 26, 2022

There is also command line options for including data files by directory, by pattern, etc. doesn’t have to Yaml for this, only DLLs have no options.

1reaction
kayhayencommented, Aug 2, 2022

Your question regarding caching @fleimgruber currently I am not aware of any issues that are caused by caching, I never disable them myself and try to work with them being on.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't perform this operation for unregistered loader type ...
In the prompt, type python setup.py build If your script is error free, then there will be no problem on creating application. Check...
Read more >
How to resolve 'Can't perform this operation for unregistered ...
Solution. The issue is that your tests directory (and possibly any subdirectories) is not a Python module.
Read more >
"Can't perform operation for unregistered loader type" error
I've created a Game using PyGame and made an executable File using cx_Freeze. The Game works fine when its run from the Python...
Read more >
Can't perform this operation for unregistered loader type'.
I am trying to turn my game into an executable using cx_Freeze. When I launch 'main.exe' the game launches as normal and I...
Read more >
jinja2: Can't perform this operation for unregistered loader type
jinja2: Can't perform this operation for unregistered loader type · # -*- coding: utf-8 -*- · from jinja2 import Environment, PackageLoader ...
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