Comments (14)
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Ok issue is def on my end was able to replicate it on a virtual machine. Am looking into it
from org_to_anki.
Maybe try pip3 uninstall org_to_anki
?
from org_to_anki.
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)
- does not support Arabic HOT 5
- Support sync of text files to Anki deck - edits / deletions / new cards HOT 3
- What is the second script? HOT 2
- Auto cloze from a wordlist.txt HOT 3
- How to add an image to Extra field of Cloze? HOT 7
- Support image inline for Emacs
- Support for .pdf not available as answer, rather than only .png (image) HOT 1
- Support for .html not available as answer, rather than only .png HOT 6
- Non-Technical Help Request HOT 10
- Remove usage references to Word in the readme HOT 1
- Investigate issues that causes missing html in bs4 4.9.1
- Lists to Anki issue HOT 3
- long lines in the top level of bullets are truncated before they appear on "Front" in Anki HOT 6
- HTML elements not rendered correctly in question statements HOT 5
- The error was 'list' object has no attribute 'contents' HOT 2
- The error was “list” object has no attribute “contents”
- The error was Line incorrectly processed..
- utf-8' codec can't decode byte 0xca in position 2265: invalid continuation byte
- false-positive alert in the report to the CLI for .org with UUID
- feature suggest, extending org-based Anki import of code snippets
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from org_to_anki.