text:
On Mac: failed to bundle project: failed to sign app

I am having very weird and inconsistent problem when building and code sign a Tauri app on Mac.
I have certificate and passwords from a previous app that could code sign, and I also generated a new set of certificate and passwords for current project. Let me call them ENV-old and ENV-new.
I could not code sign my current app locally with either ENV-old or ENV-new.
If I use github action CI, ENV-new doesn't work, but ENV-old work.
I also Tried both set of credentials on my previous project. Both ENV-old and ENV-new don't work locally. and only ENV-old works in GitHub Action.
I did check whether there are new terms to sign on Apple's website.
I did try to code sign a brand new tauri app.
What could be wrong with the certificates? They are newly generated following https://tauri.app/v1/guides/distribution/sign-macos/
Here is the log I get with npm run tauri build --verbose, but I can't see the reason this failed.
warning: `app` (lib) generated 16 warnings (run `cargo fix --lib -p app` to apply 7 suggestions)
   Compiling app v0.1.0 (/Users/Dev/Dev/projects/Jarvis/apps/desktop/src-tauri)
warning: `app` (bin "app") generated 7 warnings (7 duplicates)
    Finished `release` profile [optimized] target(s) in 8.23s
    Bundling [tauri_bundler::bundle::macos::app] jarvis.app (/Users/Dev/Dev/projects/Jarvis/target/release/bundle/macos/jarvis.app)
     Running [tauri_bundler::bundle::common] Command `xattr  -crs /Users/Dev/Dev/projects/Jarvis/target/release/bundle/macos/jarvis.app`
     Signing [tauri_bundler::bundle::macos::sign] with identity "Developer ID Application: <User> (<Team ID>)"
     Running [tauri_bundler::bundle::common] Command `security  delete-keychain tauri-build.keychain`
        Info [tauri_bundler::bundle::macos::sign] setup keychain from environment variables...
     Running [tauri_bundler::bundle::common] Command `base64  --decode -i /var/folders/f7/7c6q0gh121vdyh86bv192wpc0000gn/T/.tmpB7t0er/cert.p12.tmp -o /var/folders/f7/7c6q0gh121vdyh86bv192wpc0000gn/T/.tmpB7t0er/cert.p12`
     Running [tauri_bundler::bundle::common] Command `security  create-keychain -p tauri-build tauri-build.keychain`
     Running [tauri_bundler::bundle::common] Command `security  unlock-keychain -p tauri-build tauri-build.keychain`
     Running [tauri_bundler::bundle::common] Command `security  import /var/folders/f7/7c6q0gh121vdyh86bv192wpc0000gn/T/.tmpB7t0er/cert.p12 -k tauri-build.keychain -P MxTUHA3733V3hnmzZqMw -T /usr/bin/codesign -T /usr/bin/pkgbuild -T /usr/bin/productbuild`
1 identity imported.
     Running [tauri_bundler::bundle::common] Command `security  set-keychain-settings -t 3600 -u tauri-build.keychain`
     Running [tauri_bundler::bundle::common] Command `security  set-key-partition-list -S apple-tool:,apple:,codesign: -s -k tauri-build tauri-build.keychain`
keychain: "/Users/Dev/Library/Keychains/tauri-build.keychain-db"
version: 512
class: 0x00000010
attributes:
    0x00000000 <uint32>=0x00000010
    0x00000001 <blob>="Huakun"
    0x00000002 <blob>=<NULL>
    0x00000003 <uint32>=0x00000001
    0x00000004 <uint32>=0x00000000
    0x00000005 <uint32>=0x00000000
    0x00000006 <blob>=0x79848897D86A4FC16950E5CBB71680D3AE9AB4C4  "y\204\210\227\330jO\301iP\345\313\267\026\200\323\256\232\264\304"
    0x00000007 <blob>=<NULL>
    0x00000008 <blob>=0x7B38373139316361322D306663392D313164342D383439612D3030303530326235323132327D00  "{87191ca2-0fc9-11d4-849a-000502b52122}\000"
    0x00000009 <uint32>=0x0000002A  "\000\000\000*"
    0x0000000A <uint32>=0x00000800
    0x0000000B <uint32>=0x00000800
    0x0000000C <blob>=0x0000000000000000
    0x0000000D <blob>=0x0000000000000000
    0x0000000E <uint32>=0x00000001
    0x0000000F <uint32>=0x00000001
    0x00000010 <uint32>=0x00000001
    0x00000011 <uint32>=0x00000000
    0x00000012 <uint32>=0x00000001
    0x00000013 <uint32>=0x00000001
    0x00000014 <uint32>=0x00000001
    0x00000015 <uint32>=0x00000001
    0x00000016 <uint32>=0x00000001
    0x00000017 <uint32>=0x00000001
    0x00000018 <uint32>=0x00000001
    0x00000019 <uint32>=0x00000001
    0x0000001A <uint32>=0x00000001
     Running [tauri_bundler::bundle::common] Command `security  list-keychain -d user -s /Users/Dev/Library/Keychains/login.keychain-db tauri-build.keychain`
        Info [tauri_bundler::bundle::macos::sign] Signing app bundle...
     Signing [tauri_bundler::bundle::macos::sign] /Users/Dev/Dev/projects/Jarvis/target/release/bundle/macos/jarvis.app/Contents/MacOS/jarvis
     Running [tauri_bundler::bundle::common] Command `codesign  --force -s Developer ID Application: <User> (<Team ID>) --keychain tauri-build.keychain --options runtime /Users/Dev/Dev/projects/Jarvis/target/release/bundle/macos/jarvis.app/Contents/MacOS/jarvis`
Developer ID Application: <User> (<Team ID>): ambiguous (matches "Developer ID Application: <User> (<Team ID>)" and "Developer ID Application: <User> (<Team ID>)" in /Users/Dev/Library/Keychains/login.keychain-db)
       Error [tauri_cli_node] failed to bundle project: failed to sign app
 ELIFECYCLE  Command failed with exit code 1.

I just noticed these two lines:
Running [tauri_bundler::bundle::common] Command `codesign  --force -s Developer ID Application: <User> (<Team ID>) --keychain tauri-build.keychain --options runtime /Users/Dev/Dev/projects/Jarvis/target/release/bundle/macos/jarvis.app/Contents/MacOS/jarvis`
Developer ID Application: <User> (<Team ID>): ambiguous (matches "Developer ID Application: <User> (<Team ID>)" and "Developer ID Application: <User> (<Team ID>)" in /Users/Dev/Library/Keychains/login.keychain-db)

Are there two certificates with the same name in your keychain?

@pewsheen I think so. Does the name have to be unique?

Yeah, it is using the name to get the certificate. It can’t decide which one to use if there are two identical names.

