Giter Site home page Giter Site logo

Mechanical Soup Error about fb2cal HOT 20 OPEN

batirch avatar batirch commented on May 26, 2024
Mechanical Soup Error

from fb2cal.

Comments (20)

jamestamplin avatar jamestamplin commented on May 26, 2024 2

I also ran up against this error.

Fresh install of MacOS 10.15.7 Catalina
Fresh install of Homebrew / Python / Pip
Checked that I was running Python 3.9

I ran pipevn run python -m fb2cal and hit the ModuleNotFoundError: No module named 'mechanicalsoup' error

I was able to get around this by running

pipenv install mechanicalsoup

Which then got past that error, but ended up with not finding the ics module, fixed that by running

pipenv install ics

...and Bob's your uncle, it worked.

Thanks for this great little script!

from fb2cal.

krullebolle avatar krullebolle commented on May 26, 2024 1

Hi,

I had the same issue on linux and windows, latest python3.
Was able to run the script, after manually installing the mechanicalsoup module with pip install mechanicalsoup and after that restarting the virtual environment.

Kind regards

from fb2cal.

jamestamplin avatar jamestamplin commented on May 26, 2024 1

from fb2cal.

nufrankz avatar nufrankz commented on May 26, 2024 1

I also ran up against this error.

Fresh install of MacOS 10.15.7 Catalina
Fresh install of Homebrew / Python / Pip
Checked that I was running Python 3.9

I ran pipevn run python -m fb2cal and hit the ModuleNotFoundError: No module named 'mechanicalsoup' error

I was able to get around this by running

pipenv install mechanicalsoup

Which then got past that error, but ended up with not finding the ics module, fixed that by running

pipenv install ics

...and Bob's your uncle, it worked.

Thanks for this great little script!

Confirming this on MacOSX Catalina 10.15.7, Python 2.7.16, PipEnv 2020.11.15, also, be sure to deactivate temporarily two-factor authentication on Facebook.

from fb2cal.

mobeigi avatar mobeigi commented on May 26, 2024

Hmm looks like it might be running with python 2 instead of python 3.6+?

Try:
pipenv run python3 /Users/.../Documents/git/fb2cal/src/fb2cal.py

from fb2cal.

mobeigi avatar mobeigi commented on May 26, 2024

Also are you sure you followed setup instructions correctly?
You have to run pipenv install first.

from fb2cal.

batirch avatar batirch commented on May 26, 2024

I have installed pipenv first. followed your instructions. tried running with python3

~ ...$ pipenv install
Installing dependencies from Pipfile.lock (db4242)…
  🐍   β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰ 0/0 β€” 00:00:00
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
(base) MacBook-Air-2:~ ...$ pipenv shell
Launching subshell in virtual environment…
bash-3.2$  . /Users/.../.local/share/virtualenvs/...-mPLkNOWd/bin/activate
(...) bash-3.2$ pipenv run python3 /Users/.../Documents/git/fb2cal/src/fb2cal.py
Traceback (most recent call last):
  File "/Users/.../Documents/git/fb2cal/src/fb2cal.py", line 25, in <module>
    import mechanicalsoup
ModuleNotFoundError: No module named 'mechanicalsoup'

``

from fb2cal.

mobeigi avatar mobeigi commented on May 26, 2024

You don't need to run pipenv shell, just pipenv run directly.
That might not fix it though.

from fb2cal.

batirch avatar batirch commented on May 26, 2024

Could it be because of installed folder?

(base) MacBook-Air-2:~ ...$ pip show MechanicalSoup
Name: MechanicalSoup
Version: 0.12.0
Summary: A Python library for automating interaction with websites
Home-page: https://mechanicalsoup.readthedocs.io/
Author: UNKNOWN
Author-email: UNKNOWN
License: MIT
Location: /Users/.../opt/anaconda3/lib/python3.7/site-packages
Requires: beautifulsoup4, six, requests, lxml

``

from fb2cal.

filmgeek5000 avatar filmgeek5000 commented on May 26, 2024

Hello, i've had the same exact issue. Any update?

from fb2cal.

mobeigi avatar mobeigi commented on May 26, 2024

@filmgeek5000 Are you also on a Mac? I am not able to reproduce the problem myself.

from fb2cal.

filmgeek5000 avatar filmgeek5000 commented on May 26, 2024

Yes I am on a Mac Mini running High Sierra

from fb2cal.

mobeigi avatar mobeigi commented on May 26, 2024

@filmgeek5000 I can't reproduce it myself on a Mac system so its a little hard to fix.

Are you using the latest version of the files?
Are you following the steps as listed in the readme?

from fb2cal.

filmgeek5000 avatar filmgeek5000 commented on May 26, 2024

yes

from fb2cal.

mfvo avatar mfvo commented on May 26, 2024

I have the same issue :(

from fb2cal.

mobeigi avatar mobeigi commented on May 26, 2024

@mfvo Are you able to provide any more information about your system/environment? I cannot reproduce this issue myself so its hard to fix.

from fb2cal.

mfvo avatar mfvo commented on May 26, 2024

@mfvo Are you able to provide any more information about your system/environment? I cannot reproduce this issue myself so its hard to fix.

I have the last mac os software, I mean 10.15.6 and running Python 3.7

from fb2cal.

viktorcsimma avatar viktorcsimma commented on May 26, 2024

Try to change the active directory to the directory of the package, that helped me (I downloaded it into a zip file and then extracted it).

from fb2cal.

mobeigi avatar mobeigi commented on May 26, 2024

@jamestamplin

Did you run pipenv install first?
That should have installed mechanicalsoup and ics based on the requirements.txt file.

I have a Mac but can't reproduce this on mine.
Maybe I'm misusing pipenv or its behaving differently on macos. πŸ€”

from fb2cal.

igauravbhatnagar avatar igauravbhatnagar commented on May 26, 2024

Same issue on windows 11

image

Even the tests fail.

from fb2cal.

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.