Comments (11)
Thanks. Let us check this and get back to you.
from labml.
Thanks for trying out labml. Seems like you're the first to try this on Windows. We haven't tested our library on windows, because we are a small team and it wasn't a priority for us up until now.
We'll check this and get back as soon as possible. If possible, try using Linux or macOS for the time being?
from labml.
Hi, thanks for the fast response.
Yes, as you said it does not work on Windows, and I tried it using Linux.
It works only when using a python script but not with a jupyter notebook
I tried to convert the path into str and created a locally empty git repo, but it still didn't work. ( I'm testing with the same notebook as I mentioned above). Then I suspected that it doesn't have the writing privilege and I run the notebook as root but it gave the same error.
Nevertheless, saving the notebook as a .py file and running it works like a charm.
Also, do you have any idea why it doesn't work on Windows ?
from labml.
Glad you could get it working under Linux. Let us have a look on local jupiter notebooks issue.
Did you run the same jupiter notebook to get this error or was it some other notebook?
from labml.
Yes it was the same notebook, though you can simply run this to replicate the issue:
from labml import experiment
experiment.create(name='test')
from labml.
@adrien1018 's pull fixes both problems
from labml.
@shetsecure the library update with the fix was published. Let us know whether it resolves your problems. It works perfectly on my system.
from labml.
@nmasnadithya Unfortunately the error still persists on my system...
from labml.
LABML WARNING
are just warning messages. It says your working directory C:\Users\Amine
is not a git repository.
InvalidGitRepositoryError
is an error that's caught. Thats why you don't see it in the python REPL. No idea why it gets thrown in the notebook. Can you share a screenshot that shows the full output on the notebook?
from labml.
HTML(value='<pre style="overflow-x: scroll;"><span style="color: #C5C1B4"></span>\n<span style="color: #C5C1B…
---------------------------------------------------------------------------
InvalidGitRepositoryError Traceback (most recent call last)
c:\users\amine\appdata\local\programs\python\python39\lib\site-packages\labml\internal\experiment\__init__.py in __init__(self, uuid, name, python_file, comment, writers, ignore_callers, tags, is_evaluate)
222 try:
--> 223 repo = git.Repo(lab_singleton().path)
224
c:\users\amine\appdata\local\programs\python\python39\lib\site-packages\git\repo\base.py in __init__(self, path, odbt, search_parent_directories, expand_vars)
180 if self.git_dir is None:
--> 181 raise InvalidGitRepositoryError(epath)
182
InvalidGitRepositoryError: C:\Users\Amine\Downloads
During handling of the above exception, another exception occurred:
AttributeError Traceback (most recent call last)
<ipython-input-2-c4c1b9931e54> in <module>
1 from labml import experiment
----> 2 experiment.create(name='test')
c:\users\amine\appdata\local\programs\python\python39\lib\site-packages\labml\experiment.py in create(uuid, name, python_file, comment, writers, ignore_callers, tags, disable_screen)
84
85 monitor().clear()
---> 86 _create_experiment(uuid=uuid,
87 name=name,
88 python_file=python_file,
c:\users\amine\appdata\local\programs\python\python39\lib\site-packages\labml\internal\experiment\__init__.py in create_experiment(uuid, name, python_file, comment, writers, ignore_callers, tags, is_evaluate)
512 global _internal
513
--> 514 _internal = Experiment(uuid=uuid,
515 name=name,
516 python_file=python_file,
c:\users\amine\appdata\local\programs\python\python39\lib\site-packages\labml\internal\experiment\__init__.py in __init__(self, uuid, name, python_file, comment, writers, ignore_callers, tags, is_evaluate)
230 except git.InvalidGitRepositoryError:
231 if not is_colab() and not is_kaggle():
--> 232 labml_notice(["Not a valid git repository: ",
233 (lab_singleton().path, Text.value)])
234 self.run.commit = 'unknown'
c:\users\amine\appdata\local\programs\python\python39\lib\site-packages\labml\utils\notice.py in labml_notice(message, is_danger, is_warn)
21
22 log.append(('\n' + '-' * 50, Text.subtle))
---> 23 logger.log(log)
c:\users\amine\appdata\local\programs\python\python39\lib\site-packages\labml\logger.py in log(is_new_line, is_reset, *args)
133 _internal().log([(message, None)], is_new_line=is_new_line, is_reset=is_reset)
134 elif isinstance(message, list):
--> 135 _internal().log(message, is_new_line=is_new_line, is_reset=is_reset)
136 else:
137 raise TypeError(f'Unrecognized type: {type(message)}', message)
c:\users\amine\appdata\local\programs\python\python39\lib\site-packages\labml\internal\logger\__init__.py in log(self, parts, is_new_line, is_reset)
22 is_reset: bool = True):
23 for d in self.__destinations:
---> 24 d.log(parts, is_new_line=is_new_line, is_reset=is_reset)
25
26 def info(self, *args, **kwargs):
c:\users\amine\appdata\local\programs\python\python39\lib\site-packages\labml\internal\logger\destinations\ipynb_pycharm.py in log(self, parts, is_new_line, is_reset)
43 else:
44 text, style = p
---> 45 lines = text.split('\n')
46 for line in lines[:-1]:
47 tuple_parts.append((line, style))
AttributeError: 'WindowsPath' object has no attribute 'split'
from labml.
@adrien1018 fixed it
from labml.
Related Issues (20)
- Implement Flash attention stable diffusion problems HOT 1
- Hardware Naming In Monitor HOT 1
- UnicodeEncodeError: 'gbk' codec can't encode character HOT 1
- Tracker bug: UnicodeEncodeError: 'charmap' codec can't encode characters HOT 1
- Running issue... HOT 1
- Columns and DataType Not Explicitly Set on line 133 of build_numpy_cache.py
- Failed to connect server HOT 3
- The app-server don't send any response HOT 10
- labml.experiment' has no attribute 'add_pytorch_models'
- Remove '.mean' suffix from metrics
- Save button in process details view
- Handle tracking data from multiple processes in distributed runs
- Forecast loss curve
- Smoothing in log scale
- 502 - Bad Gateway HOT 2
- 500 Error Issue HOT 3
- Update the project to support the latest version of weya HOT 1
- Feature request: Allow setting listen address on command line & infer URL from request HOT 1
- Some private runs visible on homepage before login or refresh HOT 1
- How can I restarted thread again? 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 labml.