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.

package folders and subfolders get TypeError: 'NoneType' object is not callable

See original GitHub issue

nuitka --version 0.7.7 Commercial: None Python: 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:18:16) [MSC v.1928 64 bit (AMD64)] Flavor: Unknown Executable: D:\software\python\python.exe OS: Windows Arch: x86_64 WindowsRelease: 10

Hi, i want to package all my .py files and folders, folders and subfolders, my directory structure like :

│ setup.py ├─dep │ │ data.py │ ├─test_print │ │ │ print_test.py ├─model │ │ model.py │ │ │ ├─first │ │ │ first.py │ │ │
│ │ ├─sec │ │ │ │ sec.py

i use command like: nuitka --standalone --show-memory --show-progress --nofollow-imports --follow-import-to=dep,model --output-dir=out steup.py

but when i run setup.exe i get error: image

what can i do, thx~

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
EWilsencommented, Sep 21, 2022

fixed, subfolder need an empty init.py file.

0reactions
EWilsencommented, Sep 25, 2022

i know what you mean,but thanks a lot

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python NoneType object is not callable (beginner)
I faced the error "TypeError: 'NoneType' object is not callable " but for a different ... the complete path, as it was not...
Read more >
Python TypeError: 'nonetype' object is not callable Solution | CK
The Python TypeError: 'nonetype' object is not callable error is raised when you try to call a None value as if it were...
Read more >
Changelog — conan 1.56.0 documentation
Docs here; Fix: Raise a clear error if settings.compiler is not defined for ... package, one in the main CMakeLists.txt and the other...
Read more >
Exception Handling Python TypeError: 'NoneType' object is ...
Coding example for the question Exception Handling Python TypeError: 'NoneType' object is not callable.
Read more >
'NoneType' object is not callable #987 - microsoft/ptvsd - GitHub
So I did replace that folder with the git master and I still get the dreaded message. The weird thing is that it...
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