You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have successfully installed ubermag on my PC with Windows 10 OS, and run some simulations using docker oommfc runner completely.
CUDA and available mumax3 software have already been installed, I followed the guides in https://ubermag.github.io/installation.html and add the directory containing the mumax3 executable to my PATH variable.
There is an ERROR when I import mumax3c. Please help me with this ERROR, THANKS a lot!
InvalidVersionTraceback (mostrecentcalllast)
CellIn[1], line31importdiscretisedfieldasdf2importmicromagneticmodelasmm---->3importmumax3casmc4#import oommfc as oc5importmathFile~\anaconda3\envs\ubermag_env\lib\site-packages\mumax3c\__init__.py:6054returnpytest.main(
55 ["-m", "docker", "-v", "--pyargs", "mumax3c"]
56 ) # pragma: no cover59__version__=pkg_resources.get_distribution(__name__).version--->60__dependencies__=pkg_resources.require(__name__)
File~\anaconda3\envs\ubermag_env\lib\site-packages\pkg_resources\__init__.py:966, inWorkingSet.require(self, *requirements)
957defrequire(self, *requirements):
958"""Ensure that distributions matching `requirements` are activated 959 960 `requirements` must be a string or a (possibly-nested) sequence (...) 964 included, even if they were already activated in this working set. 965 """-->966needed=self.resolve(parse_requirements(requirements))
968fordistinneeded:
969self.add(dist)
File~\anaconda3\envs\ubermag_env\lib\site-packages\pkg_resources\__init__.py:827, inWorkingSet.resolve(self, requirements, env, installer, replace_conflicting, extras)
824ifnotreq_extras.markers_pass(req, extras):
825continue-->827dist=self._resolve_dist(
828req, best, replace_conflicting, env, installer, required_by, to_activate829 )
831# push the new requirements onto the stack832new_requirements=dist.requires(req.extras)[::-1]
File~\anaconda3\envs\ubermag_env\lib\site-packages\pkg_resources\__init__.py:852, inWorkingSet._resolve_dist(self, req, best, replace_conflicting, env, installer, required_by, to_activate)
849ifdistisNone:
850# Find the best distribution and add it to the map851dist=self.by_key.get(req.key)
-->852ifdistisNoneor (distnotinreqandreplace_conflicting):
853ws=self854ifenvisNone:
File~\anaconda3\envs\ubermag_env\lib\site-packages\pkg_resources\__init__.py:3204, inRequirement.__contains__(self, item)
3199item=item.version3201# Allow prereleases always in order to match the previous behavior of3202# this method. In the future this should be smarter and follow PEP 4403203# more accurately.->3204returnself.specifier.contains(item, prereleases=True)
File~\anaconda3\envs\ubermag_env\lib\site-packages\pkg_resources\_vendor\packaging\specifiers.py:902, inSpecifierSet.contains(self, item, prereleases, installed)
900# Ensure that our item is a Version instance.901ifnotisinstance(item, Version):
-->902item=Version(item)
904# Determine if we're forcing a prerelease or not, if we're not forcing905# one for this particular filter call, then we'll use whatever the906# SpecifierSet thinks for whether or not we should support prereleases.907ifprereleasesisNone:
File~\anaconda3\envs\ubermag_env\lib\site-packages\pkg_resources\_vendor\packaging\version.py:197, inVersion.__init__(self, version)
195match=self._regex.search(version)
196ifnotmatch:
-->197raiseInvalidVersion(f"Invalid version: '{version}'")
199# Store the parsed out pieces of the version200self._version=_Version(
201epoch=int(match.group("epoch")) ifmatch.group("epoch") else0,
202release=tuple(int(i) foriinmatch.group("release").split(".")),
(...)
208local=_parse_local_version(match.group("local")),
209 )
InvalidVersion: Invalidversion: '-PKG-VERSION'
The text was updated successfully, but these errors were encountered:
@liuziheng2010 thank you for bringing this to our attention. We have corrected this and the updated code will be released with the next version of ubermag. We are hoping to release in approximately 2 weeks time.
Dear ubermag team:
I have successfully installed ubermag on my PC with Windows 10 OS, and run some simulations using docker oommfc runner completely.
CUDA and available mumax3 software have already been installed, I followed the guides in https://ubermag.github.io/installation.html and add the directory containing the mumax3 executable to my PATH variable.
There is an ERROR when I import mumax3c. Please help me with this ERROR, THANKS a lot!
The text was updated successfully, but these errors were encountered: