Git Product home page Git Product logo

Comments (12)

kayhayen avatar kayhayen commented on May 12, 2024 2

As for advice to not use recurse directory, next release has "--include-package" that does work on package names.

from nuitka.

kayhayen avatar kayhayen commented on May 12, 2024

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.

kayhayen avatar kayhayen commented on May 12, 2024

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.

kayhayen avatar kayhayen commented on May 12, 2024

Ok, my Anaconda skills are too low. I need to do a conda install tensorflow it seems.

from nuitka.

kayhayen avatar kayhayen commented on May 12, 2024

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.

pratikshaandhare avatar pratikshaandhare commented on May 12, 2024

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

nuitkaerror

from nuitka.

kayhayen avatar kayhayen commented on May 12, 2024

@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.

kayhayen avatar kayhayen commented on May 12, 2024

@swatinair123 No feedback?

from nuitka.

kayhayen avatar kayhayen commented on May 12, 2024

Lack and feedback, plus stink of old bug, closing this.

from nuitka.

cooperdk avatar cooperdk commented on May 12, 2024

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.

kayhayen avatar kayhayen commented on May 12, 2024

@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.

CoderReece avatar CoderReece commented on May 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.