Comments (7)
Did you also make the directory?
from wikmd.
Did you also make the directory?
No! If you manually make the directory, the exception doesn't occur.
I expect that the software makes the directory if it doesn't exist. Maybe we should add that.
from wikmd.
hi @Mik3Rizzo
I tried this, and in my case it creates the correct folder automatically. Could you give a little more detail?
from wikmd.
Could you give a little more detail?
What I did (both on Windows 10 and Raspberry OS):
- clone a fresh linbreux/wikmd repo
- change the
yaml
with
sync_with_remote: 1
remote_url: "https://github.com/Mik3Rizzo/m-iki.git"
wiki_directory: "m-iki"
What I got on Win:
(venv) PS C:\Users\mrizz\Desktop\Workspaces\test\wikmd> python wiki.py
[2022-04-08 11:46:09,931] INFO in git_manager: Cloning >>> https://github.com/Mik3Rizzo/m-iki.git ...
Traceback (most recent call last):
File "C:\Users\mrizz\Desktop\Workspaces\test\wikmd\wiki.py", line 39, in <module>
wrm = WikiRepoManager(flask_app=app)
File "C:\Users\mrizz\Desktop\Workspaces\test\wikmd\git_manager.py", line 45, in __init__
self.__git_repo_init()
File "C:\Users\mrizz\Desktop\Workspaces\test\wikmd\git_manager.py", line 55, in __git_repo_init
self.__init_remote_repo()
File "C:\Users\mrizz\Desktop\Workspaces\test\wikmd\git_manager.py", line 88, in __init_remote_repo
if os.listdir(self.wiki_directory):
FileNotFoundError: [WinError 3] Impossibile trovare il percorso specificato: 'm-iki'
What I got on Raspberry OS:
(venv) pi@crystal-pi:~/hosted/wikmd $ python wiki.py
[2022-04-08 11:59:48,834] INFO in git_manager: Cloning >>> https://github.com/Mik3Rizzo/m-iki.git ...
Traceback (most recent call last):
File "/home/pi/hosted/wikmd/wiki.py", line 39, in <module>
wrm = WikiRepoManager(flask_app=app)
File "/home/pi/hosted/wikmd/git_manager.py", line 45, in __init__
self.__git_repo_init()
File "/home/pi/hosted/wikmd/git_manager.py", line 55, in __git_repo_init
self.__init_remote_repo()
File "/home/pi/hosted/wikmd/git_manager.py", line 88, in __init_remote_repo
if os.listdir(self.wiki_directory):
FileNotFoundError: [Errno 2] No such file or directory: 'm-iki'
from wikmd.
hi @Mik3Rizzo
Can you test the branch gitmanager_folder_create, to see if the problem is solved?
from wikmd.
Can you test the branch gitmanager_folder_create, to see if the problem is solved?
Works both on Win and on Raspberry OS. Nice!
from wikmd.
alright, I merged it!
from wikmd.
Related Issues (20)
- Support softwrap when editing pages HOT 1
- Win: every commit adds new lines in the file
- Pandoc error (MacOS)? HOT 4
- [1.8.2] permission denied on /var/log/wikimd.log HOT 5
- Docker builds fail because `requirements.txt` is not available in the build context HOT 1
- docker missing arches HOT 1
- [Docker] Update init scripts
- [1.8.3] Unreadable links in Dark theme
- Search not working? HOT 2
- Permission issues from draw plugin HOT 3
- Consider switching from lxml's clean_html for enhanced security (and possibly performance) HOT 1
- Error when saving edited/created page - PermissionError HOT 3
- How to add git authentication? HOT 2
- make app use https_proxy env variable
- Improve project structure HOT 3
- Consider use `pathlib` over `os.path` HOT 1
- Ensure that the page name provided is secure and can be saved to disk.
- Empty folders should be removed
- Drawings missing from git HOT 3
- RuntimeError: Cannot understand pandocversion=3.1.8 HOT 1
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 wikmd.