Comments (6)
yes thanks. it's work.
from elm-docset.
The code was written for Python 2.7. I'll look into making it Python 3.x ready.
from elm-docset.
OK thanks, i am first using python the problem resolve if i add parenthesis on print. python 2.7 vs python 3
however, the error still occur in import requests even though i have installed the requests package from pip install.
I thinks if it is possible for you to include requirement.py to give right version of dependencies of another package.
(dash) C:\Users\user\Downloads\Project\elm-docset>generate.py
Traceback (most recent call last):
File "C:\Users\user\Downloads\Project\elm-docset\generate.py", line 7, in <module>
from cache import fetch
File "C:\Users\user\Downloads\Project\elm-docset\cache.py", line 2, in <module>
import requests
ImportError: No module named 'requests'
(dash) C:\Users\user\Downloads\Project\elm-docset>python
Python 3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 20:20:57) [MSC v.1600 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>> requests
<module 'requests' from 'E:\\Programs\\Python34\\Env\\dash\\lib\\site-packages\\requests\\__init__.py'>
>>>
this error because i only using generate.py
not python generate.py
😄
from elm-docset.
I have also added an requirements.txt
It should work now with both python2 and python3.
If you encounter any other problem, feel free to open another issue.
Thank you for reporting this.
from elm-docset.
Your welcome, i report some finding
def package_helper(this, (name, link))
: intemplate.py
i change to link
def package_helper(this, name_link):
(name, link) = name_link
- some print without parenthesis
upgrade_json.py
- change
string.lowercase
andstring.uppercase
tostring.ascii_lowercase
andstring.ascii_uppercase
ingenerate.py
(dash) C:\Users\user\Downloads\Project\elm-docset>python generate.py
Traceback (most recent call last):
File "generate.py", line 144, in <module>
valid_chars = "_'"+string.digits+string.lowercase+string.uppercase
AttributeError: 'module' object has no attribute 'lowercase'
- change
deprecated = [p for p in all_pkgs_dict.iteritems() if not p in new_pkgs]
todeprecated = [p for p in all_pkgs_dict.items() if not p in new_pkgs]
link - change
with open(opj(docpath, "index.html"), "w") as fo:
towith open(opj(docpath, "index.html"), "wb") as fo:
link - change 'fo.write(moduleTemplate(data))' to fo.write(str(moduleTemplate(data))) in
generate.py
- wrap map with list in
generate.py
likemap(lambda
link
After some stack overflowing. 😆
from elm-docset.
The above referenced 70dc102 commit solved all the problems related to this issue (as far as I can see), what you describe here references the previous version of the code. Please update to the latest version and try again. If you encounter any other problem, feel free to open a new issue. :)
from elm-docset.
Related Issues (17)
- Missing documentation HOT 3
- HTML tags in package summaries breaks the main docset index. HOT 1
- Zeal reports that documentation feed is invalid HOT 4
- Core docs don't come up in search in Dash HOT 1
- The generator does not generate parentheses in the type unions.
- Error when generating docset HOT 2
- Update for Elm 0.19 HOT 2
- AttributeError: 'strlist' object has no attribute 'encode' HOT 4
- Unqualified indexed entry results HOT 2
- Elm has a nice logo but it needn't dictate syntax highlighting HOT 9
- Thank you SO MUCH! HOT 1
- Updating HOT 5
- Redundant package name
- Elm 0.17 HOT 1
- Include some guide pages? HOT 1
- Possible to generate docs for unpublished code? HOT 3
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 elm-docset.