I removed the certificates on my mac, also reset keychain, now getting new error.
Warning: unable to build chain to self-signed root for signer
keychain tauri-build.keychain --options runtime /Users/user/Dev/projects/devclean/devclean-ui/src-tauri/target/release/bundle/macos/devclean-ui.app/Contents/MacOS/devclean-ui`
/Users/user/Dev/projects/devclean/devclean-ui/src-tauri/target/release/bundle/macos/devclean-ui.app/Contents/MacOS/devclean-ui: replacing existing signature
Warning: unable to build chain to self-signed root for signer "Developer ID Application: <User> (<Team ID>)"
/Users/user/Dev/projects/devclean/devclean-ui/src-tauri/target/release/bundle/macos/devclean-ui.app/Contents/MacOS/devclean-ui: errSecInternalComponent
       Error [tauri_cli_node] failed to bundle project: failed to sign app

I am not familiar with the code signing process.
Do I have to install some certificate for this to work?

I also tried to code sign in a clean macos VM also didn't work, and there is no meaningful error message.
Bundling devclean-ui.app (/Users/<user>/Downloads/devclean-main/devclean-ui/src-tauri/target/release/bundle/macos/devclean-ui.app)
    Signing with identity "Developer ID Application: <User> (<Team ID>)"
    Info setup keychain from environment variables...
    Info Signing app bundle...
    Signing /Users/<user>/Downloads/devclean-main/devclean-ui/src-tauri/target/release/bundle/macos/devclean-ui.app/Contents/MacOS/devclean-ui
    Error failed to bundle project: failed to sign app

Did you use the certificate that was downloaded from Apple Developer > Certificates?
Can you bundle the app by using APPLE_SIGNING_IDENTITY="-"?

To be able to sign your app, your certificate has to be valid, You can check that by selecting your imported certificate in keychain access for the following:

For your certificate to be considered valid, when you creating a new certificate, you have to import these certificates into your system keychains, before creating your certificate:

Thank you! I solved the problem a while ago. Didn't remember how it was solved, probably reinstalled MacOS and the certificates.

authors: HuakunShen pewsheen tiendo1011


text:
Incorrect Use of Synchronous requests.get in Asynchronous download_page Function

There is an issue with how the download_page function in src/utils/http.py is implemented. This function uses the synchronous requests.get method from the requests library:
import requests

async def download_page(url: str):
    return requests.get(url)

However, the function is defined with the async keyword, which suggests that it should be an asynchronous function, but it utilizes a synchronous call to requests.get that would block the event loop in an asynchronous application.
Since the rest of the codebase appears to be designed for async operation, the code would benefit from replacing the requests.get with an async HTTP library call, such as aiohttp.ClientSession().get. This would allow the event loop to handle other tasks while waiting for the HTTP response, adhering to the async nature of the surrounding code.

Please provide specific code on how this will be corrected.

Certainly. To correctly use an asynchronous approach for downloading web pages in the context of the provided coroutine, you should integrate an asynchronous HTTP client into the download_page function. One of the most common choices for async HTTP requests in Python is aiohttp. To correct this, the requests library should be replaced with aiohttp. Here is an updated version of the download_page function:
import aiohttp

async def download_page(url: str):
    async with aiohttp.ClientSession() as session:
        async with session.get(url) as response:
            return await response.text()

To use aiohttp, you will need to ensure that this library is installed within your project's environment. You can install it using pip:
pip install aiohttp

In the updated function:

The aiohttp.ClientSession() object is used to create a session. This object provides a context manager interface for making asynchronous HTTP requests.
The session.get(url) coroutine is then called to perform an asynchronous HTTP GET request.
The response.text() coroutine returns the text of the response content in an asynchronous manner.

This updated download_page function now properly makes non-blocking HTTP requests using aiohttp, correctly working alongside other asynchronous code within the provided project.

source: gharchive/issue

repo: tawada/LLM-QCoder

license: MIT

license_type: permissive

license_source: github-api


text:
feat/unassigned-fares

Please review before merging.

:tada: This PR is included in version 1.82.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

source: gharchive/pull-request

repo: taxi-gestion/client


text:
Remove bower postinstall hook

https://github.com/tbranyen/combyne/blob/master/package.json#L36

:rainbow:

Removed in combyne@2.0.0

authors: kadamwhite tbranyen

repo: tbranyen/combyne

license: mit

license_source: bigquery


text:
Upgrade to ESLint 9

Resolves https://github.com/tchajed/botc-tools/issues/13

Also fixes two lint warnings that I got after upgrading.

This looks great, thanks for doing that migration!

authors: jthemphill tchajed

repo: tchajed/botc-tools


text:
Save images taken from Camera but do not save images taken from Album

I tried to use:
[TGCamera setOption:kTGCameraOptionSaveImageToAlbum value:[NSNumber numberWithBool:YES]];

to switch between saving the image to the album when taking with camera and do not save it when taken from album. I tried to do:
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{

[TGCamera setOption:kTGCameraOptionSaveImageToAlbum value:[NSNumber numberWithBool:NO]];
...
}

and
- (IBAction)shotTapped
{
[TGCamera setOption:kTGCameraOptionSaveImageToAlbum value:[NSNumber numberWithBool:YES]];
...
}

It does not work properly. When I pick an image from album it does not return the image. What would you change?

This is a bug - when selecting photos from the library to use in the camera, it saves a duplicate in the library

repo: tdginternet/TGCameraViewController


text:
join channel with id or username

hi, how to join channel with id or userName?
with tdbot

Method addChatMember can be used to add a new member (including yourself) to a chat.
Method searchPublicChat can be used to get a chat by a username.

Since TDLib 1.3.0 you can alternatively use joinChat instead of addChatMember for that.

@levlam Any samples or documentation to get the channel id using channel name and to join ?

authors: Rajkumar1994sof ShafiqSadat levlam

repo: tdlib/td


text:
wasm size

How to reduce the size of wasm and asmjs files, is there a description or documentation？
If only part of the api you are using can you comment out excess functionality to reduce volume？

There is no way to reduce code size further. Everything is required.

All right,thanks

authors: levlam mxingyu


text:
🛑 send.aurorabilisim.com is down

In 6301047, send.aurorabilisim.com (https://send.aurorabilisim.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: send.aurorabilisim.com is back up in b581633.

repo: tdulcet/send-instances-status


text:
Property:storageFootprintUnit

Definition
The units used to express the storage footprint of the collection

Existing property

Existing class

Existing property identifier

Format
Text

Required
yes, if storageFootprint is populated

Repeatable
no

Constraints
Controlled vocabulary

Examples
m2, Square foot

Notes

Definition: Unit used to express the footprint of the collection
Examples: m^2, ft^2

Deprecated in favour of MeasurementOrFact class

authors: mswoodburn mtrekels

repo: tdwg/cd


text:
Wiki: Add DataSource.Init

Add the new method "DataSource.Init" to the wiki

Done:
https://github.com/team-moeller/better-access-charts/wiki/DataSource#init

repo: team-moeller/better-access-charts


text:
데이터베이스 Todo 테이블 생성

🌴 데이터베이스 Todo 테이블 생성 (MOZI-91)
📋 태스크 리스트

[x] mongoose 설치
[x] todo model 작성

LGTM

authors: hyunjinee sion-k

repo: team-yaza/mozi-server


text:
Create 030_pagamento.md

Description

As already mentioned in #ISSUE_NUMBER, this PR tackles:

...
...
...

In particular, the ...
Checklist

[ ] I followed the indications in the CONTRIBUTING
[ ] The documentation related to the proposed change has been updated accordingly (also comments in code).
[ ] Have you written new tests for your core changes, as applicable?
[ ] Have you successfully ran tests with your changes locally?
[ ] Ready for review! :rocket:

Fixes

Fixes #

@bfabio please


text:
Ability to clear input and output

It would be a nice addition if we added a clear button that returns the app to the initial state.
Clear the input text field and the output paragraph tags.

I can work on this 🤞

🧐 were are you planning to add that ?

I added it next to the settings modal btn, but I am open to suggestions.

Ohk let me check

authors: BassemMohamed sarthology

repo: teamxenox/caligator


text:
ujson usage in case if installed

There is simplejson usage in fastavro/writer.py file i think it's better to use ujson and use it not only in writer.
I'm not sure how to write about it in README.md because information about simplejson in writer wasn't reflected there.
https://github.com/esnme/ultrajson#ultrajson

Thanks! Do you have some benchmarks to show the speedup gained from using ujson on Avro files?

I've tired to do benchmarks with your tessts/benchmark.py and all avro files in tests/avro-files/
time ls -f avro-files/*.avro | while read -r file; do python benchmark.py $file; done

With python2.7 overall execution time for ujson was about 1.06+ s and for json about 1.1+. So it was at list 0.04s faster
If you'll give me file benchmark.avro file that is mentioned in .gitignore file I could try to do benchmarking better.

I don't seem to have it anymore :( I'll try to find a good avro file for benchmarking.

Thanks, it would be great!

@scottbelden, @kkirsanov Can you cook up some good Avro benchmark? Maybe there's something in the main Avro repository?

I'll try to take a look but I'm pretty busy so I might not be able to until next week. I'll see if I can squeeze it in in the next few days though.

@lemurchik I threw this together and maybe it's a good start as a benchmark? https://gist.github.com/scottbelden/23de56f57d1b6956e3620f0bf1c3fac7
Would you mind running that on your branch with and without ujson installed?

@scottbelden
Without ujson
time python benchmark.py

Writing 1 records to one file...
... 100000 runs averaged 4.46058750153e-05 seconds
Reading 1 records from one file...
... 100000 runs averaged 3.79474020004e-05 seconds

Writing 100 records to one file...
... 1000 runs averaged 0.000390723705292 seconds
Reading 100 records from one file...
... 1000 runs averaged 0.000404514074326 seconds

Writing 10000 records to one file...
... 10 runs averaged 0.0336557149887 seconds
Reading 10000 records from one file...
... 10 runs averaged 0.0378547906876 seconds

Writing 1 records to one file...
... 100000 runs averaged 7.70504784584e-05 seconds
Reading 1 records from one file...
... 100000 runs averaged 8.6549539566e-05 seconds

Writing 100 records to one file...
... 1000 runs averaged 0.00225647449493 seconds
Reading 100 records from one file...
... 1000 runs averaged 0.00234637856483 seconds

Writing 10000 records to one file...
... 10 runs averaged 0.218417286873 seconds
Reading 10000 records from one file...
... 10 runs averaged 0.241429257393 seconds

real	0m35,714s
user	0m35,056s
sys	0m0,624s

With ujson
time python benchmark.py

Writing 1 records to one file...
... 100000 runs averaged 3.2373187542e-05 seconds
Reading 1 records from one file...
... 100000 runs averaged 3.03940439224e-05 seconds

Writing 100 records to one file...
... 1000 runs averaged 0.000373055458069 seconds
Reading 100 records from one file...
... 1000 runs averaged 0.000397135257721 seconds

Writing 10000 records to one file...
... 10 runs averaged 0.0337543964386 seconds
Reading 10000 records from one file...
... 10 runs averaged 0.0369121313095 seconds

Writing 1 records to one file...
... 100000 runs averaged 7.25268721581e-05 seconds
Reading 1 records from one file...
... 100000 runs averaged 6.79690122604e-05 seconds

Writing 100 records to one file...
... 1000 runs averaged 0.00224966573715 seconds
Reading 100 records from one file...
... 1000 runs averaged 0.00231112122536 seconds

Writing 10000 records to one file...
... 10 runs averaged 0.219660139084 seconds
Reading 10000 records from one file...
... 10 runs averaged 0.232347679138 seconds

real	0m31,246s
user	0m31,044s
sys	0m0,172s

Benchmarking with Cython
Without ujson
time python benchmark.py

Writing 1 records to one file...
... 100000 runs averaged 1.81804084778e-05 seconds
Reading 1 records from one file...
... 100000 runs averaged 2.4766600132e-05 seconds

Writing 100 records to one file...
... 1000 runs averaged 9.3713760376e-05 seconds
Reading 100 records from one file...
... 1000 runs averaged 0.000203284502029 seconds

Writing 10000 records to one file...
... 10 runs averaged 0.00747935771942 seconds
Reading 10000 records from one file...
... 10 runs averaged 0.0185041427612 seconds

Writing 1 records to one file...
... 100000 runs averaged 3.62542104721e-05 seconds
Reading 1 records from one file...
... 100000 runs averaged 5.9502453804e-05 seconds

Writing 100 records to one file...
... 1000 runs averaged 0.000551908254623 seconds
Reading 100 records from one file...
... 1000 runs averaged 0.00110595583916 seconds

Writing 10000 records to one file...
... 10 runs averaged 0.0497134685516 seconds
Reading 10000 records from one file...
... 10 runs averaged 0.113085722923 seconds

real	0m18,094s
user	0m17,840s
sys	0m0,236s

With ujson
time python benchmark.py

Writing 1 records to one file...
... 100000 runs averaged 1.36989378929e-05 seconds
Reading 1 records from one file...
... 100000 runs averaged 1.83930778503e-05 seconds

Writing 100 records to one file...
... 1000 runs averaged 0.000102315187454 seconds
Reading 100 records from one file...
... 1000 runs averaged 0.000203262090683 seconds

Writing 10000 records to one file...
... 10 runs averaged 0.00748679637909 seconds
Reading 10000 records from one file...
... 10 runs averaged 0.0186181783676 seconds

Writing 1 records to one file...
... 100000 runs averaged 3.16268706322e-05 seconds
Reading 1 records from one file...
... 100000 runs averaged 4.082726717e-05 seconds

Writing 100 records to one file...
... 1000 runs averaged 0.000533112049103 seconds
Reading 100 records from one file...
... 1000 runs averaged 0.00111326551437 seconds

Writing 10000 records to one file...
... 10 runs averaged 0.0507858991623 seconds
Reading 10000 records from one file...
... 10 runs averaged 0.112650609016 seconds

real	0m14,643s
user	0m14,436s
sys	0m0,188s

Thanks!

I know this has already been merged, but I'm wondering if we might want to use extras_require to specify ujson as an optional dependency.
Here's an example of a real-life project which uses it.

authors: barrywhart lemurchik scottbelden tebeka

repo: tebeka/fastavro


text:
HTTP/SOCKS5 Proxy Not Working

Version Info
Selenium server version: 3.141.59
Mozilla version: 83.0
Geckodriver version: 0.28.0

Using only HTTP field
This configuration uses only the HTTP field of the selenium.Proxy struct. When creating a new selenium service with this configuration it does not run into errors, but the proxy isn't actually used in requests.
Capabilities are: {
  "browserName": "firefox",
  "moz:firefoxOptions": {
    "args": [
      "--user-agent=Mozilla\u002f5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\u002f537.36 (KHTML, like Gecko) Chrome\u002f84.0.4147.135 Safari\u002f537.36"
    ]
  },
  "proxy": {
    "httpProxy": "<REDACTED_IP>:80",
    "proxyType": "manual"
  }

Using HTTP field and port
Specifying the HTTP port and IP (separately) causes error when creating new remote:
15:41:52.786 INFO [ActiveSessionFactory.apply] - Capabilities are: {
  "browserName": "firefox",
  "moz:firefoxOptions": {
    "args": [
      "--user-agent=Mozilla\u002f5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\u002f537.36 (KHTML, like Gecko) Chrome\u002f84.0.4147.135 Safari\u002f537.36"
    ]
  },
  "proxy": {
    "httpProxy": "<REDACTED_IP>",
    "httpProxyPort": 80,
    "proxyType": "manual"
  }
}
...
org.openqa.selenium.InvalidArgumentException: Invalid proxy configuration entry: httpProxyPort

SOCKS5
Note the same things happen with SOCKS5 Proxy configuration, except there's also an issue when specifying the proxy.SOCKSVersion, something about casting a long to an int in Java.

Heyo,
I'm encountering the same issues with a chromedriver browser.
did you find a fix ?

Heyo,
I'm encountering the same issues with a chromedriver browser.
did you find a fix ?

Author is baka!
// this is work for me when using Chromedriver
caps.AddProxy(selenium.Proxy{
	Type: selenium.Manual,
	SOCKS: "localhost:1080", // this field should include port!!
	// SocksPort:    port,   DO NOT SET THIS FIELD
	SOCKSVersion: 5,
})

@Qingluan It doesn't work

it's working for me when using chromedriver. thx.

try set selenium .HTTPClient.  fix!
func NewRemote(ctx context.Context) (selenium.WebDriver, error) {
	caps := selenium.Capabilities{"browserName": "chrome"}
	var args []string
	args = append(args, "--no-sandbox")
	caps.AddChrome(chrome.Capabilities{
		Args:            args,
	})
	selenium.HTTPClient = ProxyClient()
	wd, err := selenium.NewRemote(caps, fmt.Sprintf("http://localhost:%d/wd/hub", 8080))
	if err != nil {
		return nil, err
	}
	return wd, err
}

func ProxyClient() *http.Client {
	httpProxy := os.Getenv("HTTP_PROXY")
	if httpProxy == "" {
		return &http.Client{}
	}
	proxyUrl, err := url.Parse(os.Getenv("HTTP_PROXY"))
	if err != nil {
		return &http.Client{}
	}
	client := &http.Client{Transport: &http.Transport{
		Proxy: http.ProxyURL(proxyUrl),
	}}
	return client
}

	selenium.HTTPClient = ProxyClient()

What should be written at HTTP_PROXY

try setting selenium .HTTPClient. fix!
func NewRemote(ctx context.Context) (selenium.WebDriver, error) {
	caps := selenium.Capabilities{"browserName": "chrome"}
	var args []string
	args = append(args, "--no-sandbox")
	caps.AddChrome(chrome.Capabilities{
		Args:            args,
	})
	selenium.HTTPClient = ProxyClient()
	wd, err := selenium.NewRemote(caps, fmt.Sprintf("http://localhost:%d/wd/hub", 8080))
	if err != nil {
		return nil, err
	}
	return wd, err
}

func ProxyClient() *http.Client {
	httpProxy := os.Getenv("HTTP_PROXY")
	if httpProxy == "" {
		return &http.Client{}
	}
	proxyUrl, err := url.Parse(httpProxy)
	if err != nil {
		return &http.Client{}
	}
	client := &http.Client{Transport: &http.Transport{
		Proxy: http.ProxyURL(proxyUrl),
	}}
	return client
}

@rudy-tao it doesn't work

authors: Abolah ProDanceGrammer Qingluan austin-millan kasnet rudy-tao seamory

repo: tebeka/selenium


text:
SkipTheIntro no longer works in ER 1.06

Drops an error message at launch which says "failed to find signature" or something along those lines.
Your FPS unlock mod seems to continue to work just fine.
Using Mod Loader and Mod Engine 2 with ERR and Seamless Coop.

Doesn't happen on my machine, could you send me log.txt from the SkipTheIntro's folder? There should also be a load.txt with a zero in it.

Also, how are your mods arranged? Is my mod loader loading everything else or is the mod loader being loaded by Mod Engine 2? This is decided by whose dinput8.dll is present in the game root directory.

Hi,
sorry for the delay in the response.
I realized that it does work most of the time. For example, today, I turned on ER and everything was fine. Then I closed it, and started it again a minute later, and I got the issue. The issue persisted restarting ER one more time.
I am attaching the log.txt from this exact occurrence. The other times it works, the log.txt shows nothing interesting, only showing success.
log.txt
How my mods are arranged:
I am using Mod Engine 2's launch_eldenring.bat to start the game. Mod Engine 2 is installed outside of the game folder in its own folder somewhere.
I assume Mod Engine 2 then starts the game with your dinput8.dll to use your Mod Loader.
To be safe, I am attaching the elden ring config toml from Mod Engine 2. It should be default though.
config_eldenring.toml.txt
I am running the mods SkipTheIntro, UnlockTheFps and elden_ring_seamless_coop.
To address a potential Seamless Coop issue, I had to add a load.txt for it, containing the value 1. (I am not sure if this helped, however.) This is because I followed the discussion here: https://forums.nexusmods.com/index.php?showtopic=11201308/#entry110123923
SkipTheIntro is 0, and UnlockTheFps is 1.

authors: ividyon techiew

repo: techiew/EldenRingMods


text:
Adding sample AWS S3 policy to README

This is a fix for #26, it just adds a sample AWS IAM policy to the README.

Thanks heaps!

authors: danielcompton timgilbert


text:
Service is not available

wb.get_trade_token('xx')
wb.place_order(stock='IRIX',price=4.3,qty=1,action='BUY')

{'msg': 'Service is not available,please try again later',
'traceId': '94e604ba4ef74ddf926cd1c0fa258987',
'code': '200',
'data': {},
'success': False}

手动在webull 的app上可以下单

手动在webull 的app上可以下单

@tedchou12 boss,plz help

@tedchou12 boss,plz help

Seems like you are using the old package from pypi?
Could you download the zip from github and do python setup.py install instead?

Seems like you are using the old package from pypi?
Could you download the zip from github and do python setup.py install instead?


text:
Installing with custom g++ versions

Hi,
while installing the package I ran into the problem that the CUDA version used to install my torch installation (CUDA 9.2) is not compatible with recent g++ versions (7 or higher). The error looks something like this:
/usr/lib/cuda-9.2/include/crt/host_config.h:119:2: error: #error -- unsupported GNU version! gcc versions later than 7 are not supported!

So I just wanted to leave a comment that adapting setup.py as follows (also see https://github.com/davidstutz/torchsort/blob/d97f30233dc7b463899a9072b6a77cb7abade5c7/setup.py#L22) allows to set custom gcc/g++ versions for building:
os.environ['CC'] = '/usr/bin/gcc-7'
os.environ['CXX'] = '/usr/bin/g++-7'
os.environ['CCP'] = '/usr/bin/g++-7'

@lru_cache(None)
def cuda_toolkit_available():
    # https://github.com/idiap/fast-transformers/blob/master/setup.py
    try:
        call(["CC=/usr/bin/gcc-7 CXX=/usr/bin/g++-7 CCP=/usr/bin/g++-7 nvcc"], stdout=DEVNULL, stderr=DEVNULL)
        return True
    except FileNotFoundError:
        return False

Thanks for the package!
David

Hi David,
Thanks for reporting this and providing a fix! Could this be addressed by exporting the CC, CXX and CCP variables on the command line prior to installing? Or does subprocess.call not use the same environment?
Just wondering if there would be a fix that could remain flexible enough for all users.

Closing due to lack of activity

authors: davidstutz teddykoker

repo: teddykoker/torchsort


text:
Allow appending exclude fields in discover phase from CLI

Given a test plan whose discover phase already contains exclusions I would like to be able to append additional ones when invoking tmt.
The syntax can look like: tmt ... discover --exclude+ <FIELD> ....

Thanks for the idea! Sounds like a nice and useful improvement.

The syntax can look like: tmt ... discover --exclude+ <FIELD> ....

Using + for extending exclude would be consistent with how it's done in fmf, however it seems the special character is not supported by click. So maybe one of these?
tmt run ... discover --exclude-add
tmt run ... discover --exclude-append
tmt run ... discover --exclude-extend

Should be fairly easy to implement.

If exclusions are internally stored as a set then --exclude-add, if they are stored as a list, then probably a duo of --exclude-prepend, --exclude-append.

Hi @mkoncek and @psss, I'd like to confirm the expected output if we run tmt ... discover --exclude-add ....
bash$ cat plans.fmf
execute:
    how: tmt

/smoke:
    provision:
        how: local

/fmf:
    /exclude:
        discover:
            how: fmf
            exclude: /tests/discover1
bash$ cat tests.fmf
test: /bin/true

/discover1:
    summary: Discover one
    tier: 1
    link: /tmp/foo

/discover2:
    summary: Discover two
    tier: 2
    link:
    - note: Some text
      verifies: https://github.com/teemtee/tmt/issues/870

/discover3:
    summary: Discover three
    tier: 3
bash$ tmt run discover --how fmf plans --name 'fmf/exclude' -v
/var/tmp/tmt/run-065

/data/plans/fmf/exclude
    discover
        how: fmf
        directory: /home/huanli/dev/1465/foo
        summary: 2 tests selected
            /data/tests/discover2
            /data/tests/discover3
bash$ tmt run discover --how fmf --exclude discover2 plans --name 'fmf/exclude' -v
/var/tmp/tmt/run-066

/data/plans/fmf/exclude
    discover
        how: fmf
        directory: /home/huanli/dev/1465/foo
        summary: 2 tests selected
            /data/tests/discover1
            /data/tests/discover3
# ^^^ /data/tests/discover1 is not excluded !!!

If we run tmt run discover --how fmf --exclude-add discover2 plans --name 'fmf/exclude' -v, the output should be looked like:
bash$ tmt run discover --how fmf --exclude-add discover2 plans --name 'fmf/exclude' -v
/var/tmp/tmt/run-067

/data/plans/fmf/exclude
    discover
        how: fmf
        directory: /home/huanli/dev/1465/foo
        summary: 1 test selected
            /data/tests/discover3
# ^^^ both  /data/tests/discover1
# ^^^  and  /data/tests/discover2
# ^^^  are excluded !!!

Is the output above what you exactly expect to have ?

authors: idorax mkoncek psss

repo: teemtee/tmt


text:
provision --how local lacks the /usr/local/bin/tmt-file-submit

The local provision method does not prepare all the necessary helper files/scripts for beakerlib to work correctly.
In this particular case the rlFileSubmit and rlBundleLogs do not work correctly.
:: [ 10:59:58 ] :: [   INFO   ] :: Sending /tmp/libssh.tar.gz as tmp-libssh.tar.gz
bash: /usr/local/bin/tmt-file-submit: No such file or directory
:: [ 10:59:58 ] :: [  ERROR   ] :: rlBundleLog: Submit wasn't successful

Outcome of the discussion on hacking session:
Pack the tmt-* scripts into the tmt.rpm
Document that rstrnt-* scripts not supported
Reboot still is not supposed to be working for provision --how local

authors: lukaszachy sopos


text:
Refactor recording of CLI subcommand invocations

To store invocations of various subcommands and their effects on classes
like Test or Cleanup, CLIInvocation, new dataclass, has been
added. PR attempts to sort out the processing of these invocations, document
places that record them, prevent accidental overwriting of invocations,
and support multiple records.
On top of this, experimental support for multiple command line phases
is added, with --insert and --update options for tweaking phases
read from fmf data.

@janhavlin So, this is the first attempt: I realized I'm still very puzzled about many aspects, so I focused on giving things better names I could grasp and follow.

there's a class called CLIInvocation, for each mention of a "class" on the command line - run, plan, test, report, ... - there would be one CLIInvocation instance. It bundles together a Click context & options given on the command line. Options can be derived from the context, but some plugins do nasty things with options, so let's store them aside as well.
then I tried to separate classes derived from Common into two groups: classes than can be mentioned on the command line just once, and classes that can - and are expected to be in the future - mentioned multiple times. The first group - Run, Plan, maybe also Clean, there's just a single run in tmt run ..., and just a single plan in tmt run ... plan --name foo and so on; but we plan to support multiple invocations of steps, like report -h html ... report -h display, or multiple invocations of login pseudo-step.

Common class now has a singular cli_invocation attribute, there's just a single chance to set it, and it's forbidden to change it. The other group behaves in the similar way, but instead of raising an exception, a warning is printed out when a step is mentioned multiple times on the command line.
From this, I hope I could follow the flow of "CLI invocations" of various components, add checks and debug messages to better split between options passed to a report step and report plugins in command lines like tmt run -a report -v report -h html -vvv report -h display -vv - this should help us then convert some of these sequences of options into plugin instances. PR is probably broken, and unit tests failed (although tmt -c trigger=commit -vv run -a report -h display report -h html plan -n '^/plans/features/core$' t -n 'unit' finished successfully), but feel free to ask questions and raise comments.
cc @psss

For experiments, the following helped me debug the basic issues:
$ tmt -c trigger=commit -vv \
      run -a \
      report --insert -h display --order 70 \
      report --insert -h html \
      plan -n '^/plans/features/core$' \
      test -n '/tests/core/ls'

$ tmt -c trigger=commit -vv \
      run -a \
      report --insert -h display --order 70 \
      report --insert -h html \
      plan -n '^/plans/features/core$' \
      test -n '/tests/core/ls'
/var/tmp/tmt/run-048
Found 1 plan.

/plans/features/core
summary: Verify core functionality

plan failed

The exception was caused by 1 earlier exceptions

Cause number 1:

    '<' not supported between instances of 'NoneType' and 'int'

Looks unexpected. Any idea? Haven't debugged it yet.

$ tmt -c trigger=commit -vv \
      run -a \
      report --insert -h display --order 70 \
      report --insert -h html \
      plan -n '^/plans/features/core$' \
      test -n '/tests/core/ls'
/var/tmp/tmt/run-048
Found 1 plan.

/plans/features/core
summary: Verify core functionality

plan failed

The exception was caused by 1 earlier exceptions

Cause number 1:

    '<' not supported between instances of 'NoneType' and 'int'

Looks unexpected. Any idea? Haven't debugged it yet.

Probably comparison of order fields, but order should have a default value, therefone no  one is allowed to sneak in. If you add —order to the second phase, would the issue go away? Check where the option is defined, there should be some related changes in this PR.

$ tmt -c trigger=commit -vv \
      run -a \
      report --insert -h display --order 70 \
      report --insert -h html \
      plan -n '^/plans/features/core$' \
      test -n '/tests/core/ls'
/var/tmp/tmt/run-048
Found 1 plan.

/plans/features/core
summary: Verify core functionality

plan failed

The exception was caused by 1 earlier exceptions

Cause number 1:

    '<' not supported between instances of 'NoneType' and 'int'

Looks unexpected. Any idea? Haven't debugged it yet.

Probably comparison of order fields, but order should have a default value, therefore no None is allowed to sneak in. If you add —order to the second phase, would the issue go away? Check where the option is defined, there should be some related changes in this PR.

Ok, this was the problem:

but order should have a default value

There was no default, that was the issue. Fixed.

Yeah, it passes now for me.

I think I can explain both, to some extent.

I guess it has to do something with defaults:

"default phases" is probably more fitting - when there are no fmf data for a step, empty one with the default how is constructed in Step.__init__(). Hence why there's one of display phases. Now...

/plan:
    execute:
        how: tmt
    discover:
        how: shell
        tests:
        - name: foo
          test: echo
    provision:
        how: local

See that 'display' is twice, verbosity is not respected and report -h html is missing as well:
$ tmt run -a report  -h display -vvv report --insert -h html
    report
        how: display
        how: display
        summary: 1 test passed

As if the 'report --insert' got added to the plan first and just after that the 'replace' part of CLI got evaluated.

Correct observation, that's exactly how it's implemented in this PR. I'm not saying it's the best way, it's just a prototype, I'm open to suggestions.
You already know this, but bear with me, please, it's all tangled up, and verbose explanations help me follow the trail: the current tmt behavior is, when a step is mentioned on the command line, it "converts" all phases from fmf to itself. If the phase had the same how as the command line input, good, it's updated by the command line input, if how was different, it's replaced with the command line input:
                if raw_datum['how'] == how:
                    self.debug(f'  compatible step data:   {raw_datum}', level=4)
                    _raw_data.append(raw_datum)

                # Mismatch, throwing away, replacing with new `how` - but we can keep the name.
                else:
                    self.debug(f'  incompatible step data: {raw_datum}', level=4)
                    _raw_data.append({
                        'name': raw_datum['name'],
                        'how': how
                        })

So, there's this default display from "no report in fmf tree" beginning, then CLI applies:

report -h display -vvv "overwrites" this default phase, let's ignore the verbosity for now, but nothing changes that much. But: since the current behavior has no options like --insert, and phase from CLI overwrites every single existing phase, and the last CLI phase wins, CLI input without --insert or --update are indeed put aside to be evaluated later.
report --insert -h html - yep, inserts html report phase.
then the previous display is re-evaluated and overwrites your precious html phase, and you get two display phases and the behavior you observed.

Not perfect, but somehow compatible with the current behavior. I guess the question is, do we care about the current behavior, how should these "option-less" phases interact with those with --insert or --update? What is the expected outcome of tmt run report -h html report -h reportportal report --insert -h html, for example? Would there be an implicit --insert, --update, --foo action?

When I do both 'report' as --insert it executes html but display is twice again (and verbosity not respected neither):
$ tmt run -a report --insert -h display -vvv report --insert -h html
    report
        how: display
        how: display
        how: html
        output: /var/tmp/tmt/run-043/demo/plan/report/default-2/index.html
        summary: 1 test passed

Putting the verbosity aside for now, the default phase from "no report in fmf, let's spawn a default phase then" step is the one extra, both CLI phases had --insert, no overwrites, no changes, just additions.
And the verbosity... Yeah, that should be honored, no idea what's happening there, I'll debug it.

Right, the verbosity issue is caused by the fight between plugin inputs: there are "step data", basically a bundle of plugin-specific keys, filled by fmf or CLI, but there are also inputs that are not saved in this structure, like --verbose or --debug. And when a plugin instance is instantiated, only the step data are given to the plugin class, while CLI invocation with --verbose is taken from a class variable. Hence different phases of the same plugin can't have different verbosity. Not good, but at least it's a problem I now understand.
I suppose we need to tie together step data bundles with invocations that affected them. Either by collecting CLIInvocation objects and attaching them to step data bundles or by moving keys like verbose or debug to step data - and I would rather not do that because that would make them appear like something one can specify in fmf.

well, it work only if I provide --how on the cmd line.
provision:
  - how: minute
    image: fedora
    role: server
    name: server
  - how: minute
    image: fedora
    role: client
    name: client
  - how: minute
    image: fedora
    role: controller
    name: controller

# tmt run -vvvddd provision --update --name server --image fedora-37
Usage: tmt run provision [OPTIONS]
Try 'tmt run provision --help' for help.

Error: No such option: --image Did you mean --name?

# tmt run -vvvddd provision --update --how minute --name server --image fedora-37
Using tree '/home/dapospis/test/git/beakerlib/ControlFlow'.
/var/tmp/tmt/run-033
tmt version: 1.27.dev (da985a2d)
tmt command line: /usr/bin/tmt run -vvvddd provision --update --how minute --name server --image fedora-37
Read file '/var/tmp/tmt/run-033/run.yaml'.
Run data not found.
Enabled steps: provision

Two things:

I would expect to update all phases if the --name was not provided
omitting --how should be fine as I defined it in the plan

Perfect is the enemy of good, progress, not perfection, blah blah blah, it's simply so complicated I wouldn't touch it with a ten-feet pole now. I like starting small, shaping the field for future extensions, cleaning, documenting...

Agreed, let's get started with something working, polishing will come later. This code area is really complicated.

Thanks for addressing all comments. Now looks good, however tests seem to be red.

@psss tests should be fixed with https://github.com/teemtee/tests/pull/4/, which is failing right now, too, the chicken and egg problem. It's the CliRunner situation.
Although I just noticed the internal branch of tests is failing as well, I have to fix that one, no PR there yet.

Thanks, both merged, let's see.

/packit test

I assume you're all aware, but tmt's plans/remote/polarion is using the teemtee/tests repo, so merging https://github.com/teemtee/tests/commit/f7cac2f1f1dbb6e56cb7406f6abb74cdefc3278c there without merging this PR broke tests here:
https://artifacts.dev.testing-farm.io/d99d6565-acf1-42ba-b63f-e1f1f912690c/

\o/ Thanks for the reviews, guys. One failed test was not related to the PR, and passed many times before.

authors: happz janhavlin martinhoyer psss sopos


text:
GitHub error handling added

This PR contains simple error handling for GitHub (bad credentials case, for example). Previously just nothing happened.

I've improved error handling now.

@tegon I think this can be closed. It's been about 5 years.

authors: FractalizeR dalelotts

repo: tegon/clone-org-repos


text:
Lock screen combo (ctrl+shift+power) does not work when ctrl is changed

I use Karabiner-Elements to switch between fn <-> ctrl.
But now the combo fn+shift+power does not lock my computer (used to work in Karabiner).
When turning off Karabiner-Elements it does work.

That's weird because I use the same Fn to Ctrl substitution and the same combo Fn–Shift–Power locks screen just great for me. I use KE v.0.90.68 and macOS Sierra 10.12.2.

    "profiles": [
        {
            "name": "Default profile",
            "selected": true,
            "simple_modifications": {
                "caps_lock": "left_control"
            },
            "standalone_keys": {
                "left_control": "escape"
            }
        }
    ]
}```

With this config I have the same issue: can't use ctrl+shift+power or cmd+option+power

Well, here's my configuration that allows Fn–Shift–Power to lock the screen:

Though my karabiner.json looks more crowded with devices and fn_function_keys sections.
Guess the problem is sporadic, more statistics from others are needed. Maybe, a re-installation of KE will help.

@Y-knot do you have the apple wireless keyboard?
I've reinstalled several times,  happens every time, it's not sporadic.

I use macbook air 13" and no external keyboards.
By sporadic I meant that some people have this problem while others don't.

Oops. Ctrl–Shift–Power works well, but Ctrl–Shift–Eject or Option-Command-Eject doesn't. As I see in Karabiner-EventViewer, Eject isn't tracking by Karabiner. Am I right?

I reckon you use the embedded keyboard together with an external one. I never tried KE in such a setup. But my guess is that whatever key (power or eject) you have on the embedded keyboard, that only key will be recognized by macOS. The other one will be matched to the 'main' one, or just discarded. You cannot have both functioning at the same time, that's my wild guess.

I don't use the embedded keyboard. I have Mac Pro so only the external (the small Apple wireless keyboard) is in use.
I think the issue is as @vaxXxa said that KE does not track the eject key (also saw that in the event viewer).
I understand there's a limitation to remap this key due to MacOS API, but KE should bypass the key press event.

I have this problem too, but my config is to make caps-lock my escape key when pressed by itself and my ctrl key when used in a chord. (I'm using wwwjfy's fork available at https://github.com/wwwjfy/Karabiner-Elements)
Attached is my json.
karabiner.json.txt

I fixed this problem by mapping a different key to eject. Escape is mapped to eject, so now I hit control-shift-escape to lock my screen.

Perhaps this has something to do with karabiner recognizing the eject key getting pressed? Any other ideas? I hope to dig around in the source code later.

Thanks @brianweber13, it works!

This problem has been well documented in #46 and #89 . Can we close this issue?

Those other issues are still open, so sure, can't see a reason to have it duplicated.
Thanks!

authors: Y-knot brianweber13 elad-maimon vaxXxa

repo: tekezo/Karabiner-Elements

license: unlicense


text:
Return simulator log to caller and do not filter the output

Add getDeviceLogProcess method that returns child_process for device logs to the caller and let it decide how to hanlde the logging operations.

LGTM :+1:

authors: Mitko-Kerezov rosen-vladimirov

repo: telerik/ios-sim-portable


text:
Request for ARM arcitecture release for Linux

I want to use teller for few of my AWS arm64 instances and raspberri-PI currrently is hard in install for them, it will be great if we can have support of ARM base singel binary present in releases as well for simple installation

Also raised here #307

repo: tellerops/teller


text:
update no-redundant-clsx to handle template literals

This seemed to work for https://github.com/temoncher/eslint-plugin-clsx/issues/7 (I did a very basic test)

Hi, @YayC
Thank you for taking time to look into the problem yourself!
The implementation is good, except I can think of one possible issue with it: TemplateLiteral node can also appear as a part of TaggedTemplateExpression like so
<div className={clsx(fn`myClass`)}>Text

where fn is some tagged template.
Tagged templates do not always return strings, it can produce any kind of result. For example I can make a taggged template that returns array of classes or object with classes and in such cases removing will alter runtime behavior.
If we can avoid problems with tagged template functions somehow this PR can be a welcome improvement

Oh, nevermind, the check is performed on a type of first argument passed to clsx. With tagged templates it will be of type TaggedTemplateExpression, so this code should work fine.

authors: YayC temoncher

repo: temoncher/eslint-plugin-clsx


text:
🛑 QRCODE VIEWER is down

In d2438ee, QRCODE VIEWER (https://qrcode-viewer.azurewebsites.net/qrcode-viewer/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: QRCODE VIEWER is back up in 1b229c8.

repo: templain/mywatcher


text:
add video demo of temporal web

i have often wanted this in docs when explaining to candidates - what do you think?

doesn't hurt to have. Should we also consider embedding a simple animation in README?

it would take some time to make that animation...

authors: feedmeapples sw-yx

repo: temporalio/web


text:
Deal with non-standard CPVs

We have some non-standard CPVs in the production database for which we have no name and numberOfDigits so they don't fit the response:

Where do they come from?
What do they mean?
Should we get rid of them?

Could you please paste some examples here of tender id's which have these non standard CPV codes?

@zufanka  Here is a csv with a sample of 1000 tender IDs and their weird CPVs.

authors: georgiana-b zufanka

repo: tenders-exposed/elvis-backend-node


text:
🛑 Beeldoverleg Website is down

In 2237107, Beeldoverleg Website (https://beeldoverleg.nl) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Beeldoverleg Website is back up in d94e4b5 after 6 minutes.

repo: tendsgn/upptime


text:
🛑 Beeldoverleg Website is down

In 7f4db0a, Beeldoverleg Website (https://beeldoverleg.nl) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Beeldoverleg Website is back up in 4c451a5 after 18 minutes.


text:
Add LiteLLM

a simple & light 100 line package to call OpenAI, Azure, Cohere, Anthropic API Endpoints

Hope this works @gaocegege

Thanks for your contribution! 🎉 👍

authors: NeroHin krrishdholakia

repo: tensorchord/Awesome-LLMOps


text:
bug(build): Investigate why envd build fails

Description
https://github.com/tensorchord/envd/discussions/1103
Reproduction
Additional Info

Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.

/assign

authors: VoVAllen gaocegege

repo: tensorchord/envd


text:
How to get the vocab file for custom dataset?

How to generate the vocab file for the custom dataset?

You should generate the vocab by yourself.

authors: bhavikapanara luozhouyang

repo: tensorflow/nmt


text:
bug checkpoints are incompatible wrt training/learning_rate

When training with learning_rate_schedule=constant, the checkpoints contain a key called training/learning_rate.
When training with learning_rate_schedule=rsqrt_decay, the checkpoints do not contain the key.
Thus one cannot continue training with a constant LR with a model pre-trained with rsqrt_decay, we get the Key training/learning_rate not found in checkpoint error.
Should the key be there and why?
tensor2tensor==1.6.0
tensorflow==1.6.0

@martinpopel I sent a PR to fix this issue, wish it can help you. Thanks.

After merging #842 this should be ok, right? Closing, but feel free to reopen if needed of course!

authors: lukaszkaiser martinpopel yanboliang


text:
TensorBoard: Graph Visualization failed Runtime statistics

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Debian 8 (jessie)
TensorFlow installed from (source or binary): using virtualenv, pip install
TensorFlow version (use command below): 1.1.0
Bazel version (if compiling from source):
CUDA/cuDNN version: CUDA 7.5, cuDNN 4.0
GPU model and memory: GeForce GTX TITAN X 12GB
Exact command to reproduce: Run this https://github.com/tensorflow/tensorflow/blob/r1.1/tensorflow/examples/tutorials/mnist/mnist_with_summaries.py scripts.

Describe the problem
I am following the tutorials in https://www.tensorflow.org/get_started/graph_viz, downloading and running the mnist_with_summaries.py scripts.
All the Tensorboard visualization works, except the Runtime statistics. In the GRAPHS tab, the Session runs shows (0) items available. And it says 'None'.

That is a duplicate of https://github.com/tensorflow/tensorflow/issues/10317, albeit with a different configuration.

Closing in favor of the other issue. Thanks for the report.

authors: jart laoreja tazr

repo: tensorflow/tensorflow


text:
ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory

ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory
first,i have only installed cuda9.0,then,some days ago,it can easily run with it ,but today,it can't,and raise the error.i don't know how to fix it.please help...

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks.
Have I written custom code
OS Platform and Distribution
TensorFlow installed from
TensorFlow version
Bazel version
CUDA/cuDNN version
GPU model and memory
Exact command to reproduce

Try making sure your PATH and LD_LIBRARY_PATH variables are being set properly; those were causing a similar issue for me.
In case you forgot to set those variables, add one of the following snippets to the end of your ~/.profile:
export PATH=/usr/local/cuda-9.0/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib\
                         ${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

or, if you're running a 64-bit system:
export PATH=/usr/local/cuda-9.0/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64\
                         ${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

then run source ~/.profile and try running tensorflow again

It has been 14 days with no activity and the awaiting response label was assigned. Is this still an issue?

It has been 29 days with no activity and the awaiting response label was assigned. Is this still an issue?

We are closing this issue for now due to lack of activity. Please comment if this is still an issue for you. Thanks!

authors: emerali jesen8 tensorflowbutler


text:
auto load_file_system_library

From https://www.tensorflow.org/extend/add_filesys we can build a custom filesystem plugin, and explictily load it like this :
from tensorflow.python.framework import load_library
load_library.load_file_system_library("xxxx.so")

But this is hard to use, and user who want to use xxxx.so must change his code.
Is there a way to call load_library.load_file_system_library automatically when a environment variable such as FILE_SYSTEM_LIBRARY is set.
To sum up with a user story:

user set environment variable  FILE_SYSTEM_LIBRARY=xxxx.so
user use xxxx.so related method in his script directly without explictily loading  xxxx.so.

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks.
Have I written custom code
OS Platform and Distribution
TensorFlow installed from
TensorFlow version
Bazel version
CUDA/cuDNN version
GPU model and memory
Exact command to reproduce


text:
Training accuracy falling down after some epoches since upgrading to 0.8.0rc0

I'm trying to use a simple network to classify some 64*64 images. in v0.7 it worked fine and consistent. The training phase was showing a consistent  average growth in accuracy. But since I'm trying to use 0.8, the accuracy fall down occasionally from ~0.9 to ~0!
I'm using cpu  version for python 2.7
is it a bug in TF or I'm doing something wrong?
#############################################
Environment info
Operating System: Ubuntu 14.04
I've installed pip with the following command : sudo apt-get install python-pip python-dev

The output from python -c "import tensorflow; print(tensorflow.version)".
0.8.0rc0
#############################################

my learning code is as below:
sess = tf.InteractiveSession()
x = tf.placeholder(tf.float32, shape=[None, 64,64])
y_ = tf.placeholder(tf.float32, shape=[None, 31])
input = tf.reshape(x,shape=[-1,6464])
w1 = tf.Variable(tf.random_uniform([6464,128],minval=-0.1,maxval=0.1),dtype=tf.float32)
b1 = tf.Variable(tf.random_uniform([128],minval=-0.1,maxval=0.1),dtype=tf.float32);
y1_ = tf.nn.softmax(tf.matmul(input, w1) + b1)
keep_prob = tf.placeholder(tf.float32)
y1 = tf.nn.dropout(y1_, keep_prob)
w2 = tf.Variable(tf.random_uniform([128,31],minval=-0.1,maxval=0.1),dtype=tf.float32)
b2 = tf.Variable(tf.random_uniform([31],minval=-0.1,maxval=0.1),dtype=tf.float32);
y2 = tf.nn.softmax(tf.matmul(y1, w2) + b2)
cross_entropy = -tf.reduce_sum(y_*tf.log(y2))
learn_rate = tf.placeholder(tf.float32)
train_step = tf.train.AdamOptimizer(learn_rate).minimize(cross_entropy)
correct_prediction = tf.equal(tf.argmax(y2,1), tf.argmax(y_,1))
accuracy = tf.reduce_mean(tf.cast(correct_prediction, tf.float32))
sess.run(tf.initialize_all_variables())
d = Dataset()
dat = d.load()
for i in range(9000):
if i%200==0:
a = accuracy.eval(feed_dict={x: dat.data, y_: dat.label,keep_prob: 1.0,learn_rate:1e-2})
print("step %d, training accuracy %g" % (i, a))
train_step.run(feed_dict={x: dat.data, y_: dat.label,keep_prob: 0.8 ,learn_rate:1e-2})
for i in range(5000):
if i%100==0:
a = accuracy.eval(feed_dict={x: dat.data, y_: dat.label,keep_prob: 1.0,learn_rate:1e-3})
print("step %d, training accuracy %g" % (i, a))
train_step.run(feed_dict={x: dat.data, y_: dat.label,keep_prob: 0.8,learn_rate:1e-3 })
==========================
some line of the output is as below:
step 7400, training accuracy 0.870539
step 7600, training accuracy 0.875406
step 7800, training accuracy 0.877677
step 8000, training accuracy 0.882868
step 8200, training accuracy 0.884491
step 8400, training accuracy 0.887735
step 8600, training accuracy 0.888709
step 8800, training accuracy 0.893251
step 0, training accuracy 0.894549
step 100, training accuracy 0.895198
step 200, training accuracy 0.894873
step 300, training accuracy 0.895198
step 400, training accuracy 0.894873
step 500, training accuracy 0.895198
step 600, training accuracy 0.895198
step 700, training accuracy 0.895522
step 800, training accuracy 0.895522
step 900, training accuracy 0.895847
step 1000, training accuracy 0.896171
step 1100, training accuracy 0.896171
step 1200, training accuracy 0.896496
step 1300, training accuracy 0.89682
step 1400, training accuracy 0
step 1500, training accuracy 0
step 1600, training accuracy 0
step 1700, training accuracy 0

Can you try reducing your learning rate? If your original optimization was close to being numerically unstable, then a small numerical change in the upgrade could cause training to diverge consistently.

The case is not about divergence of the learning accuracy. the first loop is using 0.01 as learning rate and the second one is using 0.001. In both cases it's not divergent (as you can see the accuracy is increasing). My problem is the accuracy of learning is falling to zero! And I'm experiencing this since I'm using 0.8rc0 in 0.7 I had no such problem.

I guess the issue is whether this is due to a bug, or part of normal training procedure. Accuracy suddenly falling to zero is a common occurrence in neural network training. Typically it happens when your neural network weights overflow or underflow. Can you see what the norm of your parameters looks like over time? Also, another suggestion is to try retuning your hyper-parameters? (ie, trying different learning rate, training algorithm, etc) There might be some numeric difference between 0.7 and 0.8, but it's not clear which one is the "correct" one.

I've printed the value of W matrices in case the accuracy falls down And surprisingly all values was nan!
So I think it's a bug and is not about my code!

BTW cross entropy is nan and it makes other elements nan

It's common to get NaN during training. For instance you have an expression y_*tf.log(y2). If y2 is 0 and y_ is 0, then tf_log(y2) is -infinity, and 0*(-infinity) is NaN.

Yeah I got that. Thanks for your help @yaroslavvb . Since I've find out that cross entropy is causing the NaN problem I'm trying to use other cross entropies. but sadly non is as fast as this.

One workaround is to do tf.log(y2+1e-8) instead of tf.log(y2)

@yaroslavvb This is awesome, thank you!