Comments (12)
As for advice to not use recurse directory, next release has "--include-package" that does work on package names.
from nuitka.
Do not use --recurse-directory that way, although it ought to work, but it requires that you do really get right what you are using. However, I can see from the traceback and your PATH that it ought to work.
Can you try calling Nuitka with "python -m nuitka" invocation from your Anaconda Python environment to make sure it isn't that.
I am assuming now there is a ".pth" file that gets in the way of things, or something like this. I will try and reproduce with current Anaconda. Unfortunately you gave no versions for Nuitka, nor Anaconda there. I assume the one included?
from nuitka.
Trying to reproduce this on an albeit older Anaconda2:
~/anaconda2/bin/python Mini.py Traceback (most recent call last):
File "Mini.py", line 1, in
import tensorflow
ImportError: No module named tensorflow
from nuitka.
Ok, my Anaconda skills are too low. I need to do a conda install tensorflow it seems.
from nuitka.
Well, recursing all of tensorflow clearly isn't possible, it includes "contrib" which is just massive amounts of code. I did however not get the assertion from the import code you did. I believe it may be an indication of you using an older Nuitka version. Please use latest by updating with "conda update nuitka" or so.
from nuitka.
Hi,
I am compiling the tensorflow code with Nuitka(version 0.5.28) with help of anaconda by using command "nuitka --recurse-all predict.py". I am using Python 3.5/3.6. The simple tensorflow code of printing something is working fine on Nuitka by above command. But when I compile some classification tensorflow code with Nuitka , I am getting the warning/error "scons: *** [predict.exe] the filename or extension is too long in nuitka" where the filename(predict.py) is short. I am saving .exe file into same folder of the code and .exe file is not generating.
Here is the screenshot of anaconda prompt. Can you please help me out?
Thanks and regards,
Pratiksha
from nuitka.
@pratikshaandhare This seems to be a Windows, scons, or compiler issue that I have no clue about.
If I had predict.py I would give it a shot here and see if it happens for me too. Have you tried to have ASCII filenames for the directory you compile in? That is about it.
from nuitka.
@swatinair123 No feedback?
from nuitka.
Lack and feedback, plus stink of old bug, closing this.
from nuitka.
It's not an old bug. I am seeing this too right now, current version of Nuitka and Python...
Except it's scons that returns this error, not predict.
from nuitka.
@cooperdk There is very little that Nuitka can do about this, needs a Scons improvement or so I am thinking. Please consult them.
from nuitka.
Has anyone figured out a work around for this? I'm having this issue when trying to use Nuitka with a discordpy script
from nuitka.
Related Issues (20)
- Unable to open project after converting QML file to pyd and compiling with UPX HOT 1
- Standalone: Standard library scan can crash with .git folders present HOT 5
- Error while compiling project with Yaml config file HOT 4
- RecursiveScriptModule' has no attribute '_construct HOT 1
- Virus total 29/72 antiviruses say my program compiled with Nuitka has virus HOT 5
- ModuleNotFoundError: No module named `scipy.special._cdflib` with `SciPy-1.13.0` HOT 4
- supoortability of @Slot(name="xxx") HOT 1
- Nuitka scanning for executables does not ignore directories of the same name (was locating GCC wrong) HOT 7
- get RuntimeError when use getattr() to get a non-exist attribute on asgiref.local.Local HOT 6
- Build imgui-bundle example successfully into excutable, but crashed at getting windows WndProc hook HOT 14
- compile standalone, incorrect __file__ variable HOT 7
- SetConsoleCtrlHandler not working with console HOT 7
- Nuitka-Scons: Non downloaded winlibs-gcc 'H:\MinGW\bin\gcc.exe' is being ignored, Nuitka is very dependent on the precise one. HOT 4
- Packaging mlc-llm HOT 3
- Are Nuitka compiled files actually binaries ? HOT 1
- Problem error ModuleNotFoundError: No module named 'sspilib.raw._text' HOT 9
- [ERROR] Failed to add resources to file 'myUiExample.exe' HOT 1
- ImportError: Could not find library zaber-motion-lib-windows-amd64.dll in bindings HOT 17
- ModuleNotFoundError: No module named 'aspose.threed.formats'; 'aspose.threed' is not a package HOT 15
- Using Nuitka to create a shared module? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuitka.