Git Product home page Git Product logo

Comments (7)

Linbreux avatar Linbreux commented on June 7, 2024

Did you also make the directory?

from wikmd.

Mik3Rizzo avatar Mik3Rizzo commented on June 7, 2024

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.

Linbreux avatar Linbreux commented on June 7, 2024

hi @Mik3Rizzo
I tried this, and in my case it creates the correct folder automatically. Could you give a little more detail?

from wikmd.

Mik3Rizzo avatar Mik3Rizzo commented on June 7, 2024

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.

Linbreux avatar Linbreux commented on June 7, 2024

hi @Mik3Rizzo
Can you test the branch gitmanager_folder_create, to see if the problem is solved?

from wikmd.

Mik3Rizzo avatar Mik3Rizzo commented on June 7, 2024

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.

Linbreux avatar Linbreux commented on June 7, 2024

alright, I merged it!

from wikmd.

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.