![]() Please ask for any specific information that you want. So, I am sure that changing the directory is only a partial solution. ipynb file (moving it up to a higher directory) and yes, it found the module in question but the python kernel “hangs” at a certain point, whereas it did not in the. py file to a higher directory I was able to determine that it could “find” the module in question that it was “barfing” on before (that is a technical term). This, to me, is a clue but I can not determine what the clue means. I got it to work by moving the file in question to a higher level in the directory tree, than was mentioned. So, I can establish that the hardware on the development system is functional to this point. By running the py file I am now able to get most of the project to work. ![]() What I did was to open up a terminal and convert the ipynb file to a py file. When I attempt to run one from the browser, I have issues. ![]() Yes, I can see a number of jupyter notebooks. This project was supposed to run once I logged in via a browser after establishing a wireless link, which I have done. I can open up terminals on the development board.Īccording to the documentation for this project, which I got here In general, I am running ubuntu 16.04, but the jupyter notebook is running on a xilinx based development board. I would be happy to provide you information of a specific nature. My environment? Well, I am sure that you mean something very specific. The result of “print(python_version())” in the notebook is 3.6.5. Python2.7 is the default, which does not find the module. I do have to specifically invoke python3.6 in the terminal in order for python to find the module. inside the project folder only gets me the. ![]() So, but the requirements.txt generated by pipreqs using pipreqs. Also, predict uses pandas, scipy, numpy, pickle. If I had to guess I would think that it was an issue between the kernel that the notebook was executing and the version of python that the terminal was using. Now, in my project folder, I have app.py with the imports : import os from dotenv import loaddotenv from flask import Flask, request from predict import getrecs import urllib.request. ‘/usr/lib/python3/dist-packages/IPython/extensions’, ‘/usr/local/lib/python3.6/dist-packages’, Here is the result of sys.path in the jupyter notebook. Here is the result of “sys.path” in the terminal I would have expected that the terminal and the notebook would be looking in the same place, which, I believe they do. Yes, the terminal that I am referring to is from the jupyter dashboard. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |