Comments (13)
Okay, I'm just going to bundle everything.
from chinese-support-redux.
That will only work if you have the modules installed on your system. Bundling just means I'll package them up with the add-on so there's no outside dependency.
from chinese-support-redux.
Thanks for your help with this one. The updated __init__.py
got lost in a different branch. I've tested on Windows. It should work now.
from chinese-support-redux.
Hmmm, are you sure? urllib3
is a dependency of requests
which is bundled with Anki. Are you on Windows? Can you do this for me:
- Open Anki with addons disabled (hold down
Shift
while it's starting) - Open the console (
Ctrl+Shift+;
) - Paste this in the top box :
for top in sorted(set([m.split('.')[0] for m in modules])):
print(top)
- Press
Ctrl+Enter
- Post the list of modules here for me
from chinese-support-redux.
Yes, I am on Windows. And I just read about the REPL in Anki on the addon dev page because I was curious 😄.
>>> for top in sorted(set([m.split('.')[0] for m in modules])):
... print(top)
Traceback (most recent call last):
File "aqt\main.py", line 1174, in onDebugRet
File "<string>", line 1, in <module>
NameError: name 'modules' is not defined
from chinese-support-redux.
Sorry, I'm having a sloppy day. It needs to be:
from sys import modules
for top in sorted(set([m.split('.')[0] for m in modules])):
print(top)
from chinese-support-redux.
I can see only urllib no urllib3.
PyQt5
__future__
__main__
_ast
_bisect
_blake2
_bootlocale
_bz2
_codecs
_collections
_collections_abc
_compat_pickle
_compression
_ctypes
_datetime
_elementtree
_frozen_importlib
_frozen_importlib_external
_functools
_hashlib
_heapq
_imp
_io
_json
_locale
_lzma
_markupbase
_opcode
_operator
_pickle
_portaudio
_random
_sha3
_signal
_socket
_sqlite3
_sre
_ssl
_stat
_string
_struct
_thread
_warnings
_weakref
_weakrefset
_winapi
abc
anki
aqt
argparse
ast
atexit
audioop
base64
binascii
bisect
bs4
builtins
bz2
calendar
cgi
chunk
codecs
collections
contextlib
copy
copyreg
ctypes
datetime
decorator
difflib
dis
distutils
email
encodings
enum
errno
faulthandler
fnmatch
functools
gc
genericpath
getpass
gettext
gzip
hashlib
heapq
hmac
html
http
imp
importlib
inspect
io
ipaddress
itertools
json
keyword
linecache
locale
logging
lzma
markdown
marshal
math
mimetypes
msvcrt
netrc
nt
ntpath
nturl2path
opcode
operator
optparse
os
pickle
platform
posixpath
pprint
pyaudio
pyexpat
pyimod01_os_path
pyimod02_archive
pyimod03_importers
pythoncom
pywintypes
queue
quopri
random
re
reprlib
requests
select
selectors
send2trash
shlex
shutil
signal
sip
socket
socketserver
sqlite3
sre_compile
sre_constants
sre_parse
ssl
stat
string
stringprep
struct
subprocess
sys
tempfile
textwrap
threading
time
token
tokenize
traceback
types
unicodedata
urllib
uu
uuid
warnings
wave
weakref
win32api
win32com
win32file
win32pipe
winerror
winreg
xml
zipfile
zipimport
zlib
from chinese-support-redux.
Okay, I'm just going to bundle everything.
Is bundling as easy as changing the import statements as described here on reddit?
from chinese-support-redux.
Are you able to give the update a try? Download https://ufile.io/b89ef, make a new folder in your addons21
folder and drop all the files in there
from chinese-support-redux.
from chinese-support-redux.
@luoliyan Shouldn't there be a file called urllib3.py in the folder? I couldn't find one. In the six module folder we have a file six.py as well and this can be imported.
from chinese-support-redux.
from chinese-support-redux.
Just wanted to leave another "Thank you!" here 😄.
from chinese-support-redux.
Related Issues (20)
- Chinese Redux problem (maybe cantonese related) HOT 3
- Cantonese pinyin does not work HOT 3
- Option to reverse cards HOT 1
- Meaning field isn't populating HOT 5
- Crash every second time fields are automatically filled due to audio
- Ruby doesn't separate vowel followed by n- initial properly
- Silhouette field doesn't fill HOT 2
- (fully) Colorize and make ruby pinyin for phrases (long words) HOT 1
- Bopomofo loading not correct HOT 1
- Colouring doesn't work
- sound not working, mp3 file has bug HOT 18
- On Windows 11 Redux don't add the fields with a new Chinese word HOT 3
- Can't click 汉字 button
- About punctuation and symbols HOT 4
- addons21\1128979221\edit.py:86:model is deprecated: please use 'note_type'
- Not getting audio clips while trying to use Google Mandarin speech engine HOT 6
- Create Reverse Cards HOT 2
- Color field won't fill correctly in another note type HOT 2
- Support Pinyin tone numbers as well as accent marks HOT 2
- Clicking on 汉字 doesn't activate the pluggin HOT 2
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 chinese-support-redux.