Giter VIP home page Giter VIP logo

Comments (14)

c-okelly avatar c-okelly commented on June 12, 2024 1

I believe this is solved by a0f5e9c

I have made sure to test it locally, on a Linux Vm and added automated testing to catch breaking changes like this in futures.

I have disabled ankiq as is was not properly testing and I don't know if it was working.

Let me know if you still have issues

from org_to_anki.

sandersantema avatar sandersantema commented on June 12, 2024 1

Succes! But only when using pip3 install ./ in the org_to_anki repo, this might be caused by python3 setup.py install not cleaning up leftovers from previous installation attempts properly if I were to take a guess.

from org_to_anki.

sandersantema avatar sandersantema commented on June 12, 2024

I've tried the following but usage still fails:

cd dist
python3 -m easy_install org_to_anki-0.1-py3.7.egg

Which gives the following output:

Password:
Processing org_to_anki-0.1-py3.7.egg
removing '/usr/local/lib/python3.7/site-packages/org_to_anki-0.1-py3.7.egg' (and everything under it)
creating /usr/local/lib/python3.7/site-packages/org_to_anki-0.1-py3.7.egg
Extracting org_to_anki-0.1-py3.7.egg to /usr/local/lib/python3.7/site-packages
org-to-anki 0.1 is already the active version in easy-install.pth
Installing ankiq script to /usr/local/bin
Installing org_to_anki script to /usr/local/bin

Installed /usr/local/lib/python3.7/site-packages/org_to_anki-0.1-py3.7.egg
Processing dependencies for org-to-anki==0.1
Finished processing dependencies for org-to-anki==0.1

And then again fails with the following output:

Traceback (most recent call last):
  File "/usr/local/bin/org_to_anki", line 11, in <module>
    load_entry_point('org-to-anki==0.1', 'console_scripts', 'org_to_anki')()
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2793, in load_entry_point
    return ep.load()
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2411, in load
    return self.resolve()
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2417, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
ModuleNotFoundError: No module named 'org_to_anki'

from org_to_anki.

c-okelly avatar c-okelly commented on June 12, 2024

I assume you ran python3 setup.py install to install if the first time?

What command are you running to get the particular error? Are you trying to run it on the command line or are you trying to import the library in a script?

from org_to_anki.

sandersantema avatar sandersantema commented on June 12, 2024

I indeed ran python3 setup.py install to install it. I tried running anki_to_org and ankiq which both return the same error. I troed running it on the commandline.

from org_to_anki.

sandersantema avatar sandersantema commented on June 12, 2024

Pip packages install perfectly fine, if it’s not to much asked maybe that would be a better way to distribute anki_to_org? (Although that might be a lot of work, I’m not really familiar with pip)

from org_to_anki.

c-okelly avatar c-okelly commented on June 12, 2024

It probably is a better way tbh but I have just not got around to doing it yet. I'm also running on OSX and installing as it suggested in the documentation and can't seem to reproduce your error.

My best guess would possibly be that you used a different version of Python to install it to the one the is running when you are on the command line. Thought thb I'm just guessing.

Also how did you install python3?
What do you get when you run the following?
which python3
python3 -V

from org_to_anki.

c-okelly avatar c-okelly commented on June 12, 2024

I will distributed to pip at some point but a lot of the project is still quite rough and had not got around to it yet

from org_to_anki.

c-okelly avatar c-okelly commented on June 12, 2024

The Anki addon does appear to be working for most users if you want to try that instead? IT does support org files of course.

https://ankiweb.net/shared/info/1029306148

from org_to_anki.

sandersantema avatar sandersantema commented on June 12, 2024

which python returns the following:
/usr/local/bin/python3

python3 -V returns the following:
Python 3.7.3

I've fiddled around a bit, updating packages, changing my path etc but unfortunately to no avail.

The Anki package seems to work, didn't know it existed, thank you!

I'd still like to solve this problem so I can use anki_to_org in a script, so if you need anymore information please ask. Although it might not have anything to do with org_to_anki but rather with my local python setup :(

Anyways, thanks for the nice plugin.

from org_to_anki.

c-okelly avatar c-okelly commented on June 12, 2024

I'm not really sure. I will try and test if on a few other environments and see if I can replicate the issue. I would still be inclined to think it is an issue with different versions of Python. Especially since it seems the command is added to your path but then fails to find the module.

My other suggestion would be to possibly uninstall python3 and try reinstall it with a package manager such a homebrew and running brew doctor and see if that fixes anything? Though if you are already using brew i'm really not sure then

from org_to_anki.

c-okelly avatar c-okelly commented on June 12, 2024

Ok issue is def on my end was able to replicate it on a virtual machine. Am looking into it

from org_to_anki.

c-okelly avatar c-okelly commented on June 12, 2024

Maybe try pip3 uninstall org_to_anki ?

from org_to_anki.

c-okelly avatar c-okelly commented on June 12, 2024

Glad to hear it is working. Hopefully testing in will capture a break like this in future. I had not thought to test it but it is done now!

from org_to_anki.

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.