Code Monkey home page Code Monkey logo

Comments (6)

adeshpande3 avatar adeshpande3 commented on September 13, 2024

As mentioned here and here I'm thinking that this is some sort of issue with storing/loading a file (in this case wordsList.txt) when using Python 2 vs 3. I think it would be good to look at the pickle load documentation and see if there's some sort of special parameter that you need to pass in (If you look at that 2nd Stack Overflow post, it looks like adding an encoding parameter might fix it). Another option is to change line 82 in Word2Vec.py (which is where we use pickle to create wordList.txt) to something that would be compatible with Python 3.

from facebook-messenger-bot.

montaser85 avatar montaser85 commented on September 13, 2024

tried encoding parameters, "bytes","latin1","utf-8" but a new error is shown for these arguments.
which is : TypeError: load() got an unexpected keyword argument 'encoding'

I am new to python therefore finding no way to solve this issue. I am using your app.py as it is.Would you please help about this app.py?

from facebook-messenger-bot.

adeshpande3 avatar adeshpande3 commented on September 13, 2024

Okay, so you created the wordList.txt using your computer which means you used Python 3. However, from the error message, it seems like your Heroku app is using Python 2. You may need to change your requirements.txt file so that you use Python3 instead of 2. This link may have some useful info.

from facebook-messenger-bot.

montaser85 avatar montaser85 commented on September 13, 2024

Changing the python version in runtime.txt worked...thanks a lot. But unfortunately while deploying app.py a new error is shown :
1111fdgdf

from facebook-messenger-bot.

adeshpande3 avatar adeshpande3 commented on September 13, 2024

Looks like it's a Tensorflow error where it can't find the appropriate checkpoint file. Double check the directory where you have your saved models and make sure you see a file structure like this.

image

from facebook-messenger-bot.

YashviP avatar YashviP commented on September 13, 2024

i am also facing same issue , i have changed the version in the runtime.txt , but still when running app.py
it is showing me error no module named numpy
i have already installed all the dependencies

requirements.txt
runtime.txt
screenshot 10

from facebook-messenger-bot.

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.