-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird error #5
Comments
problem is here: should be: try re-downloading or manually fix it as it is correct on the repo page and in my backup. |
erm - those two mentioned lines are identical. I just tried to checkout main.py to remove my cowboy fix, and same error occurs. |
i meant: (double backslash) |
ummmm... why the **** are they not posting double backslashes properly! weirderer |
29. des. 2018 kl. 22.39 skrev jmerc77 ***@***.***>:
ummmm... why the **** are they not posting double backslashes properly!
still fails compiling, though
|
hmmm... maybe it is not liking the mac. it would be helpfull to know if it is doing that on a windows from your end too. i suspect it needs more escapement for the '. |
and linux
roysk@roysk:~/src/git/remix-of-Russian-Doll-Maze-Puzzle-Box$ ./main.py
File "./main.py", line 393
matrix.append(f"[{','.join(row)}]")
^
SyntaxError: invalid syntax
not sure about this
… 29. des. 2018 kl. 22.45 skrev jmerc77 ***@***.***>:
hmmm... maybe it is not liking the mac. it would be helpfull to know if it is doing that on a windows from your end too. i suspect it needs more escapement for the '.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#5 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AEDl256I7KQ7fbQhn_NA0tDXSBn3A-Llks5u9-KRgaJpZM4ZjMMA>.
|
btw, the mac is using python 3.7.1 - the linux machine tested, uses 3.5.2
… 29. des. 2018 kl. 22.45 skrev jmerc77 ***@***.***>:
hmmm... maybe it is not liking the mac. it would be helpfull to know if it is doing that on a windows from your end too. i suspect it needs more escapement for the '.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#5 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AEDl256I7KQ7fbQhn_NA0tDXSBn3A-Llks5u9-KRgaJpZM4ZjMMA>.
|
oh. F'' must be a 3.7 thing. i'll work on that. |
think I got it. took a lot though. |
almost, but not quite ;)
Roys-MacBook-Pro-1840:remix-of-Russian-Doll-Maze-Puzzle-Box roy$ ./main.py
Traceback (most recent call last):
File "./main.py", line 512, in <module>
version = scad_version()
File "./main.py", line 77, in scad_version
return (int(ver[0]), int(ver[1]), int(ver[2])) if ver else ()
ValueError: invalid literal for int() with base 10: "b''"
Roys-MacBook-Pro-1840:remix-of-Russian-Doll-Maze-Puzzle-Box roy$
Vennlig hilsen
roy
--
Roy Sigurd Karlsbakk
(+47) 98013356
http://blogg.karlsbakk.net/
GPG Public key: http://karlsbakk.net/roysigurdkarlsbakk.pubkey.txt
--
Hið góða skaltu í stein höggva, hið illa í snjó rita.
… From: "Marc A. Bonsels" ***@***.***>
To: "jmerc77/remix-of-Russian-Doll-Maze-Puzzle-Box"
***@***.***>
Cc: "Roy Sigurd Karlsbakk" ***@***.***>, "Author"
***@***.***>
Sent: Saturday, 29 December, 2018 23:31:46
Subject: Re: [jmerc77/remix-of-Russian-Doll-Maze-Puzzle-Box] Weird error (#5)
think I got it. took a lot though.
—
You are receiving this because you authored the thread.
Reply to this email directly, [
#5 (comment)
| view it on GitHub ] , or [
https://github.com/notifications/unsubscribe-auth/AEDl2xi_Fi00EiNtBYSMUy5McKAeg4-3ks5u9-1SgaJpZM4ZjMMA
| mute the thread ] .
|
roysk@roysk:~/src/git/remix-of-Russian-Doll-Maze-Puzzle-Box$ python3 --version
Python 3.5.2
roysk@roysk:~/src/git/remix-of-Russian-Doll-Maze-Puzzle-Box$ ./main.py
Traceback (most recent call last):
File "./main.py", line 512, in <module>
version = scad_version()
File "./main.py", line 75, in scad_version
ver=sp.run(cmd,capture_output=True).stdout
File "/usr/lib/python3.5/subprocess.py", line 693, in run
with Popen(*popenargs, **kwargs) as process:
TypeError: __init__() got an unexpected keyword argument 'capture_output'
Vennlig hilsen
roy
--
Roy Sigurd Karlsbakk
(+47) 98013356
http://blogg.karlsbakk.net/
GPG Public key: http://karlsbakk.net/roysigurdkarlsbakk.pubkey.txt
--
Hið góða skaltu í stein höggva, hið illa í snjó rita.
… From: "Roy Sigurd Karlsbakk" ***@***.***>
To: "jmerc77"
***@***.***>
Cc: "jmerc77" ***@***.***>,
"Author" ***@***.***>
Sent: Saturday, 29 December, 2018 23:36:26
Subject: Re: [jmerc77/remix-of-Russian-Doll-Maze-Puzzle-Box] Weird error (#5)
almost, but not quite ;)
Roys-MacBook-Pro-1840:remix-of-Russian-Doll-Maze-Puzzle-Box roy$ ./main.py
Traceback (most recent call last):
File "./main.py", line 512, in <module>
version = scad_version()
File "./main.py", line 77, in scad_version
return (int(ver[0]), int(ver[1]), int(ver[2])) if ver else ()
ValueError: invalid literal for int() with base 10: "b''"
Roys-MacBook-Pro-1840:remix-of-Russian-Doll-Maze-Puzzle-Box roy$
Vennlig hilsen
roy
--
Roy Sigurd Karlsbakk
(+47) 98013356
http://blogg.karlsbakk.net/
GPG Public key: http://karlsbakk.net/roysigurdkarlsbakk.pubkey.txt
--
Hið góða skaltu í stein höggva, hið illa í snjó rita.
> From: "Marc A. Bonsels" ***@***.***>
> To: "jmerc77/remix-of-Russian-Doll-Maze-Puzzle-Box"
> ***@***.***>
> Cc: "Roy Sigurd Karlsbakk" ***@***.***>, "Author"
> ***@***.***>
> Sent: Saturday, 29 December, 2018 23:31:46
> Subject: Re: [jmerc77/remix-of-Russian-Doll-Maze-Puzzle-Box] Weird error (#5)
> think I got it. took a lot though.
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, [
> #5 (comment)
> | view it on GitHub ] , or [
> https://github.com/notifications/unsubscribe-auth/AEDl2xi_Fi00EiNtBYSMUy5McKAeg4-3ks5u9-1SgaJpZM4ZjMMA
> | mute the thread ] .
|
ok... traded run(...) for Popen(...). still works on my end how about yours? |
Roys-MacBook-Pro-1840:remix-of-Russian-Doll-Maze-Puzzle-Box roy$ ./main.py
OpenSCAD version 2015.03-3
b''
Traceback (most recent call last):
File "./main.py", line 513, in <module>
version = scad_version()
File "./main.py", line 78, in scad_version
return (int(ver[0]), int(ver[1]), int(ver[2])) if ver else ()
ValueError: invalid literal for int() with base 10: "b''"
on both linux and mac
Vennlig hilsen
roy
--
Roy Sigurd Karlsbakk
(+47) 98013356
http://blogg.karlsbakk.net/
GPG Public key: http://karlsbakk.net/roysigurdkarlsbakk.pubkey.txt
--
Hið góða skaltu í stein höggva, hið illa í snjó rita.
… From: "Marc A. Bonsels" ***@***.***>
To: "jmerc77" ***@***.***>
Cc: "Roy Sigurd Karlsbakk" ***@***.***>, "Author"
***@***.***>
Sent: Sunday, 30 December, 2018 00:03:20
Subject: Re: [jmerc77/remix-of-Russian-Doll-Maze-Puzzle-Box] Weird error (#5)
ok... traded run(...) for Popen(...). still works on my end how about yours?
—
You are receiving this because you authored the thread.
Reply to this email directly, [
#5 (comment)
| view it on GitHub ] , or [
https://github.com/notifications/unsubscribe-auth/AEDl23_NJY8M7OrqpQ2X-edrL-TLHybhks5u9_S4gaJpZM4ZjMMA
| mute the thread ] .
|
oh! aha! just what I needed! |
Roys-MacBook-Pro-1840:remix-of-Russian-Doll-Maze-Puzzle-Box roy$ ./main.py
OpenSCAD version 2015.03-3
Traceback (most recent call last):
File "./main.py", line 512, in <module>
version = scad_version()
File "./main.py", line 77, in scad_version
return (int(ver[0]), int(ver[1]), int(ver[2])) if ver else ()
ValueError: invalid literal for int() with base 10: ''
Roys-MacBook-Pro-1840:remix-of-Russian-Doll-Maze-Puzzle-Box roy$
Same on linux
Do you want an account on a linux machine to play around a bit?
Vennlig hilsen
roy
--
Roy Sigurd Karlsbakk
(+47) 98013356
http://blogg.karlsbakk.net/
GPG Public key: http://karlsbakk.net/roysigurdkarlsbakk.pubkey.txt
--
Hið góða skaltu í stein höggva, hið illa í snjó rita.
… From: "Marc A. Bonsels" ***@***.***>
To: "jmerc77" ***@***.***>
Cc: "Roy Sigurd Karlsbakk" ***@***.***>, "Author"
***@***.***>
Sent: Sunday, 30 December, 2018 00:43:06
Subject: Re: [jmerc77/remix-of-Russian-Doll-Maze-Puzzle-Box] Weird error (#5)
oh! aha! just what I needed!
decode("utf-8")
—
You are receiving this because you authored the thread.
Reply to this email directly, [
#5 (comment)
| view it on GitHub ] , or [
https://github.com/notifications/unsubscribe-auth/AEDl2zZYG9NLL__4j0Hw6gViBgMdrVB7ks5u9_4KgaJpZM4ZjMMA
| mute the thread ] .
|
made many changes since then. if I were to test on linux, I'd rather do it on my end with VM. I was having issues getting it to work. some of which were due to slow internet. but ill look into it soon because I changed internet providers. |
btw, what were the options used? that seems to help with testing on my end. |
I don't remember - it's some months ago, and I found https://github.com/revk/PuzzleBox working better. |
ver[2] was unused and was causing problems. so i removed that. seems better now. |
the version check has been an on going problem. only the year is needed so I did an update. hope it works now. |
|
Please see my PR |
Seems there's a typo of sorts in the latest version in git
Roys-MacBook-Pro-1840:remix-of-Russian-Doll-Maze-Puzzle-Box roy$ ./main.py
Traceback (most recent call last):
File "./main.py", line 516, in
version = scad_version()
File "./main.py", line 77, in scad_version
return (int(ver[0]), int(ver[1]), int(ver[2])) if ver else ()
ValueError: invalid literal for int() with base 10: "b''"
Roys-MacBook-Pro-1840:remix-of-Russian-Doll-Maze-Puzzle-Box roy$
Cowboy-fix:
diff --git a/main.py b/main.py
index bfb4680..c4946fe 100755
--- a/main.py
+++ b/main.py
@@ -74,6 +74,8 @@ def scad_version():
cmd = [openscad(), "--version"]
ver=sp.run(cmd,capture_output=True).stdout
ver=str(ver).replace("\r","").replace("b'OpenSCAD version ","").replace("\n'","").replace("-",".").split(".")
+# OpenSCAD version 2015.03-3
return (int(ver[0]), int(ver[1]), int(ver[2])) if ver else ()
#runs the scad
Roys-MacBook-Pro-1840:remix-of-Russian-Doll-Maze-Puzzle-Box roy$
The text was updated successfully, but these errors were encountered: