Giter Site home page Giter Site logo

import error about watermark HOT 12 CLOSED

rasbt avatar rasbt commented on July 23, 2024
import error

from watermark.

Comments (12)

rasbt avatar rasbt commented on July 23, 2024

Thanks for the note, and sorry about the trouble. I will look into it! Quick question, are you using Python 2.x? I think we didn't check for Python 2.x when we replaced the old %install_ext convention and converted watermark into a regular python package a few weeks ago. I should add some continuous integration checks to avoid this problem in future!

from watermark.

rasbt avatar rasbt commented on July 23, 2024

Alright, there was definitely an issue with importing it when using Python 2.x. I should be fixed now in v. 1.3.1 :)

from watermark.

jeanrjc avatar jeanrjc commented on July 23, 2024

Yes I have Python 2.7. Thanks !

from watermark.

robmarkcole avatar robmarkcole commented on July 23, 2024

Am seeing this issue with python 3.5 and version 1.4.0 installed via conda on Windows 7

from watermark.

rasbt avatar rasbt commented on July 23, 2024

How did you install watermark, via

pip install watermark 

?

from watermark.

robmarkcole avatar robmarkcole commented on July 23, 2024

https://anaconda.org/conda-forge/watermark

conda install -c conda-forge watermark

BTW no problems installing with this method on my Mac at home, appears to be restricted to windows perhaps

from watermark.

rasbt avatar rasbt commented on July 23, 2024

Hm, that's weird, because it passed the CI tests (incl the CircleCI for Windows) for 1.4.0 in the conda-forge watermark-feedstock. I will update it and see if there are any issues with 1.5.0 that could help with debugging this issue

from watermark.

rasbt avatar rasbt commented on July 23, 2024

We updated the version to 1.5 yesterday (conda-forge/watermark-feedstock#6). Currently, it does not seem to be up in Anaconda Cloud yet but hopefully it will be available shortly and solves the issue.

PS: Alternatively, I was thinking you may have an older version in your Python path that was causing this issue. Maybe try to uninstall all watermark instances or so.

from watermark.

a19grey avatar a19grey commented on July 23, 2024

I had an issue where "import imwatermark" did not work (no module found) but then "import imWatermark" with capital W at least gave a new error "cannot import"

image

from watermark.

a19grey avatar a19grey commented on July 23, 2024

Realized I should post my python version. Also I'm in a virtual environment could that be related?

image

from watermark.

rasbt avatar rasbt commented on July 23, 2024

imWatermark is maybe something different. For this package here, you import it as

from watermark import watermark

from watermark.

a19grey avatar a19grey commented on July 23, 2024

from watermark.

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.